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

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

Close session

POST/admin/v1/stores/{store_id}/pos/sessions/{session_id}/close
  • يدعم Idempotency-Key

Closes the session with the cash counted; the drawer's working is kept beside the count. A count further off than the store allows needs a note. Requires the clerk's unlock.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • session_idstringمطلوب

    معرّف من نوع pses، مثل pses_01k8qs5s….

الترويسات

  • x-pos-clerkstringمطلوب

    The clerk's unlock

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • counted_cashintegerمطلوب

    Cash counted in the drawer, minor units.

  • countobject · أو null

    Counted note by note; must add up to counted_cash.

  • notestring · أو null

ما يُرجعه

200 Closed: the session.

الأخطاء

  • 409Already closed.
  • 422validation_failedA note is needed, or the count doesn't add up.