Analytics API
Read CallListOrders2
Returns a list of orders processed by Bubblehouse.
| Kind | Read API call |
|---|---|
| Method | GET or POST |
| URL | https://app.bubblehouse.com/api/v20230601/<shop>/ListOrders2 |
| Authentication | Shop Token |
Note that we expect you to get most order data from your online shop system. This API only returns the information only known on the Bubblehouse side.
The returned order records are sorted by Bubblehouse ID.
Note that the output is in a tabular data format determined by the format parameter.
Input
-
The response format you want: JSON, JSONL or CSV.
-
The maximum order ID you have previously loaded, to only load records after that one.
If you set
after_idbut notbefore_id, you likely also want to setchronototrue, otherwise you'll simply get the latest orders recorded for the shop. -
chronoboolean optionalIf true, returns the results in a chronological order, starting with the earliest record matching all the criteria you specify. If false (the default), results are returned in a reverse chronological order, starting with the latest one.
-
The minimum order ID you have previously loaded, to only load records before that one.
-
limitinteger optionalThe number of objects to return.
The default limit is 1000, but feel free to use any number here. You can set the limit to -1 or a very large number to disable it; Bubblehouse will be happy to stream the entire list of orders. If you picked the JSON output format, be careful when processing a potentially huge response this generates.
Output
-
Unique ID of the order in the Bubblehouse system
-
shopidstring requiredAn online shop ID of the order.
-
shortstring required but can be emptyThe short name assigned to the order by the online shop system, if any.
-
ptsinteger requiredThe number of loyalty points awarded for this order.
-
The point multiplier in effect for this order.
Global Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 401 | invalid_token |
The provided authentication token is invalid or has expired. |
| 429 | rate_limit_exceeded |
Your usage is over the rate limit. Ensure that you're not making duplicate calls, and contact our team for a rate limit increase. |