Checkout fees

Add required charges and optional services to a market's checkout.

Checkout fees let an integration manage required charges and optional services for a market. Read requests require read_markets; changes require write_markets. Required fees apply automatically. Optional fees are offered for selection. Percentage fees use merchandise after product and order discounts, while fixed fees may apply once per order or once per merchandise unit. A fee's selected market tax class is applied after its amount is resolved.

Endpoints#

List checkout fees

GET read_markets

List the required charges and optional services configured for a market.

Fees are returned in checkout order together with the live authoring contract. Required fees are applied automatically. Optional fees are available for the customer or an admin to select. Percentage fees use merchandise after product and order discounts; fixed per-item fees multiply by the quantity of the items they apply to. Per-item and percentage fees show a calculation line under the fee name at checkout (for example ₹100.00 per item × 3 or 5% of ₹1,000.00); its wording is the store's Storefront Messages text in the shopper's language. checkout_fee_catalog.calculation_kinds says which fees have one, and calculation_defaults gives that wording in each of the store's storefront languages, with the language's name in English as label and the platform label of a fee's text field as text_prompt. A fee may apply only to carts holding chosen products or products of chosen collections (applies_to_options, at most max_targets_per_fee targets), only from or below a discounted merchandise subtotal, and a percentage fee may be capped (condition_types).

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 a checkout fee

GET read_markets

Read one checkout fee and its complete amount, application, availability, and tax configuration.

Use the returned currency map and contract metadata when populating an edit form. Historical orders retain the fee snapshot recorded when they were placed.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
feeId required uuid

Checkout fee ID.

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 or checkout fee 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.

Create a checkout fee

POST write_markets

Add a required charge or optional service to a market.

Fixed fees require an amount for every market currency and may apply once per order or once per merchandise unit. Percentage fees apply once per order to discounted merchandise. A selected tax class must belong to this market. Subtotal conditions and a percentage fee's cap need an amount for every market currency when enabled, like fixed amounts. An optional fee may ask the customer for text (collect_text). A successful create publishes checkout_fees/create.

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
name required string

Merchant-facing fee or service name.

Example: Gift wrapping
description string

Optional explanation shown with an optional service.

Example: Wrap the order before dispatch
fee_type required string

Use fixed for currency amounts or percent for a share of discounted merchandise.

Example: fixed
percent_value string|null

Percentage of discounted merchandise when fee_type is percent.

Example: 2.5
fee_amounts object

Positive fixed amount keyed by every market currency when fee_type is fixed. Follow the money_max checkout limit and settled currency precision: for example KRW 0, USD/IDR 2, KWD 3 fractional digits.

Example: {"USD":"5.00"}
apply_per required string

Use order to charge once or item to multiply a fixed fee by the quantity of the items it applies to. Percentage fees use order.

Example: order
tax_class_id uuid|null

Tax class from this market applied to the resolved fee.

Example: 4be5c5d1-0999-48ea-a2e0-f86703d99169
tax_code string

The fee's tax code on invoices and tax reports, such as its SAC code in India.

Example: 996812
is_enabled required boolean

Whether the fee can participate in checkout.

Example: true
is_optional required boolean

Whether the customer or admin chooses the fee instead of it applying automatically.

Example: true
applies_to string

all (every cart, the default), products or collections. With products or collections, the fee applies only when the cart holds a targeted product or a product of a targeted collection; a per-item fee then counts only those items, and a percentage fee takes only their discounted line totals as its base.

Example: products
target_product_ids array<string>

Targeted product ids as decimal strings, 1 to max_targets_per_fee, when applies_to is products. Every product must exist in the store. Ignored otherwise.

Example: ["1042","1057"]
target_collection_ids array<uuid>

Targeted collection ids, 1 to max_targets_per_fee, when applies_to is collections. Every collection must exist in the store. Ignored otherwise.

Example: ["3f6c2a1e-8b4d-4c7a-9e5f-0a1b2c3d4e5f"]
min_subtotal_enabled boolean

Whether the fee applies only when the discounted merchandise subtotal of the whole cart is at least min_subtotal_amounts in the order currency. Defaults to false.

Example: false
min_subtotal_amounts object

Positive minimum subtotal keyed by every market currency, as decimal strings, when min_subtotal_enabled is true. Cleared when it is false.

Example: {"INR":"499.00"}
max_subtotal_enabled boolean

Whether the fee applies only when the discounted merchandise subtotal is below max_subtotal_amounts (for example a handling fee waived from ₹999.00). Defaults to false.

Example: true
max_subtotal_amounts object

