Skip to content

Settings

Settings hold one environment's defaults for what Flint runs on your behalf: hosted checkout, tipping, tax, inventory failures, branding, legal links, subscriptions, invoices, promotions, payment statement text, payment limits, fulfillment approval, the customer account, and customer email. Each environment keeps its own settings, and the credential you send selects which one you read and change; see which environment a credential reaches. Checkout sessions, payment links, and invoices can override some of these defaults for themselves.

Reading settings requires settings.read or settings.write, and changing them requires settings.write. A partner app token with these scopes reads and changes its merchant's settings in its grant's environment, except fields that change money, when buyers are charged, risk, tax, or the merchant's legal identity: payments.statement_descriptor, tax_identity, tax, payment_limits, checkout.enabled_payment_options, inventory.origin_policies, the subscription billing and dunning fields, customer_account.buyer_capabilities, and invoices.payment_policy, invoices.remit_to_address, invoices.default_collection_mode, invoices.default_invoice_payment_term_id, and invoices.autopay_retry_policy. Sending one of those, or null for a section that holds one, returns 400 INVALID_REQUEST with a NOT_ALLOWED detail per field; Brand checkout and set custom domains lists each field and why.

Stored and effective settings#

There are two reads, and they return the same shape:

ReadReturnsUse it to
GET /v1/settingsOnly the values you set. Sections you never set, or reset, are left out, and tax_identity is null until you set it.Get the current version before an update, and see what you've changed from Flint's defaults.
GET /v1/settings/effectiveYour values with Flint's defaults filled in.See what checkout, invoices, and subscriptions use right now, such as after a reset.

Effective settings take no query parameters. Sending one, such as location_id, returns 400 INVALID_REQUEST with detail code UNKNOWN_FIELD and param naming it.

Sections#

SectionWhat it setsRead more
checkoutHosted checkout defaults: payment options, required buyer details, session lifetime, default delivery methods, promotion code entry, reminder emails, and saved cardsCheckout settings
tippingTip presets, the preselected tip, and custom tipsTipping settings
taxWhether new orders calculate tax, how API orders calculate it by default, default tax categories, and the selected tax calculation callbackTax settings
tax_identityThe legal name, address, and tax IDs printed on invoices, credit notes, and receipts. Flint doesn't verify them or change tax treatment because of them.The settings version
inventoryWhat happens when stock can't be honored, and the default routing source for tracked demandInventory settings
receiptsOptional merchant-provided text on payment receipt emails and PDFsReceipt note
brandingColors, font, and corner radius of Flint-hosted pagesBranding settings
legalTerms of service, refund, shipping, and contract URLs, and whether buyers must accept the terms. URLs are HTTPS, up to 2,048 characters.
promotionsAutomatic promotions, promotion codes, and how many promotions one order takesPromotion settings
paymentsThe text buyers see on their card or bank statement for new paymentsPayment settings
payment_limitsYour own minimum and maximum amounts per payment option and surfacePayment limits
fulfillmentWhether new fulfillments need someone to accept themRequire approval
subscriptionsDefault billing schedule owner and what happens when renewal retries run outSubscription settings
invoicesInvoice defaults, numbering, reminders, and automatic payment retriesInvoice settings
customer_accountWhere buyers manage their orders and subscriptions, and what they may changeCustomer account settings
customer_email_deliveryWhich buyer email families Flint sends and which you sendCustomer email delivery
metadataYour own key-value data

Update settings#

PATCH /v1/settings takes the sections to change at the top level of the body. Sections you leave out keep their values, and so do the fields you leave out of a section you send. This request requires a phone number at checkout and leaves the other settings unchanged:

cURL
curl -X PATCH https://api.withflintpay.com/v1/settings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: settings-phone-1" \
  -d '{
    "checkout": {"require_phone": true}
  }'

The response is the full stored settings, with version one higher. To clear a field that accepts null, send null; an empty string is rejected.

How nested values change#

Inside a section, each object, map, and array follows one of these rules. The generated reference below repeats the rule on each field.

RuleFieldsWhat to send
Patch objectEvery section, plus checkout.recovery_email, checkout.saved_payment_details, customer_account.presentation, and customer_account.route_templatesOnly the fields to change.
Replaced as a wholecustomer_account.buyer_capabilities and its pause, skip, and retention_offer; invoices.reminder_policy, invoices.autopay_retry_policy, invoices.payment_policy, and invoices.remit_to_address; tax_identity.registered_address; tipping.default_smart_tip_moneyEvery field you want to keep.
Map replaced as a wholeinventory.origin_policies, payment_limits.max_amounts, payment_limits.min_amountsEvery key you want to keep. The keys you send become the whole map.
ArrayEvery array, such as checkout.enabled_payment_options and tax_identity.tax_idsThe complete array.
Merged by keymetadataThe keys to change. A key set to null is removed, and "metadata": null removes every key.

Reset a section#

Send null for a section to remove every value you set in it. Stored reads then omit it (tax_identity reads null), and effective reads show Flint's defaults for it. Every section can be reset: branding, checkout, customer_account, customer_email_delivery, fulfillment, inventory, invoices, legal, payment_limits, promotions, subscriptions, tax, tax_identity, and tipping.

Response
{
  "branding": null,
  "checkout": {"require_phone": false}
}

This removes your branding and changes only checkout.require_phone. An empty object, such as "branding": {}, resets nothing. Inside a section, a nested field accepts null only where its reference entry says so.

The settings version#

version starts at 1 and goes up with every change, including the one a tax disconnect makes when it turns tax.default_enabled off. To apply an update only if nothing changed since you read settings, send the version you read as expected_version. A stale value returns 409 VERSION_CONFLICT with the current version in details[0].current_version: read settings again, rebuild the change, and send it.

expected_version is required whenever the body includes tax_identity, including a legal_name edit, a tax_ids replacement, and "tax_identity": null. Without it, the request returns 400 INVALID_REQUEST with param expected_version and detail code REQUIRED.

JSON
{
  "tax_identity": {"legal_name": "Cedar & Stone LLC"},
  "expected_version": 7
}

Checkout settings#

GET /v1/settings/effective fills unset checkout payment options with ["card", "apple_pay", "google_pay"], the session lifetime with 86400 seconds, and require_email, require_phone, and require_billing_address with false. An explicit empty payment-option list stays empty. Subscription plan checkout always requires email, and a payment option can require billing details.

checkout holds the defaults Flint-hosted checkout and payment links start from. A checkout session or payment link can override several of them on the object itself; see the Checkout sessions guide and the Payment links guide.

  • ACH debit. Adding ach_debit to enabled_payment_options also turns on ACH debit for the environment's payment account. If the account can't take it yet, the update returns 409 PAYMENT_OPTION_UNAVAILABLE with details[0].reason requirements_due, or payment_option_not_available outside the US. See Turn on ACH debit.
  • Promotion codes. promotion_codes_enabled is the default for whether a checkout session's buyer can enter a code, and promotion_config.codes_enabled on a session or payment link overrides it. When neither it nor the session or link override is set, hosted checkout offers entry only while the merchant has an active code promotion whose schedule includes now in this environment. CheckoutSession.can_apply_promotion_code reports that offer; an unset override still accepts valid codes. Setting it to true while promotions.codes_enabled is false returns 409 ACTION_NOT_ALLOWED with reason configuration_required.
  • Default delivery methods. default_delivery_method_ids accepts only methods whose current configuration can be used. Adding a method whose revision, rate callback revision or signing key, or Location address is revoked returns 409 ACTION_NOT_ALLOWED with reason dependency_revoked. A default that was revoked after you saved it stays in the list, and checkouts show it as unavailable until you publish a corrected revision.
  • Session lifetime. default_expires_in_seconds applies to ordinary checkout sessions. An invoice's checkout uses the invoice link's own deadline instead.

Checkout reminder emails#

checkout.recovery_email sends one reminder to a buyer who saves an email address at hosted checkout and leaves without paying. It lists the cart and total and links back to checkout. Reminders are off by default.

JSON
{
  "checkout": {
    "recovery_email": {"enabled": true, "delay_seconds": 3600}
  }
}
FieldRules
enabledDefaults to false. A reminder can count as commercial email, so each one carries an unsubscribe link and your business address. Turning reminders on requires an address on the merchant with a street, city, postal code, and country; without one, the update returns 409 ACTION_NOT_ALLOWED with reason configuration_required and a reference to the merchant. If the address is removed later, no reminders go out until it's back.
delay_secondsHow long to wait after the buyer last changes their email or phone at checkout: 900 to 86400, in multiples of 60. Defaults to 3600.

Which checkouts send one. A hosted checkout session for an order sends one, including a session a payment link opens, once the buyer saves an email as buyer_contact. Headless sessions never do, and neither do checkouts for an invoice, a subscription plan, or a return.

When it's due. Flint checks the checkout again and sends nothing if reminders were turned off, the buyer cleared their email, the checkout was paid, closed, or replaced, or the order was paid or closed or has nothing left to pay. A reminder that sends nothing doesn't block a later one: the next time the buyer saves an email while reminders are on, a new one is scheduled.

  • While a payment on the order is in progress, such as a card waiting on 3D Secure or a bank debit that takes days to settle, the reminder waits, including when that payment starts just before the email goes out. It's sent if the payment fails, is canceled, or is abandoned, and never once the order is paid.
  • An expired order checkout still gets its reminder, because the link can open a new checkout for the same order. An expired payment link checkout doesn't.

Limits. Each checkout session sends at most one reminder, and a buyer gets at most one from the same merchant per UTC day. The unsubscribe link, and the one-click unsubscribe header that mail clients show, stop checkout reminders from that merchant only. Receipts and other email keep arriving.

The link. The link in the email works for 7 days and resolves when the buyer opens it:

When openedThe buyer sees
The checkout is still openThat checkout
The checkout expired and the order is still unpaidA new checkout for the same order. Opening the link again returns that checkout while it's open. Payment link checkouts can't be reopened this way.
The order was paidA page saying it's already paid
Anything else, including after 7 daysA page saying the link no longer works

Nobody confirmed the email the reminder goes to, so a checkout opened from the link doesn't use the saved cards or details of a customer whose email the buyer confirmed with a code earlier. The buyer confirms their email again to use them. A customer you created the session for is unaffected.

Saved payment details#

checkout.saved_payment_details.enabled controls the unchecked option hosted checkout shows under the card fields: "Save my details for faster checkout at {business name}". It's on by default.

JSON
{
  "checkout": {
    "saved_payment_details": {"enabled": false}
  }
}

Nothing is saved unless the buyer checks the option and the payment succeeds. The card is then saved as a payment method with usage: "on_session" for the customer the checkout acts for, and Flint charges it only in checkouts the buyer completes: never for a subscription, an automatic invoice, or as a customer's default. Checkout never offers the option when customer_account.mode is merchant_hosted, on checkouts for an invoice, a subscription plan, or a return, or for Apple Pay, Google Pay, ACH debit, or Affirm.

Cards buyers save in checkout covers who the card is saved for and how the buyer confirms it. A checkout session read with its checkout credential reports whether checkout offers the option as can_save_payment_method.

Tipping settings#

Tipping is off by default. When it's on, checkout offers three presets, as percentages or, with smart_tips_enabled, as fixed amounts. A checkout session or payment link can override any of these with its own tip; see Offer tips at hosted checkout.

  • tip_percent_options holds exactly three values from 1 through 100, with at most four decimal places. smart_tip_money_options holds exactly three positive amounts. Neither accepts null, and neither do the tipping booleans.
  • A preselected tip must be one of the presets in effective settings: default_tip_percent one of the percentages, and default_smart_tip_money one of the fixed amounts, matching amount and currency.
  • When you change presets, replace or clear a preselection the new presets don't include, in the same request. null clears a preselection, and effective settings then use Flint's default.
JSON
{
  "tipping": {
    "tip_percent_options": [10, 15, 25],
    "default_tip_percent": null
  }
}

Tax settings#

tax.default_enabled decides whether new orders, checkout sessions, and subscription renewals calculate tax when they don't set it themselves. Turning it on, or changing tax.default_calculation while it is on, requires what the default calculation uses. An automatic, unset, or provided default requires an active tax connection, because the orders Flint creates use automatic tax under it. Without one, the update returns 409 ACTION_NOT_ALLOWED with reason configuration_required and details[0].resource_type tax_connection. A callback default requires a selected tax calculation callback instead, and no tax connection.

tax.default_calculation is the calculation an order uses when nothing sets its own: an order created with POST /v1/orders without tax.calculation, one PATCH /v1/orders/{order_id} turns tax on without one, and the orders of checkout sessions, payment links, and subscriptions that set no tax.calculation. It is replaced as a whole: {"mode": "automatic"}, or {"mode": "external", "components_source": "provided"} or "callback". components_source defaults to provided and is allowed only with external. Send null to clear it; an unset default, which reads as absent, means automatic. A provided default applies only to orders you create with POST /v1/orders or turn tax on for with PATCH, since only you can send their components; checkout session, payment link, and subscription orders use automatic tax under it. Quick-pay invoices use the quick_pay.tax you send, and automatic tax without it.

With components_source callback, tax on by default needs a selected callback: turning on default_enabled, choosing the callback default while tax is on, or clearing tax.calculation_callback_id while both are set returns 409 ACTION_NOT_ALLOWED with reason configuration_required and details[0].resource_type tax_calculation_callback, with param naming the field you sent.

While the tax connection is active, tax.default_line_item_tax_category must be a category automatic tax supports. Another value returns 400 INVALID_REQUEST with detail code NOT_ALLOWED. See Tax categories.

tax.calculation_callback_id selects the environment's tax calculation callback, the signed endpoint of your own tax engine. The callback must be active. An inactive callback returns 409 ACTION_NOT_ALLOWED with reason unsupported_state, and an archived one returns reason archived, both with param tax.calculation_callback_id. Sending another callback's ID replaces the selection in the same write, and null clears it. A selected callback can't be deactivated or archived: the request returns 409 RESOURCE_IN_USE until you select another or clear the selection. Orders whose tax.calculation.components_source is callback send it calculation requests; other orders are taxed the same whether or not one is selected. Live and each sandbox select separately.

Disconnecting automatic tax can turn tax.default_enabled off: its tax_default_behavior of turn_off sets it to false, and keep leaves it alone. Neither disconnecting nor reconnecting turns it on, so after you reconnect, send {"tax": {"default_enabled": true}} when new orders should calculate tax again.

tax.default_price_mode takes additive (the default) or inclusive. An order that turns tax on without sending its own tax.calculation takes it as its tax.price_mode, whether tax is on when the order is created, comes from a checkout session or payment link, or is turned on later. inclusive treats every line item and charge price as including its tax. Subscription orders, including renewals, stay additive, and orders that already have a price mode keep it. The mode can't be cleared: null returns 400 INVALID_REQUEST. See Tax-inclusive prices with automatic tax.

tax.delivery_charge_tax_basis takes full_charge (the default) or taxable_items_share. The latter calculates automatic tax on the delivery charge's share of discounted gross taxable merchandise in its fulfillment group, rounded half up. It applies to charges generated by shipment, local delivery, and pickup methods. A method's taxable: false still wins; direct order charges and external tax keep their existing behavior.

Saved values take effect only when Flint enables this capability. Until then, calculations use the full charge. After enablement, open orders use the setting at their next calculation; committed tax keeps its original basis. Send full_charge to restore the default. See Delivery charges follow the items they deliver.

GET /v1/settings/effective returns tax.default_line_item_tax_category: "general" when unset, matching the tax engine fallback.

Inventory settings#

inventory decides where tracked demand is routed by default and what happens when stock can't be honored. It doesn't hold quantities; those live on inventory levels.

default_routing_source is the routing source a request uses when it has tracked demand and omits inventory_routing_source. It takes the same shape as the request field: fixed_location with location_id, policy with inventory_allocation_policy_id, or policy_revision with inventory_allocation_policy_revision_id. A reference that doesn't exist in this environment returns 404 RESOURCE_NOT_FOUND at its path. Orders, added order lines, quick pay invoices, payment links, subscription plans, and inventory reservations store the default on the resource as if the caller had sent it, so changing or clearing it never moves routing for resources that already exist. Delivery previews use it too but create nothing. Paying an existing order that has no source doesn't read it. null is the starting value. Without a default, orders, payment links, and subscription plans with tracked demand use the active Location in the current environment that has had inventory allocation enabled the longest. Links and plans resolve the fallback again when they are used. If no Location is eligible, send a routing source or configure the merchant default. Inventory reservations still require a source or default. Send null to clear it without touching the rest of inventory. See Sell it.

low_stock_threshold is the available quantity your team treats as low stock, 0 or more. The Dashboard shows it. It doesn't change allocation, filter API results, or send events.

Orders created by subscription plan and Quick Pay checkout sessions use checkout, whoever created the session. Payment-link orders use payment_link, and subscription billing orders, such as renewals, use subscription. Opening a session on an existing order preserves its origin. Existing orders keep their original value.

origin_policies is keyed by where the order came from: checkout, payment_link, api, subscription, virtual_terminal, or default. Flint uses the entry for the order's origin and falls back to default, including for subscription signups. Each entry holds:

FieldValuesWhat happens
post_payment_inventory_failure_actionexception_state, auto_refundPayment succeeded but stock couldn't be committed. exception_state leaves the order at inventory_exception_status: "paid_inventory_failed" for you to resolve. auto_refund refunds the payment.
subscription_inventory_block_actioninventory_blocked_open_invoice, past_dueA subscription renewal couldn't get stock. inventory_blocked_open_invoice issues an open invoice for the renewal with collection_block_status: "inventory_blocked", external collection, caller-managed delivery, and no due date, and refuses to collect it until stock returns. Flint then voids that invoice and charges the renewal on its order. past_due moves the subscription to past due. See Collection blocks.
JSON
{
  "inventory": {
    "low_stock_threshold": 5,
    "origin_policies": {
      "default": {"post_payment_inventory_failure_action": "exception_state"},
      "checkout": {"post_payment_inventory_failure_action": "auto_refund"}
    }
  }
}

origin_policies is replaced as a whole, so this request also removes any payment_link or subscription entry you had.

Payment settings#

payments.statement_descriptor is the text that appears on a buyer's card or bank statement for new payments, whichever payment method they use. Each payment intent reports the text its own charge used as statement_descriptor. Payouts to your bank have a separate statement_descriptor in payout settings.

JSON
{
  "payments": {"statement_descriptor": "CEDAR AND STONE"}
}
  • Format. 5 to 22 Latin characters, with at least one letter. < > \ ' " * and control characters aren't allowed. Anything else returns 400 INVALID_REQUEST with detail code INVALID_VALUE and param payments.statement_descriptor.
  • Default. Omit the field to leave it unchanged. Send null to restore the payment provider's default, which reads back as null. An empty string is rejected.
  • Past payments. A change applies to new payments only. Each payment intent keeps the text its charge used. Banks can display the text differently.
  • Stripe review. Stripe can reject a descriptor after the save succeeds if it does not match the business name or website. GET /v1/settings and GET /v1/settings/effective return payments.statement_descriptor_status with status (accepted, rejected, or pending) and reason (null unless rejected). Pending means a write or Stripe review is unresolved. Readiness names the requirement statement_descriptor and directs callers to update_payment_settings; update payments.statement_descriptor here rather than in an account form. A past-due requirement can pause processing.
  • Sandboxes. Shared business-name changes sync to the live and active sandbox Stripe accounts, so Stripe reviews the descriptor against the same name in each environment.

