Skip to main content
GET
List purchases for a user

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Path Parameters

user_id
string
required

The user identifier.

Maximum string length: 256

Query Parameters

limit
integer
default:20

Maximum number of purchases to return. Min 1, max 100.

Required range: 1 <= x <= 100
starting_after
string

Cursor for pagination. Pass the id of the last purchase from the previous page to fetch the next page.

filter[platform]
string[]

Filter purchases by platform. Repeat the query parameter to match multiple platforms (OR logic). Example: ?filter[platform]=app_store&filter[platform]=stripe.

Maximum array length: 3

Response

A paginated list of purchases.

object
enum<string>
required
Available options:
list
url
string
required
Example:

"/v4/users/user_abc123/purchases"

data
object[]
required
has_more
boolean
required
next_cursor
string | null

ID to pass as starting_after on the next request. Present only when has_more is true; otherwise null.