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

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

Complete order receipt

POST/store/v1/order-status/{token}/receipts/{receipt_id}/complete
  • يدعم Idempotency-Key

Confirms the receipt's file arrived, with the files edge's receipt. The page then shows the receipt submitted (the store reviews it), or scanning while its malware scan finishes: ask again until it isn't. A file the scan blocked is refused (422, with why).

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

  • tokenstringمطلوب

    The order's link token

  • receipt_idstringمطلوب

    The receipt being sent

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • receiptstringمطلوب

    Exactly as the edge returned it.

ما يُرجعه

200 The order's page.

الأخطاء

  • 404not_foundNo order has this link, or no such receipt.
  • 422validation_failedThe edge's receipt isn't for this file, or the malware scan blocked it.