Skip to content

Checkout options

Configure Kustom Checkout branding, VAT display, delivery notes, custom checkboxes and payment-only mode through the order options block.

Use the order’s options block to configure branding, VAT display, delivery notes, checkboxes and payment-only mode. These options apply to embedded Checkout and the Hosted Payment Page. See the Checkout API reference for every field.

An update replaces the whole options block. It doesn’t merge into the one you sent at creation. Any option you leave out of the update goes back to its default, so resend every option you set at creation, not only the one you’re changing.

For feature-specific setup, see B2B, age verification, discounts and multiple markets.

Set colors and corner radius in the Kustom Portal or override them per order. Omitted options keep their defaults.

OptionElement
options.color_buttonThe primary button
options.color_button_textText on that button
options.color_checkboxCheckbox body
options.color_checkbox_checkmarkThe checkmark itself
options.color_headerSection headers
options.color_linkLinks
options.color_backgroundThe background inside the iframe
options.radius_borderCorner radius on bordered elements

Every color_* value is a CSS hex color, #RRGGBB. radius_border is a string carrying a pixel count — "5", not "5px".

{
"options": {
"color_button": "#ff0000"
}
}

Hide VAT from the order summary with options.vat_removed:

{
"options": {
"vat_removed": true
}
}

Add a delivery note of up to 255 characters, shown on the confirmation page under the Delivery heading. Set it at creation or on an update; longer notes are truncated. When updating, resend all other configured options, such as the button color:

{
"options": {
"color_button": "#ff0000",
"shipping_details": "Delivered within 1-3 days"
}
}

The confirmation page can carry more than a note — see Add confirmation page upsells.

Add checkboxes for newsletter subscriptions or other choices. Text supports Markdown links and is truncated at 1000 characters. checked sets the initial state; required prevents purchase until the customer checks the box.

Checkboxes go in options.additional_checkboxes, with a stable, unique id for each checkbox:

{
"options": {
"additional_checkboxes": [
{
"id": "newsletter",
"text": "Sign me up for the newsletter. [Terms](https://kustom.co)",
"checked": true,
"required": false
},
{
"id": "loyalty",
"text": "Enroll me in the loyalty program",
"checked": false,
"required": false
}
]
}
}

The id is mandatory. Omitting it fails the create call with BAD_VALUE on additional_checkboxes[0].id.

There’s also an older, singular options.additional_checkbox that takes one checkbox and no id. Prefer the list for anything new: its answers arrive keyed by an id you chose.

The customer’s answers come back under merchant_requested when you read the order:

{
"merchant_requested": {
"additional_checkboxes": [
{ "id": "newsletter", "checked": true },
{ "id": "loyalty", "checked": false }
]
}
}

They also arrive as checkbox_change client-side events while the customer is still in the checkout. That event’s key is the checkbox id you chose.

Set options.scope to "PAYMENT" to show only the payment selector, without a billing or shipping address form. Use it when the checkout does not need to collect an address.

Payment only has to be enabled on your Kustom account first. Contact Kustom merchant support to have it set up.

purchase_country is mandatory and is the billing country of the order. It also decides which payment methods the customer can choose from:

{
"purchase_country": "SE",
"purchase_currency": "SEK",
"locale": "en-SE",
"billing_address": {
"country": "SE"
},
"options": {
"scope": "PAYMENT"
}
}

The rest of the order — order lines, amounts, merchant_urls — is the same as on any other create order call.

What changes in this mode:

  • Address data you send is passed through, not checked. You can still attach a billing or shipping address to the order, but the checkout doesn’t validate its quality or completeness. Billing data on the order is handed to the payment method the customer picks, which may use it for its own requirements, such as a cardholder name or postal code.
  • Each payment method keeps its own data requirements. The customer can pay with any method available for the purchase_country, as long as that method gets what it needs.
  • Validation callbacks work as usual. Your merchant_urls.validation is called as in the standard checkout.
  • Orders look like any other in the Kustom Portal, but carry no billing or shipping address unless you attached one when creating the order.
  • No returning-customer pre-fill. Payment-only orders neither read from nor add to it, since the customer never reviewed an address.

These features aren’t available with options.scope set to "PAYMENT":

FeatureStatus
Age verificationNot supported, neither soft (date of birth or national ID number) nor hard (BankID)
Express buttonsNot supported
Kustom Shipping Assistant (KSA)Not applicable — there’s no shipping in this mode
Recurring payments and tokenizationNot supported

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.