Create a SKU list item
How to create a SKU list item via API
Last updated
How to create a SKU list item via API
Last updated
To a new SKU list item, send a POST
request to the /api/sku_list_items
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/sku_list_items
type
string
Required
attributes.position
integer
Optional
attributes.sku_code
string
Optional
attributes.quantity
integer
Optional, default is '1'
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.sku_list
object
Required
relationships.sku
object
Required
The following request creates a new SKU list item: