Attachments

Order Submission With Attachments

We also support the ability to submit orders with attachments. You can include attachments in your order payload and send them as part of the request. Here's how you can do it:

curl --X POST --location '<https://example.com/graphql>' \
  --header 'Authorization: Bearer <your-JWT-token>' \
  -F operations='{"query":"mutation createOrder($order: OrderInput!) {createOrder(order: $order) {id}}","variables":{"order": { <your-order-payload>, attachments: null }}}' \
  -F map='{"0": ["variables.order.attachments.0"], "1": ["variables.order.attachments.1"], "2": ["variables.order.attachments.2"] }' \
  -F 0=@<path-to-the-file-0> \
  -F 1=@<path-to-the-file-1> \
  -F 2=@<path-to-the-file-2>