Update a shipping method
Changed onUpdate a shipping method
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/shipping_methods/{shippingMethodId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "Standard shipping",
"scheme": "flat",
"currency_code": "EUR",
"external_prices_url": "https://external_prices.yourbrand.com",
"price_amount_cents": 1000,
"free_over_amount_cents": 9900,
"use_subtotal": true,
"min_weight": 3,
"max_weight": 300,
"unit_of_weight": "gr",
"tax_code": "FR010000",
"_disable": true,
"_enable": true,
"_reset_circuit": true,
"_regenerate_shared_secret": true,
"external_includes": [
"order.line_item_options"
],
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"market": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_zone": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_category": {
"data": {
"id": "XAyRWNUzyN"
}
},
"stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_method_tiers": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated shipping method object
Changes
- breaking
added the new required request property
/// - 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
/// - 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
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valueshipping_methodswas removed - info
added the new
shipping_methodsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking