Receipts
Open a receipt by token
GET
Public, no login. Content negotiation with Accept: anything that accepts HTML
(including */*) gets the formatted receipt page; send Accept: application/json for
data. The receipt includes the shopper's name, email and phone number.
token*stringMatch
^RCP-[0-9A-F]{16}$The receipt.
- response
receipt_token*stringreceipt_url*stringFormat
urisale_id*stringcustomer_name?string|nullcustomer_email?string|nullcustomer_mobile?string|nulltotal_amount*numberMajor currency units (49.9 is $49.90).
tax_amount?numberdiscount_amount?numberitems_count?integerpayment_method?stringsale_timestamp?stringFormat
date-timecreated_at?stringFormat
date-timecurl -X GET "https://example.com/receipt/RCP-199797BE1DEC4EC7"{ "receipt_token": "RCP-199797BE1DEC4EC7", "receipt_url": "http://example.com", "sale_id": "string", "customer_name": "string", "customer_email": "string", "customer_mobile": "string", "total_amount": 0, "tax_amount": 0, "discount_amount": 0, "items_count": 0, "payment_method": "cash", "sale_timestamp": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}