Returns a paginated list of performance metrics for the shop’s SKUs over the requested date range.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Start time (ISO 8601 YYYY-MM-DD format) in shop registered timezone, inclusive.
End date of the performance period, exclusive, in the shop’s registered time zone. Use YYYY-MM-DD format. It must be later than start_date_ge.
Number of records per page. If omitted, defaults to 10. Maximum: 100.
Token that identifies the page to retrieve. Omit it for the first page. For later pages, pass the next_page_token returned by the previous response and reuse the same start_date_ge, end_date_lt, sort_field, sort_order, category_filter, product_status_filter, product_ids, currency, and page_size values.
Sort field, possible values:
- gmv (default)
- sku_orders
- units_sold
Sort direction, possible values:
- DESC (default)
- ASC
List of category IDs used to filter returned SKU performance records.
Filter SKUs by product status. Possible values:
- LIVE
- INACTIVE
- ALL (default)
Filter SKUs by product IDs. If product_ids are provided, the API will only return SKUs for the given product IDs, otherwise it will return all SKUs for the shop
Currency used to report GMV:
- USD: U.S. dollars
- LOCAL (default): Local currency where the shop is located
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
List of SKU performance metrics.
object
The ID of the SKU in the returned SKU performance record.
The ID of the product that the returned SKU belongs to.
Overall Gross Merchandise Value (GMV) for the SKU.
object
GMV amount in the corresponding currency.
GMV currency code (ISO 4217 standard). If LOCAL currency is requested, the value will be the local currency code of where the shop is registered (e.g. GBP).
Total (sum of all) orders for a SKU
Number of units sold for a SKU
If nonempty, pass this token unchanged as page_token in the next request and reuse the same start_date_ge, end_date_lt, page_size, sort_field, sort_order, currency, category_filter, product_status_filter, and product_ids values. For optional parameters, preserve whether each parameter was omitted or present. An empty string means there are no more pages.
Total number of SKUs matching the request filters across all pages.
Latest date in local timezone where data is ready (ISO 8601 format).
Example
{ "code": 0, "data": { "skus": [ { "id": 18354627263453, "product_id": 123456789, "gmv": { "amount": "135.42", "currency": "USD" }, "sku_orders": 10, "units_sold": 10 } ], "next_page_token": "cGFnZV9udW1iZXI9MQ==", "total_count": 20, "latest_available_date": "2024-04-07" }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}