Update a checkout price rule

Update a rule. Products and carriers have their own endpoints — this does not touch them.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
≥ 1

Rule id.

Body Params
integer
≥ 1

Shop the rule belongs to.

string
string
string
enum

What the rule keys on: the order value or its weight.

Allowed:
string

Unit for min/max: the currency for Money, the weight unit for Weight.

number | null

Lower bound of the range.

number | null

Upper bound.

integer
0 to 1

0 domestic, 1 international.

string | null

Restrict to a country. null applies everywhere.

string | null

Restrict to a state.

string | null

Restrict to a city.

number

The figure applied, read together with amount_type.

string
enum
Defaults to DISCOUNT

What to do with the shipping price:

  • DISCOUNT — take amount off
  • INCREASE — add amount
  • FIXED — charge exactly amount, ignoring the quote
  • OMIT — do not offer the option at all
Allowed:
integer
≥ 1

Price operation from the internal catalog. The catalog is not exposed by the API today — ask support for the value that matches what you need.

integer
0 to 1

0 keeps the rule without applying it.

Responses

429

Rate limit exceeded. Every response carries x-rate-limit-limit, x-rate-limit-remaining and x-rate-limit-reset; read them rather than assuming a fixed number.

Verified headers: x-rate-limit-limit: 300, x-rate-limit-remaining, and x-rate-limit-reset as a Unix timestamp. They are on every response, not only on a 429, so you can slow down before being refused.

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json