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