This API is in Beta. Endpoints and schemas may change without prior notice.
PUT/checkouts/{checkout_code}
Writes configuration and/or styling for the checkout in a single call. The body may contain a config object, a styling object, or both; at least one is required. Each part is validated independently before being applied; if any rule fails, the request is rejected with a single aggregated 400 and nothing is applied. Configuration is a sparse upsert (omitted payment methods keep their previous state; new methods cannot be created). Styling is a partial merge (omitted or null fields are preserved).
Header Parameters
X-Idempotency-Keystring
Client-generated UUID. Re-sending the same request with the same key is safe and will not double-publish.
Path Parameters
checkout_codestringrequired
The unique identifier of the checkout to update (UUID, 36 chars). Non-UUID values are rejected with 400 before processing.
Body application/json
configobject
Checkout configuration: payment methods and general settings. Sparse upsert; omitted payment methods keep their previous state.
Show config properties
payment_methodsobject[]
Payment methods to update. Order is driven by order_to_show (lower = first).
Show payment_methods properties
payment_method_typestring
Payment method type, e.g. CARD, PAYPAL, NU_PAY, GOOGLE_PAY.
Payment-method-level condition sets that gate when the method appears. A client-supplied set code (UUID) is preserved.
required_fields_to_overrideobject
Per-field configuration. fields = non-enrolled flow; enrollment_fields = enrolled (saved-card) flow. At most one condition set per field (a second is rejected with 400).
Show required_fields_to_override properties
is_activeboolean
fieldsobject[]
enrollment_fieldsobject[]
is_enrollment_activeboolean
general_settingsobject
Show general_settings properties
country_documentsobject[]
Show country_documents properties
country_codestring
ISO 3166-1 alpha-2 country code.
documentsstring[]
stylingobject
Checkout styling and SDK settings. Partial merge; omitted or null fields are preserved; use flags.force_default_styles to reset. settings.urls, settings.click_to_pay, settings.form and settings.google_pay are beta-locked and rejected if sent with a non-empty value.
Show styling properties
stylesobject
global, header and button styles. All *_color fields must be a 6- or 8-digit hex color (#RRGGBB / #RRGGBBAA); font_weight must be one of 100..900 (step 100); font_family must be in the supported catalog or declared in external_fonts. Logos must be an HTTPS URL to a public host or a relative path (no data:/SVG/javascript:).
settingsobject
SDK settings, forwarded to the checkout SDK. settings.urls, settings.click_to_pay, settings.form and settings.google_pay are beta-locked and rejected if sent with a non-empty value.
Show settings properties
cardobject
Card SDK settings.
Show card properties
save_on_successboolean
Offer to save the card for future payments.
visualization_modestring
Card form visualization mode.
enable_ocrboolean
Enable card scanning (OCR).
credit_card_only_processingboolean
Process credit cards only.
enable_payment_retryboolean
Allow retrying a declined card payment.
default_networkstring
Default card network: DOM or INT.
sdk_typeobject
web_sdkobject
payment_method_listobject
uiobject
flagsobject
Show flags properties
force_default_stylesboolean
external_fontsobject[]
Custom fonts. files[].url must be an HTTPS URL to a public host.
payment_link_stylesobject
Response
The updated checkout (configuration + styling composed). Its identifier is exposed as the top-level id.
Validation failed. All violations are aggregated into a single response. A malformed JSON body also returns 400.
codestring
messagesstring[]
Not authenticated, or the account is not in the beta allowlist.