Products
/- Connect Channel Platform
- REST APIs reference
- Connect
/
uploadOrderDocument - Upl...
Description
Use this API to upload a document for an order or its related entities (e.g. returns).
Call Frequency
Recommended usage: On each new document on the order
Maximum usage: On each new document on the order
Security
Bearer(Required scopes:
connect-channel-platform:order-d...
)- Connect Channel Platform APIhttps://miraklconnect.com/api/channel-platform/v1/orders/{channel_order_id}/documents
curl -i -X POST \
https://miraklconnect.com/api/channel-platform/v1/orders/{channel_order_id}/documents \
-H 'Content-Type: multipart/form-data' \
-F 'file=@path/to/file' \
-F 'origin="{\"channel_id\":\"string\",\"channel_store_id\":\"string\",\"sub_channel_code\":\"string\"}";type=application/json' \
-F 'metadata="{\"channel_document_id\":\"string\",\"filename\":\"UPS_1Z999AA10123456784.pdf\",\"type\":\"RETURN_LABEL\",\"channel_type\":\"string\",\"entity\":{\"id\":\"caf30673-ea3d-4113-9a18-674850f6a290\",\"type\":\"RETURN\"}}";type=application/json'