Create a stock reservation
How to create a stock reservation via API
To create a new stock reservation, send a POST
request to the /api/stock_reservations
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/stock_reservations
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.metadata |
| Optional |
attributes.quantity |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
relationships.stock_item |
| Required |
Example
The following request creates a new stock reservation:
Last updated