Positive subtotal keyed by every market currency at which the fee stops applying, when max_subtotal_enabled is true. Must be greater than the minimum in every currency when both are enabled. Cleared when disabled.

Example: {"INR":"999.00"}
percent_cap_enabled boolean

Whether a percentage fee is at most percent_cap_amounts. Only for fee_type percent. Defaults to false.

Example: false
percent_cap_amounts object

Positive maximum fee keyed by every market currency when percent_cap_enabled is true. Cleared when disabled.

Example: {"INR":"200.00"}
collect_text boolean

Whether the fee asks the customer for text, such as a gift message, when they select it. Only for optional fees. The text is kept on the order's fee line. Defaults to false.

Example: true
text_required boolean

Whether the customer must write the text to place an order with the fee selected. Only with collect_text.

Example: false
text_max_length integer|null

The most characters the customer may write, 1 to text_max_length_limit. Defaults to default_text_max_length when collect_text is true; null otherwise.

Example: 150
text_prompt string

The text field's label in the store's default language, at most text_prompt_max_length characters; empty uses the platform label. Translate it with the translation endpoints. Only with collect_text.

Example: Gift message

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_FEE_NAME_REQUIRED

    name is empty.

  • 400 CHECKOUT_FEE_NAME_TOO_LONG

    name exceeds the live contract limit.

  • 400 CHECKOUT_FEE_DESCRIPTION_TOO_LONG

    description exceeds the live contract limit.

  • 400 CHECKOUT_FEE_TYPE_INVALID

    fee_type or its accompanying value fields are invalid.

  • 400 CHECKOUT_FEE_APPLY_PER_INVALID

    apply_per is not supported for this fee type.

  • 400 CHECKOUT_FEE_PERCENT_RANGE

    percent_value is missing, not greater than 0, above 100, or has more than 2 decimal places.

  • 400 CHECKOUT_AMOUNT_CURRENCY_REQUIRED

    A fixed fee, or an enabled subtotal condition or cap, 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 amount is zero or negative.

  • 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 TAX_CLASS_NOT_IN_MARKET

    The selected tax class does not belong to this market.

  • 400 CHECKOUT_FEE_APPLIES_TO_INVALID

    applies_to is not all, products or collections.

  • 400 CHECKOUT_FEE_TARGETS_REQUIRED

    applies_to is products or collections but no target was sent.

  • 400 CHECKOUT_FEE_TARGETS_LIMIT

    More than max_targets_per_fee targets were sent.

  • 400 CHECKOUT_FEE_TARGET_NOT_FOUND

    A target id is malformed or the product or collection does not exist in this store.

  • 400 CHECKOUT_FEE_SUBTOTAL_RANGE_INVALID

    With both subtotal conditions enabled, a currency's max_subtotal_amounts is not greater than its min_subtotal_amounts.

  • 400 CHECKOUT_FEE_PERCENT_CAP_NOT_PERCENT

    percent_cap_enabled was sent for a fixed fee.

  • 400 CHECKOUT_FEE_TEXT_NOT_OPTIONAL

    collect_text was sent for a required fee. Turn text off before making the fee required.

  • 400 CHECKOUT_FEE_TEXT_MAX_LENGTH_INVALID

    text_max_length is outside 1 to text_max_length_limit.

  • 400 CHECKOUT_FEE_TEXT_PROMPT_TOO_LONG

    text_prompt exceeds text_prompt_max_length characters.

  • 404 NOT_FOUND

    The market does not exist in this store.

  • 400 CHECKOUT_FEE_LIMIT_REACHED

    The market already has the maximum number of checkout fees.

  • 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.

Update a checkout fee

PUT write_markets

Replace the editable definition of one checkout fee.

Send the complete definition you want to keep: a condition, cap, targeting or text setting left out is turned off and its amounts, targets or prompts are deleted, and a description, tax_class_id or tax_code left out is cleared. An unchanged request leaves timestamps, audit history, and webhooks untouched. A successful change publishes checkout_fees/update.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
feeId required uuid

Checkout fee ID.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name required string

Merchant-facing fee or service name.

Example: Gift wrapping
description string

Optional explanation shown with an optional service.

Example: Wrap the order before dispatch
fee_type required string

Use fixed for currency amounts or percent for a share of discounted merchandise.

Example: fixed
percent_value string|null

Percentage of discounted merchandise when fee_type is percent.

Example: 2.5
fee_amounts object

Positive fixed amount keyed by every market currency when fee_type is fixed. Follow the money_max checkout limit and settled currency precision: for example KRW 0, USD/IDR 2, KWD 3 fractional digits.

Example: {"USD":"5.00"}
apply_per required string

