Skip to main content
GET
Please review proper request headers here.
This endpoint is only available in SANDBOX. It returns 403 in production.
Authenticate with your merchant app's X-ClientId and Accept-Version: v4.0. No user token is needed. Do not send an Authorization: Bearer header: when a valid Bearer token is present, the API registers a device for that token's user as a side effect. See the Sandbox Testing guide.
Each ledger entry shows how many points it moved and, when it came from a purchase, which purchase. Filter by purchase_id to answer “did this purchase accrue points, and how many?”.

Parameters

string
required
The user’s id. The user must be a member of your merchant.
string
Only return the entries linked to this purchase. The purchase must belong to this user at your merchant.
integer
Number of entries per page.
  • Default: 10
  • Minimum: 1
  • Maximum: 100
string
The next_cursor from the previous page. Omit it to read the first page.

Response

decimal
The user’s current points balance at your merchant. 0 if the user has no points account.
array
The ledger entries, newest first
hash
POST /purchases doesn’t return the purchase’s ID, and a sandbox purchase can take 15 to 30+ minutes to be processed (see the Sandbox FAQ). To confirm a synthetic purchase accrued points, read the ledger without purchase_id and look for a new Issue entry: its purchase_id identifies the purchase. Filtering by a purchase_id that doesn’t exist yet returns 404 Purchase not found.

Errors