Purchases
Get Purchase
GET

/purchases/:id

Bearer*
curl --request GET \
  --url https://api.thanx.com/purchases/:id \
  --header 'Authorization: Bearer <token>'

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, OpenTender, Other)

order.id
string

The ID of the order in the provider’s system

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
    }
  }'