curl --request PUT \
--url 'https://api.stateset.com/api/v1/inventory/{id}' \
--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
}
PUT /api/v1/inventory/{id}
PUT /api/v1/inventory/{id}
PUT
/
api
/
v1
/
inventory
/
{id}
curl --request PUT \
--url 'https://api.stateset.com/api/v1/inventory/{id}' \
--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
}
Path parameters
string
required
Inventory item id or item number
Request body
JSON body of typeUpdateInventoryRequest.
Responses
ApiResponse_InventoryItem
Inventory item updated
curl --request PUT \
--url 'https://api.stateset.com/api/v1/inventory/{id}' \
--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