انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Quote sale

POST/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 · أو null

    TypeID with the cus prefix.

  • emailstring · أو null

    Sends the customer the order confirmation, their receipt by email.

  • phonestring · أو null

    The customer's phone, for a walk-in who gives one.

  • discount_codesarray of strings
  • discountobject · أو null

    The seller's discount on the whole sale.

  • notestring · أو null
  • localestring · أو null

    The receipt's language; the store's by default.

  • deliveryobject | object · أو null

    How lines sold from another branch reach the customer.

ما يُرجعه

200 Priced now.