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

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

Start order receipt

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

The buyer starts sending a picture or PDF of their bank transfer or InstaPay payment (JPEG, PNG, WebP or PDF, up to 10 MB): the answer is the permission to send the file to the files edge, never to this API. Send it there, then confirm with the edge's receipt. The order keeps up to five receipts.

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

  • tokenstringمطلوب

    The order's link token

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • content_typestringمطلوب

    image/jpeg, image/png, image/webp or application/pdf.

  • size_bytesintegerمطلوب

    Up to 10 MB.

  • file_namestring · أو null

    Shown to the store; folders are dropped.

ما يُرجعه

201 The receipt and the permission to upload its file.

الأخطاء

  • 404not_foundNo order has this link.
  • 409The order isn't waiting for a transfer, or has five receipts.
  • 422validation_failedNot a picture or PDF under 10 MB.