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 webhook event values
[ { "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ … ], "name": "My Webhook", "store_id": 123456 } ]
The possible webhook 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 '{
"name": "My New Webhook",
"event": "batch",
"url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
"headers": [
{
"key": "custom-key",
"value": "custom-value"
}
],
"store_id": 123456
}'The request was a success.
A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.
A URL
The possible webhook event values
{ "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ { … } ], "name": "My Webhook", "store_id": 123456 }
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 webhook event values
{ "webhook_id": "se-28529731", "url": "https://[YOUR ENDPOINT ID].x.requestbin.com", "event": "batch", "headers": [ { … } ], "name": "My Webhook", "store_id": 123456 }
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 '{
"name": "My Updated Webhook",
"url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
"headers": [
{
"key": "custom-key",
"value": "custom-value"
}
]
}'No response examplecurl -i -X DELETE \
'https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}' \
-H 'api-key: YOUR_API_KEY_HERE'No response example