Send POS receipt
POST
/ admin/ v1/ stores/ {store_id}/ pos/ sales/ {order_id}/ receipt/ send- pos:sell
- Idempotency-Key supported
Sends the sale's receipt by WhatsApp, SMS or email, and records it on the sale. With save_customer, a walk-in becomes a customer with that number.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.order_idstringrequiredThe order's ID, like
ord_01k8qs5s….
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
channelenumrequiredHow a register sale's receipt reaches the customer.
- sms
tostringrequiredA phone number (in the store's country, or E.164) for
whatsappandsms; an email address foremail.save_customerbooleanSave a walk-in as a customer with this number.
Returns
200 Sent: the receipt.
Errors
- 404
not_foundNot a register sale. - 409The store hasn't set up this channel (
receipt_not_sent). - 422
validation_failedNot a phone number or email address.