Purchases
Create Purchase
This endpoint submits a purchase to Thanx for processing. This allows for issuance of loyalty points to the given user.
POST
/
purchases
Scope required: purchases.write
Parameters
merchant_id
string
requiredMerchant ID
user_id
string
requiredUser ID
amount
decimal
requiredThe purchase amount
purchased_at
string
requiredTime the purchase was made in ISO8601 format
location_id
string
Location ID
card_id
string
Card ID that the user used, if it is registered in Thanx
products
array(string)
Optionally specified array of product strings to associate with the purchase