external_tax_calculators
Update an external tax calculator
Changed onUpdate an external tax calculator
patch/external_tax_calculators/{externalTaxCalculatorId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/external_tax_calculators/{externalTaxCalculatorId}
- AuthHTTP bearer
Path parameters
externalTaxCalculatorIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "Personal tax calculator",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"_reset_circuit": true,
"_regenerate_shared_secret": true,
"external_includes": [
"order.line_item_options"
],
"tax_calculator_url": "https://external_calculator.yourbrand.com"
}
}
}Response
The updated external tax calculator object
Changes
- info
added the optional property
//to the response with the status
- info
- breaking
request property
/was restricted to a list of enum values - 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
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valueexternal_tax_calculatorswas removed - info
added the new
external_tax_calculatorsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking