sku_options
Create a SKU option
Changed onCreate a SKU option
post/sku_options
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/sku_options
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "Embossing",
"currency_code": "EUR",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"price_amount_cents": 1000,
"delay_hours": 48,
"sku_code_regex": "^(A|B).*$",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"market": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created SKU option object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
the
request property default valuesku_optionswas removed - info
added the new
sku_optionsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking