GET
/
purchases
/
:id
curl https://api.thanxsandbox.com/purchases \
  -X POST \
  $STANDARD_HEADERS
  -d '{
    "purchase": {
      "merchant_id":  "weoru",
      "location_id":  "hljkfd2345",
      "user_id":      "wgljsdwer23",
      "amount":       13.45,
      "purchased_at": "2020-09-15T00:52:10.655+00:00",
      "card_id":      null
    }
  }'
{
  "id": "<string>",
  "user_id": "<string>",
  "merchant_id": "<string>",
  "location_id": "<string>",
  "purchased_at": "<string>",
  "amount": 123,
  "order": "<string>",
  "order.provider": {},
  "order.id": "<string>"
}

Response

id
string

The ID of the tier status 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

order.provider
enum

The online ordering provider (OLO, Toast, Other)

order.id
string

The ID of the order in the provider’s system