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
string
Cursor for pagination. Use the
next_page_key returned in the response to fetch the next page of results.string
Filter sales created after this date. Format:
YYYY-MM-DD.Example: 2024-01-01string
Filter sales created before this date. Format:
YYYY-MM-DD.Example: 2024-12-31string
Filter sales by purchaser email address.
string
Filter sales by product ID (external ID).
string
Filter sales by order ID (numeric external ID of the purchase).
integer
deprecated
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.boolean
required
Indicates if the request was successful.
array
required
Array of sale objects.
string
Cursor for fetching the next page. Only present if there are more results.
string
Full URL for fetching the next page. Only present if there are more results.
Example Request
Example Response
Error Codes
error
Bad Request
- Invalid date format in
beforeorafterparameters (must be YYYY-MM-DD) - Invalid
product_idformat - Invalid
order_idformat (must be numeric) - Invalid
page_keyformat
error
Unauthorized - Invalid or missing access token
error
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)