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.
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/inventory?group_by=warehouse&inventory_location_id=string&inventory_warehouse_id=string&limit=0&sku=string' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "inventory": [ { … } ], "total": 0, "page": 0, "pages": 0, "links": { "first": { … }, "last": { … }, "prev": { … }, "next": { … } } }
The type of update to perform: increment: Increase inventory quantity for specified location. decrement: Decreate inventory quantity for specified location given a set of filters. adjust: Adjust on hand quantity of inventory for specified location to the quantity indicated. This is done by either adding or removing inventory in the condition specified. modify: Modify attributes on specified inventory. The filters work the same as for decrement transaction type.
Used with the modify transaction type to move inventory to a new location
curl -i -X POST \
https://docs.shipstation.com/_mock/openapi/v2/inventory \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"transaction_type": "increment",
"inventory_location_id": "string",
"sku": "string",
"quantity": 0,
"cost": {
"amount": 0,
"currency": "string"
},
"condition": "sellable",
"lot": "string",
"usable_start_date": "2019-08-24T14:15:22Z",
"usable_end_date": "2019-08-24T14:15:22Z",
"effective_at": "2019-08-24T14:15:22Z",
"reason": "string",
"notes": "string",
"new_inventory_location_id": "string",
"new_cost": {
"amount": 0,
"currency": "string"
},
"new_condition": "sellable"
}'
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_warehouses?limit=0' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "inventory_warehouses": [ { … } ], "total": 0, "page": 0, "pages": 0, "links": { "first": { … }, "last": { … }, "prev": { … }, "next": { … } } }
curl -i -X POST \
https://docs.shipstation.com/_mock/openapi/v2/inventory_warehouses \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "string"
}'
{ "inventory_warehouse_id": "string", "name": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_warehouses/{inventory_warehouse_id}' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "inventory_warehouse_id": "string", "name": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X PUT \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_warehouses/{inventory_warehouse_id}' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "string"
}'
curl -i -X DELETE \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_warehouses/{inventory_warehouse_id}?remove_inventory=0' \
-H 'api-key: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_locations?limit=0' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "inventory_locations": [ { … } ], "total": 0, "page": 0, "pages": 0, "links": { "first": { … }, "last": { … }, "prev": { … }, "next": { … } } }
curl -i -X POST \
https://docs.shipstation.com/_mock/openapi/v2/inventory_locations \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"inventory_warehouse_id": "string"
}'
{ "inventory_location_id": "string", "name": "string", "inventory_warehouse_id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_locations/{inventory_location_id}' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "inventory_location_id": "string", "name": "string", "inventory_warehouse_id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X PUT \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_locations/{inventory_location_id}' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "string"
}'
curl -i -X DELETE \
'https://docs.shipstation.com/_mock/openapi/v2/inventory_locations/{inventory_location_id}?remove_inventory=0' \
-H 'api-key: YOUR_API_KEY_HERE'
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.