Use order to charge once or item to multiply a fixed fee by the quantity of the items it applies to. Percentage fees use order.

Example: order
tax_class_id uuid|null

Tax class from this market applied to the resolved fee.

Example: 4be5c5d1-0999-48ea-a2e0-f86703d99169
tax_code string

The fee's tax code on invoices and tax reports, such as its SAC code in India.

Example: 996812
is_enabled required boolean

Whether the fee can participate in checkout.

Example: true
is_optional required boolean

Whether the customer or admin chooses the fee instead of it applying automatically.

Example: true
applies_to string

all (every cart, the default), products or collections. With products or collections, the fee applies only when the cart holds a targeted product or a product of a targeted collection; a per-item fee then counts only those items, and a percentage fee takes only their discounted line totals as its base.

Example: products
target_product_ids array<string>

Targeted product ids as decimal strings, 1 to max_targets_per_fee, when applies_to is products. Every product must exist in the store. Ignored otherwise.

Example: ["1042","1057"]
target_collection_ids array<uuid>

Targeted collection ids, 1 to max_targets_per_fee, when applies_to is collections. Every collection must exist in the store. Ignored otherwise.

Example: ["3f6c2a1e-8b4d-4c7a-9e5f-0a1b2c3d4e5f"]
min_subtotal_enabled boolean

Whether the fee applies only when the discounted merchandise subtotal of the whole cart is at least min_subtotal_amounts in the order currency. Defaults to false.

Example: false
min_subtotal_amounts object

Positive minimum subtotal keyed by every market currency, as decimal strings, when min_subtotal_enabled is true. Cleared when it is false.

Example: {"INR":"499.00"}
max_subtotal_enabled boolean

Whether the fee applies only when the discounted merchandise subtotal is below max_subtotal_amounts (for example a handling fee waived from ₹999.00). Defaults to false.

Example: true
max_subtotal_amounts object

Positive subtotal keyed by every market currency at which the fee stops applying, when max_subtotal_enabled is true. Must be greater than the minimum in every currency when both are enabled. Cleared when disabled.

Example: {"INR":"999.00"}
percent_cap_enabled boolean

Whether a percentage fee is at most percent_cap_amounts. Only for fee_type percent. Defaults to false.

Example: false
percent_cap_amounts object

Positive maximum fee keyed by every market currency when percent_cap_enabled is true. Cleared when disabled.

Example: {"INR":"200.00"}
collect_text boolean

Whether the fee asks the customer for text, such as a gift message, when they select it. Only for optional fees. The text is kept on the order's fee line. Defaults to false.

Example: true
text_required boolean

Whether the customer must write the text to place an order with the fee selected. Only with collect_text.

Example: false
text_max_length integer|null

The most characters the customer may write, 1 to text_max_length_limit. Defaults to default_text_max_length when collect_text is true; null otherwise.

Example: 150
text_prompt string

The text field's label in the store's default language, at most text_prompt_max_length characters; empty uses the platform label. Translate it with the translation endpoints. Only with collect_text.

Example: Gift message

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_FEE_NAME_REQUIRED

    name is empty.

  • 400 CHECKOUT_FEE_NAME_TOO_LONG

    name exceeds the live contract limit.

  • 400 CHECKOUT_FEE_DESCRIPTION_TOO_LONG

    description exceeds the live contract limit.

  • 400 CHECKOUT_FEE_TYPE_INVALID

    fee_type or its accompanying value fields are invalid.

  • 400 CHECKOUT_FEE_APPLY_PER_INVALID

    apply_per is not supported for this fee type.

  • 400 CHECKOUT_FEE_PERCENT_RANGE

    percent_value is missing, not greater than 0, above 100, or has more than 2 decimal places.

  • 400 CHECKOUT_AMOUNT_CURRENCY_REQUIRED

    A fixed fee, or an enabled subtotal condition or cap, 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 amount is zero or negative.

  • 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 TAX_CLASS_NOT_IN_MARKET

    The selected tax class does not belong to this market.

  • 400 CHECKOUT_FEE_APPLIES_TO_INVALID

    applies_to is not all, products or collections.

  • 400 CHECKOUT_FEE_TARGETS_REQUIRED

    applies_to is products or collections but no target was sent.

  • 400 CHECKOUT_FEE_TARGETS_LIMIT

    More than max_targets_per_fee targets were sent.

  • 400 CHECKOUT_FEE_TARGET_NOT_FOUND

    A target id is malformed or the product or collection does not exist in this store.

  • 400 CHECKOUT_FEE_SUBTOTAL_RANGE_INVALID

    With both subtotal conditions enabled, a currency's max_subtotal_amounts is not greater than its min_subtotal_amounts.

  • 400 CHECKOUT_FEE_PERCENT_CAP_NOT_PERCENT

    percent_cap_enabled was sent for a fixed fee.

  • 400 CHECKOUT_FEE_TEXT_NOT_OPTIONAL

    collect_text was sent for a required fee. Turn text off before making the fee required.

  • 400 CHECKOUT_FEE_TEXT_MAX_LENGTH_INVALID

    text_max_length is outside 1 to text_max_length_limit.

  • 400 CHECKOUT_FEE_TEXT_PROMPT_TOO_LONG

    text_prompt exceeds text_prompt_max_length characters.

  • 404 NOT_FOUND

    The market or checkout fee 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.

