adjustments
Update an adjustment
Changed onUpdate an adjustment
patch/adjustments/{adjustmentId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/adjustments/{adjustmentId}
- AuthHTTP bearer
Path parameters
adjustmentIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "Additional service",
"currency_code": "EUR",
"amount_cents": 1500,
"distribute_discount": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The updated adjustment object
Changes
- breaking
request property
/was restricted to a list of enum values - 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 valueadjustmentswas removed - info
added the new
adjustmentsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking