delivery_lead_times
Create a delivery lead time
Changed onCreate a delivery lead time
post/delivery_lead_times
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/delivery_lead_times
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"min_hours": 48,
"max_hours": 72,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_method": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created delivery lead time 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
the
request property default valuedelivery_lead_timeswas removed - info
added the new
delivery_lead_timesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking