Skip to main content
GET
Get purchases for your organization

Authorizations

Authorization
string
header
required

JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.

Query Parameters

status
enum<string>

Filter by purchase status (pending, paid, refunded, cancelled)

Available options:
pending,
paid,
refunded,
cancelled
metadata
string

Filter by metadata key:value (e.g., "refunded:true", "campaign:affiliate")

Search in metadata notes (partial match)

startDate
string

Only include purchases from this date onwards

endDate
string

Only include purchases up to this date

limit
integer
default:50

Results per page (default: 50, max: 100)

Required range: 1 <= x <= 100
offset
integer
default:0

Skip this many results (for pagination)

Required range: x >= 0
cursor
string

Cursor for pagination. Pass the nextCursor value from the previous response to get the next page. When using cursor, do not send offset — it will be ignored.

How it works: The cursor is an opaque string that points to the last item you received. The server uses it to efficiently fetch the next set of results without scanning previous pages.

Backwards compatible: If you don't send a cursor, offset/limit pagination works as before.

sort
string

Sort results. Format: field:direction where direction is asc or desc.

Allowed fields: created_at, purchase_date, price_paid, status

Default: created_at:desc

Examples: created_at:asc, current_balance:desc

Response

Success - Returns paginated list of purchases

success
boolean
Example:

true

data
object
Example: