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.
Request body
Section titled “Request body”{ "confirmType": "receipt", "file": ""}Examples
Section titled “Examples”curl --request POST 'https://api.firstdelivery.com/orders/REPLACE_WITH_ORDER_ID/uploadReceipt' \ --header 'Authorization: Bearer {{accessToken}}' \ --data '{ "confirmType": "receipt", "file": ""}'const response = await fetch("https://api.firstdelivery.com/orders/REPLACE_WITH_ORDER_ID/uploadReceipt", { "method": "POST", "headers": { "Authorization": "Bearer {{accessToken}}" }, "body": "{\n \"confirmType\": \"receipt\",\n \"file\": \"\"\n}"})const data = await response.json()import requests
response = requests.request( "POST", "https://api.firstdelivery.com/orders/REPLACE_WITH_ORDER_ID/uploadReceipt", headers={ 'Authorization': 'Bearer {{accessToken}}'}, data="{\n \"confirmType\": \"receipt\",\n \"file\": \"\"\n}",)response.raise_for_status()Saved responses
Section titled “Saved responses”Image uploaded successfullyNo file uploaded
