ShopEazydevelopers
API referenceMerchant API BetaPoint Of Sale

The data of a counter receipt, to print or show

Beta
Credentials, one of
  • Station token
  • OAuth access token
Scopes
orders:read
GET
/v1/merchant/stores/{storeId}/orders/{orderId}/counter-receipt

What the till's own slip is built from, so a printer, WhatsApp and the screen never disagree: the shop's name, address, phone and (for a VAT vendor only) VAT number, the lines, any discount, the total, the VAT inside it, each payment with the cash tendered and the change given, and the first name of who served. Minor units, ZAR. Printing is the client's.

Access: OAuth scope orders:read; not write-gated.

Authorization

headerAuthorizationBearer <token>

It may call only the operations whose x-stations lists its kind, on its own store, and acts through the access of the owner or admin who paired it. Unpairing it, or that person leaving the business, ends it (401 station_revoked).

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

orderId*string

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/orders/<orderId>/counter-receipt' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "storeName": "Jabu's Plant Shop",    "address": "12 Example Street, Greenside, Johannesburg",    "phone": "+27 82 000 0000",    "orderId": "riEhGrBxE2kF04RzXyaz",    "number": "ORD-00001",    "at": 1792924396792,    "customerName": "Thandi Mokoena",    "customerEmail": "thandi.mokoena@example.com",    "customerPhone": "+27 82 000 0001",    "lines": [      {        "title": "Monstera deliciosa, 20 cm pot",        "quantity": 1,        "totalMinor": 32900      }    ],    "discountMinor": 0,    "totalMinor": 32900,    "taxMinor": 0,    "payments": []  }}