curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"description": "Premium Widget - Blue Edition",
"inventory_item_id": 12345,
"item_number": "SKU-WIDGET-001",
"locations": [
{
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "30",
"available": "270",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:30:00Z",
"version": 5
},
{
"location_id": 2,
"location_name": "Distribution Center East",
"quantities": {
"allocated": "20",
"available": "180",
"on_hand": "200"
},
"updated_at": "2024-12-09T09:15:00Z",
"version": 3
}
],
"organization_id": 1,
"primary_uom_code": "EA",
"quantities": {
"allocated": "50",
"available": "450",
"on_hand": "500"
}
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
POST /api/v1/inventory
POST /api/v1/inventory
POST
/
api
/
v1
/
inventory
curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"description": "Premium Widget - Blue Edition",
"inventory_item_id": 12345,
"item_number": "SKU-WIDGET-001",
"locations": [
{
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "30",
"available": "270",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:30:00Z",
"version": 5
},
{
"location_id": 2,
"location_name": "Distribution Center East",
"quantities": {
"allocated": "20",
"available": "180",
"on_hand": "200"
},
"updated_at": "2024-12-09T09:15:00Z",
"version": 3
}
],
"organization_id": 1,
"primary_uom_code": "EA",
"quantities": {
"allocated": "50",
"available": "450",
"on_hand": "500"
}
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Request body
JSON body of typeCreateInventoryRequest.
Responses
ApiResponse_InventoryItem
Inventory created
ErrorResponse
Bad request
ErrorResponse
Unauthorized
ErrorResponse
Rate limit exceeded
curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"description": "Premium Widget - Blue Edition",
"inventory_item_id": 12345,
"item_number": "SKU-WIDGET-001",
"locations": [
{
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "30",
"available": "270",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:30:00Z",
"version": 5
},
{
"location_id": 2,
"location_name": "Distribution Center East",
"quantities": {
"allocated": "20",
"available": "180",
"on_hand": "200"
},
"updated_at": "2024-12-09T09:15:00Z",
"version": 3
}
],
"organization_id": 1,
"primary_uom_code": "EA",
"quantities": {
"allocated": "50",
"available": "450",
"on_hand": "500"
}
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI