Skip to main content
Retrieve all of the successful sales by the authenticated user. Includes sales from all products.
This endpoint uses cursor-based pagination via page_key parameter. The deprecated page parameter will time out for large result sets.

Endpoint

Authentication

Requires the view_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-01
string
Filter sales created before this date. Format: YYYY-MM-DD.Example: 2024-12-31
string
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 before or after parameters (must be YYYY-MM-DD)
  • Invalid product_id format
  • Invalid order_id format (must be numeric)
  • Invalid page_key format
error
Unauthorized - Invalid or missing access token
error
Forbidden - Token does not have view_sales scope

Notes

  • Results are ordered by creation date (descending) and ID (descending)
  • Each page returns up to 10 sales
  • The deprecated page parameter may time out for queries returning large result sets. Use page_key for reliable pagination.
  • Date filters use the sale’s created_at timestamp
  • All monetary values are in cents (USD or the product’s currency)