Create a checkout price rule

Adjust the shipping price the buyer sees, based on the order's value or weight.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required
≥ 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
required
≥ 1

Required in practice. Omitting it answers 422 Invalid data. — the insert fails before any validation message can name the field. No endpoint currently returns this catalog; ask support for the value that matches your pricing operation.

integer
0 to 1

0 keeps the rule without applying it.

carrier_ids
array of integers
length ≥ 1

Restrict the rule to these carriers. Omit to apply to all.

carrier_ids
products
array of objects
length ≥ 1

Restrict the rule to specific products. Omit the key entirely rather than sending an empty array.

products
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