Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • order_idstringrequired

    The order's ID, like ord_01k8qs5s….

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • channelenumrequired

    How a register sale's receipt reaches the customer.

    • email
    • sms
    • whatsapp
  • tostringrequired

    A phone number (in the store's country, or E.164) for whatsapp and sms; an email address for email.

  • save_customerboolean

    Save a walk-in as a customer with this number.

Returns

200 Sent: the receipt.

Errors

  • 404not_foundNot a register sale.
  • 409The store hasn't set up this channel (receipt_not_sent).
  • 422validation_failedNot a phone number or email address.