Flint sends the text to the payment provider while it handles the request. If the provider refuses it, the request returns 400 INVALID_REQUEST with the same detail code and param, and the setting keeps its previous value. Choose text that matches your business name. If the provider can't confirm the change right away, Flint keeps trying, and the setting keeps its previous value until the change takes effect.

Flint's value wins. Once Flint has applied a descriptor, it is the source of truth. If someone changes the descriptor directly in the provider's dashboard, Flint restores its value the next time the provider reports an account update. Flint keeps enforcing the last value it applied. A request that never took effect, because it failed, was replaced by a later request, or is still pending, doesn't replace that value. If Flint has never applied a descriptor, it leaves the provider's text alone. To change the descriptor, send the new value here.

Payment limits#

payment_limits narrows the amounts Flint accepts. max_amounts and min_amounts are each a map from a selector to a USD amount:

SelectorApplies to
card.checkoutOne payment option on one surface
card.defaultOne payment option on every surface
checkoutEvery payment option on one surface
defaultEverything

Payment options are card, apple_pay, google_pay, ach_debit, and affirm. Surfaces are api (payments you create), checkout, invoice, payment_link, subscription, and virtual_terminal. For each payment, the most specific selector you set applies, in the order of the table.

JSON
{
  "payment_limits": {
    "max_amounts": {"card.checkout": {"amount": 250000, "currency": "USD"}},
    "min_amounts": {"card.checkout": {"amount": 100, "currency": "USD"}}
  }
}

A maximum can only lower Flint's limit, and a minimum can only raise Flint's floor. A selector Flint doesn't support, such as affirm.subscription, a maximum above Flint's limit for its selector, or a combination whose minimum ends up above its maximum returns 400 INVALID_REQUEST, and param points at the map. Flint's limits are:

Payment optionMinimumMaximum by surface
card$0.50$100,000 on api and invoice, $50,000 on checkout, $25,000 on payment_link, $10,000 on subscription, and $5,000 on virtual_terminal
apple_pay, google_pay$0.50The same as card, except not offered on virtual_terminal
ach_debit$1.01$100,000 on api and invoice, $50,000 on checkout, and $25,000 on payment_link. Not offered on subscription or virtual_terminal
affirm$50.00$30,000 on api, checkout, and invoice, and $25,000 on payment_link. Not offered on subscription or virtual_terminal

Flint support can approve a higher maximum for one payment option on one surface. You can't change approvals here, and clearing your maps keeps them.

GET /v1/settings/effective adds read-only effective_max_amounts and effective_min_amounts maps. Each has an exact payment_option.surface entry for every supported pair, with USD amounts matching payment enforcement. Unsupported pairs, such as affirm.subscription, are absent. Effective maximums include support approvals, while the approval map stays private. max_amounts and min_amounts keep your own rules as written in both reads; GET /v1/settings omits the effective maps.

Each map you send replaces your whole map for that limit, and a map you leave out stays as it is. Send null for a map to clear it, or "payment_limits": null to clear both. An empty map is rejected; send null instead.

Customer account settings#

customer_account chooses where buyers manage their orders, subscriptions, and Returns. Every account link in Flint's email goes to what this object says when the buyer clicks it. The Customer accounts guide covers both modes in full.

modeWho serves the accountFields that belong to it
flint_hostedFlint, the defaultpresentation
merchant_hostedYour own pagesmerchant_account_url, required: an HTTPS URL on an active, verified payment method domain or a subdomain of one. route_templates, optional: paths for the order, subscription, return, invoice, and email preference pages.
  • Each mode takes only its own fields. Sending a field that belongs to the other mode returns 400 INVALID_REQUEST with detail code NOT_ALLOWED.
  • Changing mode drops the other mode's fields. Switching to merchant_hosted clears presentation, and switching to flint_hosted clears merchant_account_url and route_templates. buyer_capabilities stays.
  • A custom domain blocks leaving Flint's account. The account hostname isn't a setting; it's a custom domain with type customer_account. While one isn't archived, setting mode to merchant_hosted or sending "customer_account": null returns 409 RESOURCE_IN_USE, with the domain's ID in details[0].blocking_resources. Archive it first.
  • The mode decides who changes a customer's email. With flint_hosted, the email is how the buyer signs in, so once a customer has one, only the buyer can change it. With merchant_hosted, PATCH /v1/customers/{customer_id} can set, change, or clear it. In either mode, PATCH can give an email to a customer who has none. Switching to flint_hosted makes each customer's current email the address that buyer signs in with. See Who may change a customer's email.

buyer_capabilities sets what buyers may do to their own subscriptions in either mode: cancellation timing and reasons, pausing, skipping, a retention offer, and changing delivery. It's replaced as a whole, so each update replaces the stored value and every field you leave out takes its default. Buyers can always cancel, and requests made with your API key aren't limited by it. See What buyers can do to their subscriptions.

Sending "customer_account": null returns buyers to Flint's account with default settings.

Customer email delivery settings#

customer_email_delivery has one field per family of buyer email: order_receipts, fulfillment_updates, subscription_lifecycle, dunning, returns, and invoices. Each takes flint_sends, the default, or merchant_sends. Switching a family to merchant_sends stops Flint's email for that family only; the webhook events behind it keep firing so you can send your own. Customer email delivery lists what each family covers and what else changes when you switch it.

Promotion settings#

promotions.automatic_enabled and promotions.codes_enabled default to true, and max_promotions_per_order defaults to 2, from 1 to 10. codes_enabled: false refuses every promotion code, even on a checkout session or payment link that asks to show code entry. See Turn promotions on or off.

Branding settings#

branding styles the pages Flint hosts for buyers: checkout, including payment link pages, and the customer account. Colors are six-digit hex values such as #1B4D3E, corner_radius is 0 to 32 pixels, and font_family is instrument_sans, system_sans, system_serif, or monospace. A checkout session's or payment link's theme can override primary_color and accent_color; the other fields always come from settings. Flint adjusts or replaces a color that wouldn't be readable, such as text too close to the background. See Brand the account.

Subscription settings#

FieldDefaultWhat it decides
default_billing_schedule_ownerflintThe schedule owner when a subscription is created without billing_schedule.
dunning_end_actioncancelWhat happens to a subscription Flint schedules when automatic retries run out: cancel, pause, or notify_only.
external_dunning_end_actionnotify_onlyThe same for subscriptions on an external schedule. dunning_end_action doesn't change it.
dunning_retry_days16How many days automatic retries run, from 1 to 90.

notify_only leaves an exhausted subscription past_due, so your integration can update the payment method and retry the payment itself. See When a renewal payment fails.

Invoice settings#

invoices holds the defaults a new invoice takes and the follow-up Flint runs after you issue it. See the Invoicing guide.

  • Defaults resolve when the draft is written. default_collection_mode and default_invoice_payment_term_id apply to drafts that send or default to merchant_default, and the invoice keeps the result. See Defaults and reading back what you wrote.
  • Follow-up is copied at issue. An invoice takes reminder_policy and autopay_retry_policy when it's issued, so editing them changes invoices you issue later and leaves the ones already collecting alone.
  • Invoices use the merchant's time zone. An invoice counts due dates, reminder days, and late fee days in its own timezone, which a draft takes from the merchant's timezone when it's written, or UTC when the merchant has none.
  • Reminder and retry rules. reminder_policy.rules takes up to 20 distinct days_from_due offsets from -90 to 365; negative offsets fire before the due date, and an empty list sends no automatic reminders. autopay_retry_policy.retry_day_offsets takes up to 5 strictly increasing day offsets from 1 to 30 after a failed charge on an automatic invoice.
  • Late fees aren't settings. They come from the payment term. See Late fees.
JSON
{
  "invoices": {
    "reminder_policy": {"rules": [{"days_from_due": -3}, {"days_from_due": 7}]},
    "autopay_retry_policy": {"retry_day_offsets": [1, 3, 7]}
  }
}

Fields without a fixed default#

Some fields describe your choices or depend on the current resource. Effective settings leave these unset until configured:

  • checkout.promotion_codes_enabled depends on active code promotions.
  • tax.default_delivery_tax_category follows the delivery method type.
  • Branding, legal URLs, metadata, inventory routing and per-origin policies, fulfillment approval rules, and invoice templates have no fixed merchant value.
  • The payment statement descriptor comes from the processor when you have not set one.

Not in settings#

To changeUse
What Flint charges to process a paymentProcessing fees
Checkout and customer account hostnamesCustom domains
The default delivery profileChoose the default profile
Automatic tax and where you collect itTax connection and tax registrations
The endpoint of your own tax engineTax calculation callbacks, then select one with tax.calculation_callback_id
Business name, address, logo, and iconMerchants

Errors#

Besides validation errors on single fields, an update can return:

  • HTTP 400
    A value breaks a field's rule, and param names the field. Detail code NOT_ALLOWED means the field doesn't apply, such as a field for the other customer account mode, or that a partner app token sent a field that stays with the merchant. REQUIRED means a field the request needs is missing, such as expected_version with tax_identity.
  • HTTP 409
    Reason configuration_required: something outside the request must be set first, such as a tax connection for tax.default_enabled, or a selected tax calculation callback instead when tax.default_calculation uses a callback, a business address for checkout reminders, or promotions.codes_enabled for checkout code entry. Reason status_not_reached: the payment method domain behind merchant_account_url isn't active yet. Reasons unsupported_state and archived: the callback in tax.calculation_callback_id is inactive or archived, so it can't be selected. Reason dependency_revoked: a method added to checkout.default_delivery_method_ids is revoked; details[0].blocking_resources names it and what holds the revoked part.
  • HTTP 409
    ACH debit can't be turned on for this environment yet. Branch on details[0].reason.
  • HTTP 409
    Flint can't register the hostname of merchant_account_url until payment onboarding is finished in this environment.
  • HTTP 409
    A customer_account custom domain blocks the change. Archive the domain in details[0].blocking_resources, then save again.
  • HTTP 404
    tax.calculation_callback_id names a callback that doesn't exist in this environment. param is tax.calculation_callback_id.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    expected_version is stale. Read settings again and rebuild the change from details[0].current_version.
  • HTTP 409
    CONCURRENT_MODIFICATIONRetry the same request
    Another write changed settings at the same time. Send the same request again with the same Idempotency-Key.

Receipt note#

Set receipts.footer_text to add a plain-text note to payment receipt emails and PDFs. It can contain up to 500 characters (Unicode code points). For example, an organization that provides no goods or services in exchange for a contribution can set its own acknowledgment:

JSON
{
  "receipts": {
    "footer_text": "No goods or services were provided in exchange for this contribution."
  }
}

Send this object to PATCH /v1/settings. Omit footer_text to keep its current value, or send null to remove the text. Empty strings are rejected. Send receipts: null to restore receipt defaults. The note uses the current setting for each new receipt email, manual resend, and PDF download, including receipts for earlier payments. An email already sent keeps its original text.

The receipt email includes the seller's legal name and tax IDs from tax_identity, including an EIN when configured. For order receipts, the email and PDF use the seller identity saved for that order. Flint does not verify the statement or assert that an organization has nonprofit status. Control who sends receipt emails with customer_email_delivery.order_receipts.

Get merchant settings#

GET/v1/settings

Requires scope settings.read or settings.write

Rate limit: read

Returns the settings stored for the authenticated merchant in this environment.

Response · 200

The merchant settings record.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/settings \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The merchant settings record.

JSON
{
  "data": {
    "branding": {
      "accent_color": "#f59e0b",
      "primary_color": "#0f766e"
    },
    "checkout": {
      "default_expires_in_seconds": 3600,
      "enabled_payment_options": [
        "card",
        "apple_pay",
        "google_pay"
      ],
      "promotion_codes_enabled": true,
      "require_email": true
    },
    "created_at": "2026-03-17T14:30:00Z",
    "inventory": {
      "low_stock_threshold": 5,
      "origin_policies": {
        "default": {
          "post_payment_inventory_failure_action": "exception_state"
        },
        "subscription": {
          "subscription_inventory_block_action": "inventory_blocked_open_invoice"
        }
      }
    },
    "legal": {
      "require_terms_of_service": true,
      "terms_of_service_url": "https://example.com/terms"
    },
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "metadata": {
      "channel": "retail"
    },
    "payment_limits": {
      "max_amounts": {
        "default": {
          "amount": 100000,
          "currency": "USD"
        },
        "payment_link": {
          "amount": 250000,
          "currency": "USD"
        }
      },
      "min_amounts": {
        "card.payment_link": {
          "amount": 100,
          "currency": "USD"
        },
        "default": {
          "amount": 50,
          "currency": "USD"
        }
      }
    },
    "promotions": {
      "automatic_enabled": true,
      "codes_enabled": true,
      "max_promotions_per_order": 2
    },
    "settings_id": "set_01KEZF7C00J81795CYBW13GTQH",
    "subscriptions": {
      "dunning_end_action": "cancel",
      "dunning_retry_days": 16
    },
    "tax": {
      "default_enabled": true
    },
    "tax_identity": null,
    "tipping": {
      "custom_tip_enabled": true,
      "default_enabled": true,
      "default_smart_tip_money": null,
      "default_tip_percent": 18,
      "tip_percent_options": [
        15,
        18,
        20
      ]
    },
    "updated_at": "2026-03-17T14:30:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM692JP7TZZ4C7C426WHACM"
}

Update merchant settings#

PATCH/v1/settingsIdempotent

Requires scope settings.write

Rate limit: sensitive_write

Applies a sparse patch to merchant settings. See each field for how it is patched. A partner app install token can't send `checkout.enabled_payment_options`, `customer_account.buyer_capabilities`, `inventory.origin_policies`, `invoices.autopay_retry_policy`, `invoices.default_collection_mode`, `invoices.default_invoice_payment_term_id`, `invoices.payment_policy`, `invoices.remit_to_address`, `payment_limits`, `payments.statement_descriptor`, `subscriptions.default_billing_schedule_owner`, `subscriptions.dunning_end_action`, `subscriptions.dunning_retry_days`, `subscriptions.external_dunning_end_action`, `tax`, or `tax_identity`, or null for `checkout`, `customer_account`, `inventory`, `invoices`, or `subscriptions`; each returns `400 INVALID_REQUEST` with a `NOT_ALLOWED` detail whose `param` names the field.

Request body

brandingobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

checkoutobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

customer_accountobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section. Flint then serves the default Flint-hosted account, and GET /v1/settings omits customer_account.

customer_email_deliveryobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

expected_versioninteger

The Settings.version last read by the caller. Required when tax_identity is present, including null. Stale versions return VERSION_CONFLICT.

fulfillmentobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

inventoryobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

invoicesobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

legalobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

metadatamap of string or null

Merged by key. Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

payment_limitsobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section. Clearing merchant limits preserves Flint support approvals. Cleared maps are omitted from reads.

paymentsobject

Patch object: fields you send are applied, fields you omit are unchanged. Changes the statement text for new payments.

promotionsobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

receiptsobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

subscriptionsobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

taxobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

tax_identityobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section. Legal identity displayed on invoices, credit notes, and receipts. Requires expected_version whenever present.

tippingobject or null

Patch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.

Response · 200

The updated merchant settings record.

Same response as Get merchant settings.

curl -X PATCH https://api.withflintpay.com/v1/settings \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "checkout": {
      "enabled_payment_options": [
        "card",
        "apple_pay",
        "google_pay"
      ],
      "promotion_codes_enabled": true,
      "require_email": true
    },
    "metadata": {
      "channel": "omnichannel"
    },
    "promotions": {
      "codes_enabled": true
    }
  }'

Get effective settings#

GET/v1/settings/effective

Requires scope settings.read or settings.write

Rate limit: read

Returns the authenticated merchant's settings for this environment with Flint's defaults filled in.

Response · 200

The effective settings record.

Same response as Get merchant settings.

curl https://api.withflintpay.com/v1/settings/effective \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The effective settings record.

JSON
{
  "data": {
    "branding": {
      "accent_color": "#f59e0b",
      "primary_color": "#0f766e"
    },
    "checkout": {
      "default_expires_in_seconds": 3600,
      "enabled_payment_options": [
        "card",
        "apple_pay",
        "google_pay"
      ],
      "promotion_codes_enabled": true,
      "recovery_email": {
        "delay_seconds": 3600,
        "enabled": false
      },
      "require_email": true,
      "saved_payment_details": {
        "enabled": true
      }
    },
    "created_at": "2026-03-17T14:30:00Z",
    "customer_account": {
      "mode": "flint_hosted"
    },
    "customer_email_delivery": {
      "dunning": "flint_sends",
      "fulfillment_updates": "flint_sends",
      "invoices": "flint_sends",
      "order_receipts": "flint_sends",
      "returns": "flint_sends",
      "subscription_lifecycle": "flint_sends"
    },
    "inventory": {
      "low_stock_threshold": 5,
      "origin_policies": {
        "default": {
          "post_payment_inventory_failure_action": "exception_state"
        },
        "subscription": {
          "subscription_inventory_block_action": "inventory_blocked_open_invoice"
        }
      }
    },
    "invoices": {
      "default_collection_mode": "buyer_initiated"
    },
    "legal": {
      "require_terms_of_service": true,
      "terms_of_service_url": "https://example.com/terms"
    },
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "metadata": {
      "channel": "retail"
    },
    "payment_limits": {
      "max_amounts": {
        "default": {
          "amount": 100000,
          "currency": "USD"
        },
        "payment_link": {
          "amount": 250000,
          "currency": "USD"
        }
      },
      "min_amounts": {
        "card.payment_link": {
          "amount": 100,
          "currency": "USD"
        },
        "default": {
          "amount": 50,
          "currency": "USD"
        }
      }
    },
    "promotions": {
      "automatic_enabled": true,
      "codes_enabled": true,
      "max_promotions_per_order": 2
    },
    "settings_id": "set_01KEZF7C00J81795CYBW13GTQH",
    "subscriptions": {
      "default_billing_schedule_owner": "flint",
      "dunning_end_action": "cancel",
      "dunning_retry_days": 16,
      "external_dunning_end_action": "notify_only",
      "send_backordered_email": false
    },
    "tax": {
      "default_enabled": true
    },
    "tax_identity": null,
    "tipping": {
      "custom_tip_enabled": true,
      "default_enabled": true,
      "default_smart_tip_money": null,
      "default_tip_percent": 18,
      "tip_percent_options": [
        15,
        18,
        20
      ]
    },
    "updated_at": "2026-03-17T14:30:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM65ZW6E3PZ409AWVKWHZ8A"
}

Was this helpful?