line_item_options
Create a line item option
Changed onCreate a line item option
post/line_item_options
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/line_item_options
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "Embossing",
"quantity": 2,
"unit_amount_cents": 990,
"options": {
"embossing_text": "Happy Birthday!"
},
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"line_item": {
"data": {
"id": "XAyRWNUzyN"
}
},
"sku_option": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created line item option object
Changes
- breaking
added the new required request property
/// - 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
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valueline_item_optionswas removed - info
added the new
line_item_optionsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking