Create a stock reservation
How to create a stock reservation via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/stock_reservations' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "stock_reservations",
"attributes": {
"quantity": 4
},
"relationships": {
"stock_item": {
"data": {
"type": "stock_items",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated