CheckoutConfiguration

Update checkout configuration

Changed on

Partially updates the account-wide checkout settings; only the fields sent change. allowed_countries is an allow-list of ISO 3166-1 alpha-2 codes (["US", "CA"] lets only US and Canadian buyers through) — send [] to lift the restriction, never the full list of countries. success_url must be a full https:// URL; send null or "" to restore the default thank-you page. Saving expires every open checkout session and re-syncs the account's Stripe Tax settings.

patch/checkout_configuration

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Request body

CheckoutConfigurationRequest required
success_url, string nullable

Full https:// URL buyers land on after paying. Pass null or "" to restore the default thank-you page.

collect_tax, boolean

Collect tax at checkout via Stripe Tax.

tax_behavior, 'unspecified' | 'inclusive' | 'exclusive'

Whether prices include tax (inclusive) or tax is added on top (exclusive).

allow_discount_codes, boolean
show_tax_id_input, boolean
show_phone_number_input, boolean
collect_call_consent, boolean
collect_shipping_address, boolean
allow_multiple_quantity, boolean nullable
abandoned_checkout_emails, boolean
abandoned_checkout_email_delay_hours, integer
quote_reminder_emails, boolean

Email contacts about sent quotes they have not answered: once if they have not opened it after 3 days, and once 3 days before it expires. On by default.

cancellation_message, string nullable
cancellation_pause_max_intervals, integer nullable
cancellation_discount, string nullable

Cancellation discount ID

allowed_countries, string[]

Allow-list of ISO 3166-1 alpha-2 country codes (e.g. ["DE", "AT"]); buyers outside it are blocked at checkout. Case-insensitive. Pass [] to allow every country.

cancellation_reasons, string[]

Response

Checkout configuration updated

CheckoutConfiguration required
object, string required
allowed_countries, string[] required

ISO 3166-1 alpha-2 allow-list; empty means every country can check out.

collect_tax, boolean required
tax_behavior, 'unspecified' | 'inclusive' | 'exclusive' required
tax_code, string required
allow_discount_codes, boolean required
show_tax_id_input, boolean required
show_phone_number_input, boolean required
collect_call_consent, boolean required
collect_shipping_address, boolean required
abandoned_checkout_emails, boolean required
abandoned_checkout_email_delay_hours, integer required
quote_reminder_emails, boolean required
allow_multiple_quantity, boolean required
cancellation_reasons, string[] required
cancellation_message, string nullable required
cancellation_pause_max_intervals, integer nullable required
cancellation_discount, string nullable required
success_url, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision