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.
Full API Reference//
- Get custom package type by id
List custom package types
Create custom package type
Update custom package type by id
Delete a custom package by id
Get custom package type b...
ShipStation API v2 (2.0.0)
Download OpenAPI description
Overview
License
Languages
Servers
Mock server
https://docs.shipstation.com/_mock/openapi/
Production
https://api.shipstation.com/
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/packages
- Productionhttps://api.shipstation.com/v2/packages
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.shipstation.com/_mock/openapi/v2/packages \
-H 'api-key: YOUR_API_KEY_HERE'Response
application/json
{ "packages": [ { … } ] }
Bodyapplication/jsonrequired
A string that uniquely identifies the package.
Example: "se-28529731"
A [package type] , such as thick_envelope, small_flat_rate_box, large_package, etc. Use the code package for custom or unknown package types.
Example: "small_flat_rate_box"
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/packages
- Productionhttps://api.shipstation.com/v2/packages
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.shipstation.com/_mock/openapi/v2/packages \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"package_id": "se-28529731",
"package_code": "small_flat_rate_box",
"name": "laptop_box",
"dimensions": {
"unit": "inch",
"length": 2,
"width": 2,
"height": 1
},
"description": "Packaging for laptops"
}'Response
application/json
{ "package_id": "se-28529731", "package_code": "small_flat_rate_box", "name": "laptop_box", "dimensions": { "unit": "inch", "length": 2, "width": 2, "height": 1 }, "description": "Packaging for laptops" }
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/packages/{package_id}
- Productionhttps://api.shipstation.com/v2/packages/{package_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.shipstation.com/_mock/openapi/v2/packages/se-28529731 \
-H 'api-key: YOUR_API_KEY_HERE'Response
application/json
{ "package_id": "se-28529731", "package_code": "small_flat_rate_box", "name": "laptop_box", "dimensions": { "unit": "inch", "length": 2, "width": 2, "height": 1 }, "description": "Packaging for laptops" }
Bodyapplication/jsonrequired
A string that uniquely identifies the package.
Example: "se-28529731"
A [package type] , such as thick_envelope, small_flat_rate_box, large_package, etc. Use the code package for custom or unknown package types.
Example: "small_flat_rate_box"
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/packages/{package_id}
- Productionhttps://api.shipstation.com/v2/packages/{package_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.shipstation.com/_mock/openapi/v2/packages/se-28529731 \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"package_id": "se-28529731",
"package_code": "small_flat_rate_box",
"name": "laptop_box",
"dimensions": {
"unit": "inch",
"length": 2,
"width": 2,
"height": 1
},
"description": "Packaging for laptops"
}'Response
No response example- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/packages/{package_id}
- Productionhttps://api.shipstation.com/v2/packages/{package_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.shipstation.com/_mock/openapi/v2/packages/se-28529731 \
-H 'api-key: YOUR_API_KEY_HERE'Response
No response exampleWebhooks
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.
Operations