curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory/{id}/reserve' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"location": {
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "40",
"available": "260",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:35:00Z",
"version": 6
},
"reservation_id": "res-550e8400-e29b-41d4"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
POST /api/v1/inventory/{id}/reserve
POST /api/v1/inventory/{id}/reserve
POST
/
api
/
v1
/
inventory
/
{id}
/
reserve
curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory/{id}/reserve' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"location": {
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "40",
"available": "260",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:35:00Z",
"version": 6
},
"reservation_id": "res-550e8400-e29b-41d4"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Path parameters
string
required
Inventory item id or item number
Request body
JSON body of typeReserveInventoryRequest.
Responses
ApiResponse_ReservationResponse
Inventory reserved
curl --request POST \
--url 'https://api.stateset.com/api/v1/inventory/{id}/reserve' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"location": {
"location_id": 1,
"location_name": "Main Warehouse",
"quantities": {
"allocated": "40",
"available": "260",
"on_hand": "300"
},
"updated_at": "2024-12-09T10:35:00Z",
"version": 6
},
"reservation_id": "res-550e8400-e29b-41d4"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI