Square Connect CatalogObjectId - square

I'm developing an ASP.Net (C#) website for a brick and mortar business that uses Square as their POS. I'm trying to use the Square Checkout API. In creating the CreateOrderRequestLineItem, I need to set the CatalogObjectId of the item so that web sales/activity will reconcile to their in-person sales for those same items. I am not able to locate the CatalogObjectId on the square dashboard and I really don't want to make a call to the catalog API to hopefully get the correct item that the user has already selected the item. I've exported the list of items from the dashboard and I see a "token" column that looks like it might be a unique ID. Basically, I have two questions:
Is the token value from the export the CatalogObjectId?
If no, then how/where can I get the CatalogObjectId for a given item?
Thanks.

Here are my answers -
No, Token value is not the CatalogObjectId
You can save the catalog items in your DB by calling "ListCatalog" api as -
https://docs.connect.squareup.com/api/connect/v2#endpoint-listcatalog
and then get CatalogObjectId by comparing the product names.

Don't know how it was in 2018 but I just used the token value as the catalog_object_id and it seems to work fine.
From this url:
https://squareup.com/dashboard/items/library
Click "Actions" and select Export Library as .xls format.
First column in the spreadsheet is token and you can use those values as the catalog_object_id's

Related

How do I retrieve quoteIds for specific client(customer) in Smart Quotes?

I am trying to retrieve a list with all quote ids for a specific customer.
It seems there is no API operation for Quotes(Smart)(v2) in Home Portal Api documentation to perform that, only retrieving details for a given quote:
GET /v2/quotes/{quoteId}
Is it possible for this operation to be added?
Have a view defined in the Home Portal that produces a list of all
quotes with their ids for your client.
Learn the view's id.
Use Browser method to retrieve the quotes list.

How do make an external API call from a Podio App field?

I have a location field called origin and a field called distination. I am trying to calculate a third field called distance by using an address from both the Origin and the Destination field? What is the easiest way to achieve this?
Here's one idea. Use the Google map's destination API to get the distance between between the 2 location fields. I am not sure how I can make these 2 API calls.
Sorry, but I don't think that's currently possible within Podio. I tried to get this to work using Podio's Calculation field and Google's Distance Matrix service. Unfortunately, the Calculation field doesn't allow access to the XMLHttpRequest API, which is what you would likely need to access any 3rd-Party APIs.
You need to use a third party tool to calculate the distance. Then update a number field (or maybe text field depending on your need) in Podio with the result. The calculation field cannot be use for such purposes.

Ebay API - How do I get item info for out of stock items

I'm trying to get item information by searching my ebay store. For example, if I enter this URL, it will search my store for a specific keyword and return info about the item.
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SECURITY-APPNAME=MYAPPID&keywords=MYKEYWORD&itemFilter.name=Seller&itemFilter.value=MYEBAYUSERNAME
However, if an item's quantity goes to zero, the item is no longer visible in my ebay store and therefore, won't show any data. How can I get data for all items, even if they are out of stock?
Please note: the data I need to get is the ebay auction number (itemID)
Thank you.
If you are listing using the API then "custom label" on the front end of eBay is actually the SKU node in the API. Here is a list of API calls that utilize this node: <SKU>
So if you want to pull one item at a time, all you need to do is use is use the GetItem trading API request. Instead of passing in <ItemID>(string)</ItemID> pass in <SKU>(string)</SKU>, and you will get the ItemID in the return output xml.
But, this is if you want to pull each item one at a time. There is a limit on how many API calls you can make a day.
So, I would suggest using GetMyeBaySelling every so often to download all of your items and store the output to a database. The output for GetMyeBaySelling includes <ItemID>(string)</ItemID> and your custom label as <SKU>(string)</SKU>.
At this point you can write a little front-end WebPage or APP to pull the data you want from the database.

Clickbank - Create products for testing (in Sandbox)

