Process labels in bulk and receive a large number of labels and customs forms in bulk responses. Batching is ideal for workflows that need to process hundreds or thousands of labels quickly.
Webhooks are a powerful feature that can save you from sending repeated polling requests to check on the state of something. With webhooks, ShipStation will automatically contact your servers when the stage changes. This can include parcel tracking events, notification when a batch operation completes, and more.
curl -i -X GET \ https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks \ -H 'api-key: YOUR_API_KEY_HERE'
The request was a success.
A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.
The possible webook event values
[ { "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ … ] } ]
The possible webook event values
A URL
curl -i -X POST \ https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks \ -H 'Content-Type: application/json' \ -H 'api-key: YOUR_API_KEY_HERE' \ -d '{ "event": "batch", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "headers": [ { "key": "custom-key", "value": "custom-value" } ] }'
The request was a success.
A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.
A URL
The possible webook event values
{ "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ { … } ] }
curl -i -X GET \ 'https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}' \ -H 'api-key: YOUR_API_KEY_HERE'
The request was a success.
A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.
A URL
The possible webook event values
{ "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ { … } ] }
curl -i -X PUT \ 'https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}' \ -H 'Content-Type: application/json' \ -H 'api-key: YOUR_API_KEY_HERE' \ -d '{ "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "headers": [ { "key": "custom-key", "value": "custom-value" } ] }'
No response example
curl -i -X DELETE \ 'https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}' \ -H 'api-key: YOUR_API_KEY_HERE'
No response example