لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Quote sale
/ admin/ v1/ stores/ {store_id}/ pos/ sessions/ {session_id}/ quote- pos:sell
- يدعم Idempotency-Key
Prices a sale as it is rung up: catalogue prices, the cashier's line changes and custom items, discounts and codes, a business customer's price list, taxes.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.session_idstringمطلوبمعرّف من نوع
pses، مثلpses_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
linesarray of objectsمطلوبcustomer_idstring · أو nullTypeID with the
cusprefix.emailstring · أو nullSends the customer the order confirmation, their receipt by email.
phonestring · أو nullThe customer's phone, for a walk-in who gives one.
discount_codesarray of stringsdiscountobject · أو nullThe seller's discount on the whole sale.
notestring · أو nulllocalestring · أو nullThe receipt's language; the store's by default.
deliveryobject | object · أو nullHow lines sold from another branch reach the customer.
ما يُرجعه
200 Priced now.