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

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

Assign ZATCA unit

PUT/admin/v1/stores/{store_id}/zatca/units/{unit_id}/assignment
  • settings:write

Name a unit and say what it serves. Its chain stays with it, and issued documents keep the unit that signed them.

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

  • store_idstringمطلوب

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

  • unit_idstringمطلوب

    معرّف من نوع zegs، مثل zegs_01k8qs5s….

الترويسات

  • shop-api-versionYYYY-MM

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

الجسم

  • namestringمطلوب
  • location_idstring · أو null

    TypeID with the loc prefix.

  • pos_register_idstring · أو null

    TypeID with the preg prefix.

ما يُرجعه

200 The unit.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such unit.
  • 409Retired (invalid_state), another unit serves it (unit_assignment_taken), or it doesn't exist (unit_target_missing).
  • 422validation_failedValidation failed.