Receipts
Get Receipts
This endpoint describes the receipts in Thanx.
GET
/
receipts
Parameters
user_id
string
User ID. Note: the bearer token will be used to determine which user’s receipts are being requested when the request is made by a logged in user.
merchant_id
string
Merchant ID
page
integer
The current page of paginated resources.
- Default:
1
.
per_page
integer
Number of records to be returned per API request.
- Default:
10
- Minimum:
1
- Maximum:
100
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
pagination
hash
Pagination information