Delete a checkout fee

DELETE write_markets

Remove a checkout fee from future calculations.

Existing orders keep their saved fee and tax evidence. A successful deletion publishes checkout_fees/delete with the fee's last known identity.

Path parameters

Name Type Description
marketId required uuid

Market id.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
feeId required uuid

Checkout fee ID.

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 or checkout fee does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

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

Reorder checkout fees

POST write_markets

Set the order in which checkout fees are presented.

Send every current fee id exactly once. An unchanged order is a no-op. A successful change publishes checkout_fees/reorder with the complete ordered id list.

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
fee_ids required array<uuid>

Every current checkout fee id in the order checkout should present them.

Example: ["2a7f1c3d-4e5b-4890-a6c8-1d3e5f7a9b0c","6a9d2e4f-1b3c-4785-9a0d-2e4f6a8b1c3d"]

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.

  • 400 CHECKOUT_FEE_REORDER_INVALID

    fee_ids does not contain every current checkout fee exactly once.

  • 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 these events when your app keeps a local copy of checkout fees. Create and update events contain the complete saved fee. Delete identifies the removed fee. Reorder contains the complete ordered id list. Requests that make no effective change do not publish an event.

Checkout fee created

EVENT checkout_fees/create App scope: read_markets Staff permission: markets:write

Subscribe to receive a checkout fee after it is created in 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_fee.id string Always present
checkout_fee.market_id string Selectable in the Payload builder
checkout_fee.name string Selectable in the Payload builder
checkout_fee.description string Selectable in the Payload builder
checkout_fee.fee_type string Selectable in the Payload builder
checkout_fee.percent_value string | null Selectable in the Payload builder
checkout_fee.fee_amounts object Selectable in the Payload builder
checkout_fee.apply_per string Selectable in the Payload builder
checkout_fee.tax_class_id string | null Selectable in the Payload builder
checkout_fee.tax_code string Selectable in the Payload builder
checkout_fee.is_enabled boolean Selectable in the Payload builder
checkout_fee.is_optional boolean Selectable in the Payload builder
checkout_fee.applies_to string Selectable in the Payload builder

all (every cart), products or collections: the fee applies only when the cart holds a targeted product, or a product of a targeted collection. A per-item fee then counts only those items, and a percentage fee takes only their discounted amount as its base.

checkout_fee.target_product_ids array Selectable in the Payload builder

Targeted product ids, as decimal strings, when applies_to is products; otherwise empty.

checkout_fee.target_collection_ids array Selectable in the Payload builder

Targeted collection ids when applies_to is collections; otherwise empty.

checkout_fee.targets[*].type string Selectable in the Payload builder
checkout_fee.targets[*].id string Selectable in the Payload builder
checkout_fee.targets[*].title string Selectable in the Payload builder
checkout_fee.min_subtotal_enabled boolean Selectable in the Payload builder

The fee applies only when the discounted merchandise subtotal is at least min_subtotal_amounts in the order currency.

checkout_fee.min_subtotal_amounts object Selectable in the Payload builder

Exact-decimal minimum subtotal per market currency; empty when min_subtotal_enabled is false.

checkout_fee.max_subtotal_enabled boolean Selectable in the Payload builder

The fee applies only when the discounted merchandise subtotal is below max_subtotal_amounts in the order currency.

checkout_fee.max_subtotal_amounts object Selectable in the Payload builder

Exact-decimal subtotal per market currency at which the fee stops applying; empty when max_subtotal_enabled is false.

checkout_fee.percent_cap_enabled boolean Selectable in the Payload builder

A percentage fee is at most percent_cap_amounts in the order currency.

checkout_fee.percent_cap_amounts object Selectable in the Payload builder

Exact-decimal maximum fee per market currency; empty when percent_cap_enabled is false.

checkout_fee.collect_text boolean Selectable in the Payload builder

