Update a price adjustment
PATCH /v1/pricing/adjustments/{id}
Partially update an existing price adjustment. Send only the fields you want to change (e.g. status, targets, effect, conditions). Server-controlled fields (companyId, id, created, changed) are stripped from the body. The adjustment must belong to the authenticated company. Changing a coupon conditions.code to one already used by another active adjustment returns 409.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
padj_123abcThe price adjustment ID.
Request Body required
Section titled “Request Body required ”A partial PriceAdjustment — any subset of mutable fields.
Placeholder schema for PriceAdjustment. Add it to the schemaMap in scripts/create-content/api-docs.mjs for a richer definition.
object
Example
{ "status": "inactive"}Responses
Section titled “ Responses ”The updated price adjustment record
object
Example
okPlaceholder schema for PriceAdjustment. Add it to the schemaMap in scripts/create-content/api-docs.mjs for a richer definition.
object
Validation failed — the patch did not satisfy the schema
object
Example
errorExample
An error occurredUnauthorized — a valid bearer token is required
object
Example
errorExample
An error occurredForbidden — the adjustment belongs to a different company
object
Example
errorExample
An error occurredNot found — no such adjustment
object
Example
errorExample
An error occurredConflict — the new coupon code is already taken
object
Example
errorExample
An error occurredInternal server error
object
Example
errorExample
An error occurred