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.
ShipStation API v2 (2.0.0)
Webhooks
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.
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/environment/webhooks
- Productionhttps://api.shipstation.com/v2/environment/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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 the webhook
The url that the webhook sends the request to
The possible webhook event values
[ { "webhook_id": "se-28529731", "url": "https://example.com/webhook", "event": "batch", "headers": [ … ], "name": "My Webhook", "store_id": 123456 } ]
The possible webhook event values
The url that the webhook sends the request to
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/environment/webhooks
- Productionhttps://api.shipstation.com/v2/environment/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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://example.com/webhook",
"headers": [
{
"key": "custom-key",
"value": "custom-value"
}
],
"store_id": 123456
}'The request was a success.
A string that uniquely identifies the webhook
The url that the webhook sends the request to
The possible webhook event values
{ "webhook_id": "se-28529731", "url": "https://example.com/webhook", "event": "batch", "headers": [ { … } ], "name": "My Webhook", "store_id": 123456 }
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}
- Productionhttps://api.shipstation.com/v2/environment/webhooks/{webhook_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/se-28529731 \
-H 'api-key: YOUR_API_KEY_HERE'The request was a success.
A string that uniquely identifies the webhook
The url that the webhook sends the request to
The possible webhook event values
{ "webhook_id": "se-28529731", "url": "https://example.com/webhook", "event": "batch", "headers": [ { … } ], "name": "My Webhook", "store_id": 123456 }
The url that the webhook sends the request
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}
- Productionhttps://api.shipstation.com/v2/environment/webhooks/{webhook_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/se-28529731 \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "My Updated Webhook",
"url": "https://example.com/webhook",
"headers": [
{
"key": "custom-key",
"value": "custom-value"
}
]
}'No response example- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/{webhook_id}
- Productionhttps://api.shipstation.com/v2/environment/webhooks/{webhook_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.shipstation.com/_mock/openapi/v2/environment/webhooks/se-28529731 \
-H 'api-key: YOUR_API_KEY_HERE'No response example