لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Send POS receipt
POST
/ admin/ v1/ stores/ {store_id}/ pos/ sales/ {order_id}/ receipt/ send- pos:sell
- يدعم Idempotency-Key
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.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.order_idstringمطلوبمعرّف من نوع
ord، مثلord_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
channelenumمطلوبHow a register sale's receipt reaches the customer.
- sms
tostringمطلوبA 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.
ما يُرجعه
200 Sent: the receipt.
الأخطاء
- 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.