I am new to Clickbank.
I want to try out the API for the same.
But I am stuck in between.
Can anyone guide me through the steps to successfully create a product.
I am getting some errors
You must make a test purchase before submiting this request.
A footer disclaimer is required for all Pitch and Thank You pages.
Also wanted to know, like how can I setup the sandbox account?
Please help me out.
Thanks in advance.
This question was asked a very long time ago but I just happened across it and know the answers.
First, however I think anyone starting on ClickBank, technical or otherwise, will benefit from the following: https://www.clickbank.com/launch-checklist/
Now, to answer the question(s):
Test Purchase:
• Can't do this without creating a product first
• To create a product you do the following:
Login to the account
Click: Vendor Settings -> My Products
On this page locate the list of ADD NEW buttons & Click Product
The product editor pretty well walks you through the process
AND now for the test purchase.
That process is described here: https://support.clickbank.com/hc/en-us/articles/360036958431-How-do-I-test-a-payment-link-
Footer/disclaimer:
This is what is known as the ClickBank Trust Badge currently, (not sure about 9years ago).
It's a little element that you copy and paste into your webpage, after configuring what you want it to look like & where you want it to be, from the available options.
To find and set it up:
Login to the account
Click Vendor Settings -> My Site
Scroll down to the section with the title "ClickBank Trust Badge - Injection Code"
If you like the default setup you can copy what's in the Javascript Snippet field
If you want to change where it's located and colors click the Configure Settings button (not going to describe everything here as it's pretty straight forward as well)
ClickBank APIs
Last, you mentioned wanting to use the ClickBank API, which I happen to know very well. However, the documentation for it is also actually pretty good so let me start off with that:
General ClickBank API documentation
Additionally each APIs primary endpoint is self documenting. Additionally this documentation tends to be the most relevant for a programmer
Example of self documenting endpoint: https://api.clickbank.com/rest/1.3/orders2
So, it's worth noting the following that are required to use the API:
You must have an HTTP header of "Authorization" and it must be set to both of the API keys for an account.
Both keys refers to the API- "Clerk Key" as well as the DEV- "Developer Key"
Enter them both, separated by a colon ":" as the value of the Authorization key with the DEV- key first (DEV-A23478C...:API-IA23456...)
You must also use the correct HTTP request type for the query you are wanting to make (the only two that are utilized are GET and POST)
Examples:(NOTE: ACCOUNT_NAME_HERE is the ClickBank "nickname" or account name)
Single transaction: https://api.clickbank.com/rest/1.3/orders2/RECEIPT_NUMBER_HERE
List transactions by date range and specific account: https://api.clickbank.com/rest/1.3/orders2/list?vendor=ACCOUNTNAME_HERE&startDate=2021-12-11&endDate=2021-12-14
Count of transactions by date range: https://api.clickbank.com/rest/1.3/orders2/count/?vendor=ACCOUNT_NAME_HERE&startDate=2022-01-01&endDate=2022-01-01
Monetary value of transactions by date range: https://api.clickbank.com/rest/1.3/quickstats/count/?account=ACCOUNT_NAME_HERE&startDate=2022-02-01&endDate=2022-02-10
Sending shipping data for physical products (POST): https://api.clickbank.com/rest/1.3/shipping2/shipnotice/4NVXUFNW?item=2&date=2018-08-14&carrier=UPS&tracking=1NH323452345WODFS&comments=Test%20again%20comment%20with%20spaces10%20receipt=4NVXUFNW

Google Shopping API - multiple store information

We are developing an app for mobile, Mainly using Google Shopping API.
In the response we are getting one store info for one particular product.
Is there any other way to get multiple store info for one product in the response for Google Shopping API
Regards,
Bhat
if you figure out the GTIN for a product, then search by that GTIN as the query, then each result should come back as a different store
it just means usually you have to do a search on the query, grab the top most relevant GTIN, then make another request to get the store info. Thats how I have done it anyways, would be interested to know if you solved it any other way :)