Purchases
Get Purchases
This section describes endpoints that enable a third party to fetch a user’s purchases. This endpoint describes all available purchases.
GET
/
purchases
Parameters
merchant_id
string
Only return purchases for this merchant
location_id
string
Only return purchases for this location
user_id
string
Only return purchases for this user. Note: the bearer token will be used to determine which user’s purchases are being requested when the request is made by a logged in user.
page
integer
The current page of paginated resources.
- Default:
1
.
per_page
integer
Number of records to be returned per API request.
- Default:
10
- Minimum:
1
- Maximum:
100
Response
id
string
The ID of the purchase record
user_id
string
The user ID
merchant_id
string
The merchant ID
location_id
string
Location ID
purchased_at
string
Time the purchase was made in ISO8601-format
amount
decimal
The purchase amount
order
hash
Provides information about the associated order, if any
pagination
hash
Pagination information