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

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

Log a call that didn't decide the order

POST/admin/v1/stores/{store_id}/order-confirmations/{order_id}/calls
  • orders:confirm
  • orders:write
  • يدعم Idempotency-Key

Log a call that didn't decide the order: no answer, busy, wrong number, or call back at a time.

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

  • store_idstringمطلوب

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

  • order_idstringمطلوب

    معرّف من نوع ord، مثل ord_01k8qs5s….

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • outcomeenumمطلوب

    What a call came to, short of a decision.

    • no_answer
    • busy
    • wrong_number
    • call_back
  • call_back_attimestamp · أو null

    For call_back: when, within two weeks.

  • notestring · أو null

ما يُرجعه

200 The order.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundThe order never needed confirming.
  • 409Already confirmed or cancelled.
  • 422validation_failedA call-back time outside the next two weeks.