Analytics API
Read CallListOrders3
Returns Bubblehouse-side loyalty facts for orders in a shop.
| Kind | Read API call |
|---|---|
| Method | GET or POST |
| URL | https://app.bubblehouse.com/api/v2023061/<shop>/ListOrders3 |
| Authentication | Shop Token |
This export is intended for tenant analytics and integrations that need a current-state order feed of loyalty facts known on the Bubblehouse side. Line items, paid amounts, and other commerce fields stay on the shop.
Rows are sorted by the updated cursor. The default sort is updated_desc.
Only orders that already have a non-zero update ID appear. Historical rows that were never filled into the update index, and orders whose update ID is still zero, are not returned. There is no order update-ID backfill.
Polling with updated_after follows the last saved update ID. An order that is later written without going through the order save path keeps its old update ID, so a cursor poll can miss that mutation. A full list still returns the current row.
Input
-
fieldsstring optionalWhich order fields to include in the response.
Use a comma-separated filter string such as
default,bhid,shopid,short,customer(email),customer(default), orall.In JSON and JSONL, use nested field names such as
customer(bhid,id,email).In CSV, customer fields are flattened as
customer_bhid,customer_id,customer_email, etc.The
customersubobject supports customer field names from Customer2, together with the built-in aspectsids,default,basics, andall. -
The response format you want: JSON, JSONL or CSV.
-
prettyboolean optionalIf true, pretty-prints JSON output.
-
Sort order for the
updatedcursor.Supported values are
updated_descandupdated_asc. The default isupdated_desc. -
Only return rows with update IDs strictly greater than this value.
-
Only return rows with update IDs strictly smaller than this value.
-
limitinteger optionalThe number of rows to return.
When omitted or set to
0, the limit is 10000. Setlimitto a negative number (for example-1) to stream every matching order. Use JSONL or CSV for large exports.
Output
The output is in a tabular data format. The exact format is determined by the format input parameter.
The exact set of fields depends on the fields filter string.
JSON and JSONL nest customer as an object (or null when the order has no matched shop customer). CSV flattens customer fields as customer_* columns.
-
Unique ID of the order in the Bubblehouse system.
-
Order update/version ID used for polling.
-
shopidstring required but can be emptyThe online shop's order ID.
-
shortstring required but can be emptyThe short name assigned to the order by the online shop, if any.
-
When the order was placed, if known.
-
canceledboolean requiredTrue when the order is canceled in Bubblehouse.
Canceled orders still appear if they have an update ID. JSON uses a boolean. CSV uses
trueorfalse. -
pts_earnedinteger requiredLoyalty points awarded for this order.
-
pts_redeemedinteger requiredPoints redeemed toward this order.
This is the sum of points used on the order. It is not the shop's order total.
-
multiplierstring requiredThe order's point multiplier as a decimal string.
Examples:
1,1.5. This is not milles or permyriad. -
redemption_discount_codesarray of string requiredCoupon codes used to redeem points on this order.
Always an array; empty when there are none. Sorted for a stable order. In CSV, the codes are joined with spaces.
-
Nested customer information for the matched customer.
Use a subfilter such as
customer(bhid,id,email),customer(email), orcustomer(default)to choose which customer fields to return. Guest orders and orders whose customer cannot be loaded emit JSONnull.In CSV output, customer subfields are flattened with a
customer_prefix, such ascustomer_bhid,customer_id, andcustomer_email.
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. |