MyNearStoresPartners
Receipts

Open a receipt by token

GET
/receipt/{token}

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.

Path Parameters

token*string
Match^RCP-[0-9A-F]{16}$

Response Body

The receipt.

  1. response
receipt_token*string
receipt_url*string
Formaturi
sale_id*string
customer_name?string|null
customer_email?string|null
customer_mobile?string|null
total_amount*number

Major currency units (49.9 is $49.90).

tax_amount?number
discount_amount?number
items_count?integer
payment_method?string
sale_timestamp?string
Formatdate-time
created_at?string
Formatdate-time
curl -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"}