Customers

List a customer’s purchases

What the customer holds: each purchased offer with its order, a page at a time.

Authorization

bearer customers:read
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: customers:read

Path Parameters

customerId*string
Match^[A-Za-z0-9_-]{1,64}$
Length1 <= length <= 64

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
cursor?string
Match^[A-Za-z0-9_-]{1,512}$
productKind?string

Response Body

application/json

application/problem+json

GET
/v1/customers/{customerId}/inventory
curl -X GET "https://example.com/v1/customers/string/inventory"
{  "data": [    {      "orderId": "string",      "offerId": "string",      "productId": "string",      "productKind": "string",      "name": "string",      "quantity": 1,      "status": "string",      "acquiredAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}