cURL
curl --request POST \ --url https://production.trackstarhq.com/wms/orders/{order_id}/file \ --header 'Content-Type: multipart/form-data' \ --header 'x-trackstar-access-token: <x-trackstar-access-token>' \ --header 'x-trackstar-api-key: <x-trackstar-api-key>' \ --form file_url=file_url \ --form file_name=file_name \ --form file='@example-file'
{ "data": "success", "id": "id", "unused_fields": [ "<string>" ] }
Create a file for the specified order.
Your organization-level Trackstar API key.
"<x-trackstar-api-key>"
Your user's access token for a specific integration (ShipHero, Extensiv, etc).
"<x-trackstar-access-token>"
The URL of the file to attach.
"file_url"
The name of the file to attach.
"file_name"
Successful response
Status of the file attachment
success
The ID of the object that has been created or modified
"id"
Unused fields