Skip to content

Start order receipt

POST/store/v1/order-status/{token}/receipts
  • Idempotency-Key supported

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.

Path parameters

  • tokenstringrequired

    The order's link token

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • content_typestringrequired

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

  • size_bytesintegerrequired

    Up to 10 MB.

  • file_namestring · or null

    Shown to the store; folders are dropped.

Returns

201 The receipt and the permission to upload its file.

Errors

  • 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.