POST
/
api
/
documents
/
{order_id}
Attach documents to an order
curl --request POST \
  --url https://api.retailreadyai.com/api/documents/{order_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'metadata=[{"type":"carton_labels","file_format":"PDF"},{"type":"pallet_labels","file_format":"PDF"}]' \
  --form carton_labels=@/path/to/carton_labels.pdf \
  --form pallet_labels=@/path/to/pallet_labels.pdf
{
  "message": "Documents uploaded successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

order_id
string
required

The ID of the order to attach the documents to

Body

Response

200
application/json

Successfully uploaded documents

The response is of type object.