Upload Invoice
Upload an invoice or other document for an existing order.
Overview
The Upload Invoice endpoint is used to attach required documents to an order after it has been created. This is crucial for compliance and record-keeping. The request must be sent asmultipart/form-data.
This endpoint allows you to upload a document (like an invoice or air waybill), associated with an existing order.
Request Parameters
Path
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| order_id | path | string | Yes | Unique identifier of the order |
Body (multipart/form-data)
Parameter Definitions
Top-level
| Name | Type | Required | Description | Constraints |
|---|---|---|---|---|
| identifier | string | Yes | Identifier for the document | Free-form string for your reference (e.g., invoice or AWB number) |
| document_type | string | Yes | Type of document | Enum: invoice, awb |
| file | binary | Yes | The file to upload | Max size 2MB; supported formats: pdf, jpg, jpeg |
Examples
Authorizations
Client Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.
Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.
API Version - Specifies which version of the API to use (e.g., '1.X.X', '2.X.X', or '3.X.X'). This header allows you to control which API version your integration uses. Default version information is available in the Developer Settings.
Path Parameters
Unique identifier of the order
Body
Document upload request. The body must be multipart/form-data.