لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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/webporapplication/pdf.size_bytesintegerمطلوبUp to 10 MB.
file_namestring · أو nullShown to the store; folders are dropped.
ما يُرجعه
201 The receipt and the permission to upload its file.
الأخطاء
- 404
not_foundNo order has this link. - 409The order isn't waiting for a transfer, or has five receipts.
- 422
validation_failedNot a picture or PDF under 10 MB.