I am trying to do some custom analytics and analysis for my business. We use the Square POS, and have access to the API. I can retrieve the transactions, but cannot seem to get the Order ID's that I need to batch retrieve the orders. What am I missing? Is it possible through the API to access the same sales data that I can see in my dashboard?
It depends on what exactly you are looking for. Items that are sold? Try the v1Payments endpoint. The order's endpoint that you are using is for primarily for pulling the transaction data from e-commerce transactions.
Related
our Shopify store syncs with NetSuite and we send orders with line items from Shopify to NS. However there are often situations where we need to enrich the orders in NS with zero value items that we don't want on the shopify order. E.g. marketing materials that we want to send out to the customer.
SuiteQL isn't an option as there is no way to add / update
SOAP API seems like a winner but good-god it's complicated
Could i build a complex rules engine in suite script that looks at the order and based on whatever it add line items?
any advice from someone who has done it before would be great?
You can use User-Event/Workflow or Map-Reduce/Scheduled/Mass-Update scripts which will filter orders, and update orders.
I am using TradeGecko API (docs: https://developer.tradegecko.com/docs.html) to get my shop's data. The API comes with a StockLevel resource, but it only return the stock level at the moment, not in the past. I want to see how the stock level changes over time. Any way I can do that?
Tradegecko API is sunsetting at the time of writing this comment. But if anyone needs this, I went to Intelligence > Reporting > Inventory > Stock history. Pick a timeframe and stock location to download the historical data.
I also used Python Selenium for automatic download the data into my email, then used the Gmail API to get the csv link and process the data.
I would like to get a history of the bitcoin price.
For example I would like to be able to provide a start_date and end_date for a search/filter.
Are there any open source and trusted api with almost accurate prices for this?
I have noticed that coinbase only returns the spot/current price and I cannot pass more params to filter
curl https://api.coinbase.com/v2/prices/spot?currency=USD
I have also used coindesk but the prices are not accurate.
https://api.coindesk.com/v1/bpi/historical/close.json?start=2019-08-10&end=2020-08-11¤cy=zar
bitcom.com does not provide historical prices, it is wallet and kinda banking services.
API for pro.bitcom.com, (crypto exchange) provides to historical prices.
https://docs.pro.coinbase.com/#get-historic-rates
I would recommend you to use the CoinMarketCap API if what you want are historical prices.
There are also libraries like ccxt where you can probably find this information as well.
However you have keep in mind that due to the number of exchanges these prices are approximations, and there is not sucha thing as a "unique" price for bitcoin.
I made a Ticketmaster developer account and I would like to pull listing price data for specific events. I am able to retrieve this type of listing data for specific events using Stubhub's API, but looking through Ticketmaster's API documentation, I don't see any specific API requests that will return listing data, such as section, row and listing_price.
Am I missing something, or is it not possible to retrieve this type of listing data using Ticketmaster's API?
For anyone who stumbles upon this in the future, TicketMaster does offer this functionality through their availability endpoint. However you have to be a TM nexus partner to use it, and getting approved as a partner depends on what your business/software does and income etc...
I am successfully querying the Sendgrid Web API v3 for category stats, using the following endpoint, as documented at Web API v3 Category Stats;
https://api.sendgrid.com/v3/categories/stats?start_date=2015-01-01&end_date=2015-01-02&categories=sales&categories=north&categories=tech
This returns the stats for each category. So I get a row of data for Sales, a row for North and a row for Tech.
What I really want is to make custom queries for cross-sections of categories. So I'd actually like to know the stats for emails that had the categories of both Sales and Tech for example.
Is there any way to this via the API?
There is no way to accomplish this via the API after the emails have been sent. If you know which categories you want grouped, you can specify a unique common category at send time for emails that have category sales OR tech and then query based on that super-category.