The optional fee asks the customer for text (for example a gift message), kept on the order's fee line.

checkout_fee.text_required boolean Selectable in the Payload builder

Checkout needs the text when the customer selects the fee.

checkout_fee.text_max_length integer | null Selectable in the Payload builder

The most characters the customer may write; null when collect_text is false.

checkout_fee.text_prompt string Selectable in the Payload builder

The text field's label in the store's default language; empty uses the platform label. Its translations are read with the checkout fee translation endpoints.

checkout_fee.sort_order integer Selectable in the Payload builder
checkout_fee.created_at string Selectable in the Payload builder
checkout_fee.updated_at string Selectable in the Payload builder

Checkout fee updated

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

Subscribe to receive the current checkout fee after its amount, application, tax treatment or availability changes. A new position sends checkout_fees/reorder instead. 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_fee.id string Always present
checkout_fee.market_id string Selectable in the Payload builder
checkout_fee.name string Selectable in the Payload builder
checkout_fee.description string Selectable in the Payload builder
checkout_fee.fee_type string Selectable in the Payload builder
checkout_fee.percent_value string | null Selectable in the Payload builder
checkout_fee.fee_amounts object Selectable in the Payload builder
checkout_fee.apply_per string Selectable in the Payload builder
checkout_fee.tax_class_id string | null Selectable in the Payload builder
checkout_fee.tax_code string Selectable in the Payload builder
checkout_fee.is_enabled boolean Selectable in the Payload builder
checkout_fee.is_optional boolean Selectable in the Payload builder
checkout_fee.applies_to string Selectable in the Payload builder

all (every cart), products or collections: the fee applies only when the cart holds a targeted product, or a product of a targeted collection. A per-item fee then counts only those items, and a percentage fee takes only their discounted amount as its base.

checkout_fee.target_product_ids array Selectable in the Payload builder

Targeted product ids, as decimal strings, when applies_to is products; otherwise empty.

checkout_fee.target_collection_ids array Selectable in the Payload builder

Targeted collection ids when applies_to is collections; otherwise empty.

checkout_fee.targets[*].type string Selectable in the Payload builder
checkout_fee.targets[*].id string Selectable in the Payload builder
checkout_fee.targets[*].title string Selectable in the Payload builder
checkout_fee.min_subtotal_enabled boolean Selectable in the Payload builder

The fee applies only when the discounted merchandise subtotal is at least min_subtotal_amounts in the order currency.

checkout_fee.min_subtotal_amounts object Selectable in the Payload builder

Exact-decimal minimum subtotal per market currency; empty when min_subtotal_enabled is false.

checkout_fee.max_subtotal_enabled boolean Selectable in the Payload builder

The fee applies only when the discounted merchandise subtotal is below max_subtotal_amounts in the order currency.

checkout_fee.max_subtotal_amounts object Selectable in the Payload builder

Exact-decimal subtotal per market currency at which the fee stops applying; empty when max_subtotal_enabled is false.

checkout_fee.percent_cap_enabled boolean Selectable in the Payload builder

A percentage fee is at most percent_cap_amounts in the order currency.

checkout_fee.percent_cap_amounts object Selectable in the Payload builder

Exact-decimal maximum fee per market currency; empty when percent_cap_enabled is false.

checkout_fee.collect_text boolean Selectable in the Payload builder

The optional fee asks the customer for text (for example a gift message), kept on the order's fee line.

checkout_fee.text_required boolean Selectable in the Payload builder

Checkout needs the text when the customer selects the fee.

checkout_fee.text_max_length integer | null Selectable in the Payload builder

The most characters the customer may write; null when collect_text is false.

checkout_fee.text_prompt string Selectable in the Payload builder

The text field's label in the store's default language; empty uses the platform label. Its translations are read with the checkout fee translation endpoints.

checkout_fee.sort_order integer Selectable in the Payload builder
checkout_fee.created_at string Selectable in the Payload builder
checkout_fee.updated_at string Selectable in the Payload builder

Checkout fee deleted

EVENT checkout_fees/delete App scope: read_markets Staff permission: markets:write

Subscribe to remove a deleted checkout fee from your integration. The payload keeps its id, market id, and last known name.

Payload fields

Field Type Description
checkout_fee.id string Always present
checkout_fee.market_id string Selectable in the Payload builder
checkout_fee.name string Selectable in the Payload builder

Checkout fees reordered

EVENT checkout_fees/reorder App scope: read_markets Staff permission: markets:write

Subscribe to receive the complete checkout fee order after fees are rearranged in a market.

Payload fields

Field Type Description
market_id string Always present
fee_ids array Selectable in the Payload builder