This endpoint uses cursor-based pagination via
page_key parameter. The deprecated page parameter will time out for large result sets.Endpoint
Authentication
Requires theview_sales OAuth scope.
Query Parameters
Cursor for pagination. Use the
next_page_key returned in the response to fetch the next page of results.Filter sales created after this date. Format:
YYYY-MM-DD.Example: 2024-01-01Filter sales created before this date. Format:
YYYY-MM-DD.Example: 2024-12-31Filter sales by purchaser email address.
Filter sales by product ID (external ID).
Filter sales by order ID (numeric external ID of the purchase).
Deprecated. Use
page_key instead. Page number for offset-based pagination. This parameter may time out for large result sets.Response
Returns a paginated list of sale objects.Indicates if the request was successful.
Array of sale objects.
Cursor for fetching the next page. Only present if there are more results.
Full URL for fetching the next page. Only present if there are more results.
Example Request
Example Response
Error Codes
Bad Request
- Invalid date format in
beforeorafterparameters (must be YYYY-MM-DD) - Invalid
product_idformat - Invalid
order_idformat (must be numeric) - Invalid
page_keyformat
Unauthorized - Invalid or missing access token
Forbidden - Token does not have
view_sales scopeNotes
- Results are ordered by creation date (descending) and ID (descending)
- Each page returns up to 10 sales
- The deprecated
pageparameter may time out for queries returning large result sets. Usepage_keyfor reliable pagination. - Date filters use the sale’s
created_attimestamp - All monetary values are in cents (USD or the product’s currency)