Skip to content

Upload receipt image

POST {{baseUrlRoot}}/orders/{{orderId}}/uploadReceipt

Uploads a receipt photo as multipart form data. Goes through the api_unauthed axios instance (no /api prefix, explicit Authorization: Bearer header) rather than the usual authenticated client.

Response: 200, plain-text body Image uploaded successfully. If no file was attached, the backend still responds 200 with the plain-text body No file uploaded rather than an error.

{
"confirmType": "receipt",
"file": ""
}
Terminal window
curl --request POST 'https://api.firstdelivery.com/orders/REPLACE_WITH_ORDER_ID/uploadReceipt' \
--header 'Authorization: Bearer {{accessToken}}' \
--data '{
"confirmType": "receipt",
"file": ""
}'
Image uploaded successfully