Set the shop's default markup and rounding, repricing cost_plus variants
Sets the shop's default markup and rounding and immediately reprices every cost_plus variant; the response says how many were repriced and each change lands in the price history.
/v1/clients/{clientId}/pricingSets the shop's default markup and rounding and immediately reprices every cost_plus variant; the response says how many were repriced and each change lands in the price history. Needs authority over the client — membership of its organization, an API key bound to this client, or tenant staff holding clients:manage; anything else is refused not_client_member or insufficient_scope (403), and an unknown client client_not_found (404). Refuses invalid_request (400) for a markup or rounding outside its bounds, or when a derived price would exceed the maximum amount.
Authorization
bearerAuth A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A shop's pricing defaults for cost_plus variants.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/v1/clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/pricing" \ -H "Content-Type: application/json" \ -d '{ "rounding": { "increment": 0, "offset": 0 } }'{ "markup": { "kind": "percent", "value": 0 }, "rounding": { "increment": 0, "offset": 0 }, "repriced_variants": 0}The shop's default markup and rounding
The shop's default markup and rounding rule, which is what variants priced cost_plus derive their price from.
Every price change in the shop, newest first
Every price change in the shop, newest first, with the old and new amount, what caused it (a manual edit or a repricing) and who did it.