Checkout

Set the merchandise subtotal and item ranges customers can take through checkout in each market.

Use Checkout settings to decide the smallest and largest merchandise subtotal, and the fewest and most items, a market accepts. The subtotal comparison uses merchandise after product and order discounts; the item limits count the total quantity of the order's items. Shipping, tax, duties, cash-on-delivery charges, checkout fees, payment discounts, store credit, and other payment methods are excluded. Both the minimum and maximum are inclusive. Read requests require read_markets; changes require write_markets.

Endpoints#

Get checkout limits

GET read_markets

Read the live validation limits for checkout settings.

Use money_max when validating minimum and maximum merchandise subtotals. Amounts must be positive and exactly representable in the currency: for example, KRW allows no fractional digits, USD and IDR allow two, and KWD allows three. Trailing zeros are accepted. Display precision can differ from accepted amount precision. The response includes Checkout Fee limits because both settings areas share the Checkout tab.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 NOT_FOUND

    The market does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get checkout settings

GET read_markets

Read a market's minimum and maximum checkout rules.

The enabled value limits are compared with merchandise after product and order discounts. Shipping, tax, duties, cash-on-delivery charges, checkout fees, online-payment discounts, store credit, and other payment methods do not change this comparison. The enabled quantity limits are compared with the order's total merchandise quantity. Minimum and maximum boundaries are inclusive.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 NOT_FOUND

    The market does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update checkout settings

PUT write_markets

Set the discounted merchandise subtotal range and the item quantity range accepted by a market.

Send every toggle with its complete currency map or quantity. An enabled value limit requires a positive amount for every currency assigned to the market; an enabled quantity limit requires a whole number of at least 1. Disabled limits ignore and clear their amounts and quantities. When both value limits are enabled, the maximum must be greater than the minimum in every currency; when both quantity limits are enabled, the maximum must be at least the minimum. An unchanged request leaves timestamps untouched and publishes no event; a successful change publishes checkout_settings/update.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
min_order_enabled required boolean

Whether checkout requires a minimum discounted merchandise subtotal.

Example: true
min_order_amounts required object

Inclusive minimum subtotal keyed by every assigned market currency. Send an empty object when the limit is disabled.

Example: {"EUR":"50.00","CHF":"45.00"}
max_order_enabled required boolean

Whether checkout enforces a maximum discounted merchandise subtotal.

Example: true
max_order_amounts required object

Inclusive maximum subtotal keyed by every assigned market currency. Send an empty object when the limit is disabled.

Example: {"EUR":"1000.00","CHF":"950.00"}
min_quantity_enabled boolean

Whether checkout requires a minimum total merchandise quantity (the sum of every line's quantity). Defaults to false.

Example: true
min_quantity integer|null

Inclusive minimum total merchandise quantity, at least 1. Required when min_quantity_enabled is true; ignored and returned as null otherwise.

Example: 2
max_quantity_enabled boolean

Whether checkout enforces a maximum total merchandise quantity. Defaults to false.

Example: true
max_quantity integer|null

Inclusive maximum total merchandise quantity, at least 1 and at least min_quantity when both are enabled. Required when max_quantity_enabled is true; ignored and returned as null otherwise.

Example: 50

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID. The request body is not valid JSON.

  • 400 CHECKOUT_AMOUNT_CURRENCY_REQUIRED

    An enabled limit is missing an amount for one of the market's currencies.

  • 400 CHECKOUT_AMOUNT_CURRENCY_UNKNOWN

    An amount uses a currency that is not assigned to this market.

  • 400 CHECKOUT_AMOUNT_POSITIVE

    An enabled limit contains a zero or negative amount.

  • 400 CHECKOUT_AMOUNT_TOO_LARGE

    An amount exceeds money_max from the limits endpoint, rounded down to the currency's decimal places (9999999999999999.99 for USD); the message gives the currency's maximum.

  • 400 CHECKOUT_AMOUNT_TOO_PRECISE

    An amount has more decimal places than its currency supports.

  • 400 CHECKOUT_AMOUNT_INVALID

    An amount is not a decimal number; the message names the currency.

  • 400 CHECKOUT_ORDER_RANGE_INVALID

    A maximum is not greater than the corresponding minimum.

  • 400 CHECKOUT_QUANTITY_INVALID

    An enabled quantity limit is missing or is not a whole number of at least 1.

  • 400 CHECKOUT_QUANTITY_RANGE_INVALID

    max_quantity is less than min_quantity.

  • 404 NOT_FOUND

    The market does not exist in this store.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Webhook events#

Subscribe to checkout_settings/update when your app keeps a local copy of a market's checkout limits. The event contains the complete saved settings and currency amounts. Requests that make no effective change do not publish an event.

Checkout limits updated

EVENT checkout_settings/update App scope: read_markets Staff permission: markets:write

Subscribe to receive the current minimum and maximum merchandise subtotal rules after checkout limits change for a market. Money maps contain exact decimal strings keyed by currency code, using currency amount precision (for example KWD 1.234, KRW 1234, USD 12.34). They never use General display separators or symbols.

Payload fields

Field Type Description
checkout_settings.id string Always present
checkout_settings.market_id string Selectable in the Payload builder
checkout_settings.min_order_enabled boolean Selectable in the Payload builder
checkout_settings.min_order_amounts object Selectable in the Payload builder
checkout_settings.max_order_enabled boolean Selectable in the Payload builder
checkout_settings.max_order_amounts object Selectable in the Payload builder
checkout_settings.min_quantity_enabled boolean Selectable in the Payload builder

Orders need at least min_quantity items (the total merchandise quantity).

checkout_settings.min_quantity integer | null Selectable in the Payload builder

Inclusive minimum total merchandise quantity; null when min_quantity_enabled is false.

checkout_settings.max_quantity_enabled boolean Selectable in the Payload builder

Orders can have at most max_quantity items (the total merchandise quantity).

checkout_settings.max_quantity integer | null Selectable in the Payload builder

Inclusive maximum total merchandise quantity; null when max_quantity_enabled is false.

checkout_settings.created_at string Selectable in the Payload builder
checkout_settings.updated_at string Selectable in the Payload builder