Skip to main content
POST
Please review proper request headers here.

Parameters

merchant_id
string
required
Merchant ID
amount
string
required
The amount of the receipt
payment_type
string
required
(card, cash, other)
purchased_at
string
required
The timestamp of the purchase, in ISO8601
image_path
string
The path of the uploaded image
user_comments
string
Any user-entered notes
card_id
string
The card the user used, if it is registered in Thanx

Response

id
string
The receipt ID
merchant_id
string
Merchant ID
user_id
string
User ID
state
enum
The processing state of the receipt (pending, processing, applied, denied)
rejection_text
string
If the receipt is denied, the reason provided
amount
decimal
The amount of the receipt
payment_type
enum
(card, cash, other)
purchased_at
string
The timestamp of the purchase, in ISO8601
submitted_at
string
When the user submitted the receipt, in ISO8601
user_comments
string
Any user-entered notes
card_id
string
The card the user used, if it is registered in Thanx
image
hash
The uploaded receipt image information