price_lists
Create a price list
Changed onCreate a price list
post/price_lists
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/price_lists
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "EU Price list",
"code": "europe1",
"currency_code": "EUR",
"tax_included": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"rules": {},
"metadata": {
"foo": "bar"
}
}
}
}Response
The created price list object
Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valueprice_listswas removed - info
added the new
price_listsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking