Orders
v2-uploadOrderDocument - Upload a document for an order
Changed onUse this API to upload a document for an order or its related entities (e.g. returns).
Supported document types are :
- <code>RETURN_LABEL</code>
- <code>CUSTOMER_INVOICE</code>
post/v2/orders/{order_id}/documents
Request
- Base URLhttps://miraklconnect.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
order_idstring required
Order identifier in Mirakl Connect
Request body multipart/form-data
Example request
{
"metadata": {
"returnLabel": {
"externalValue": "schemas/examples/UploadReturnLabelOrderDocumentRequest.json",
"summary": "Metadata for a <code>RETURN_LABEL</code> document"
}
}
}Response
Accepted. The document upload request will be processed asynchronously.
Example response
{
"action_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4",
"tracking_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4"
}Changes
- breaking
request property
//was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - info
added the new
CUSTOMER_INVOICEenum value to the request property/ - info
added the new
RETURNenum value to the request property// - info
added the new
RETURN_LABELenum value to the request property/
- breaking