لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nullCounted note by note; must add up to
counted_cash.notestring · أو null
ما يُرجعه
200 Closed: the session.
الأخطاء
- 409Already closed.
- 422
validation_failedA note is needed, or the count doesn't add up.