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:
| Read | Returns | Use it to |
|---|---|---|
GET /v1/settings | Only 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/effective | Your 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#
| Section | What it sets | Read more |
|---|---|---|
checkout | Hosted checkout defaults: payment options, required buyer details, session lifetime, default delivery methods, promotion code entry, reminder emails, and saved cards | Checkout settings |
tipping | Tip presets, the preselected tip, and custom tips | Tipping settings |
tax | Whether new orders calculate tax, how API orders calculate it by default, default tax categories, and the selected tax calculation callback | Tax settings |
tax_identity | The 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 |
inventory | What happens when stock can't be honored, and the default routing source for tracked demand | Inventory settings |
receipts | Optional merchant-provided text on payment receipt emails and PDFs | Receipt note |
branding | Colors, font, and corner radius of Flint-hosted pages | Branding settings |
legal | Terms of service, refund, shipping, and contract URLs, and whether buyers must accept the terms. URLs are HTTPS, up to 2,048 characters. | |
promotions | Automatic promotions, promotion codes, and how many promotions one order takes | Promotion settings |
payments | The text buyers see on their card or bank statement for new payments | Payment settings |
payment_limits | Your own minimum and maximum amounts per payment option and surface | Payment limits |
fulfillment | Whether new fulfillments need someone to accept them | Require approval |
subscriptions | Default billing schedule owner and what happens when renewal retries run out | Subscription settings |
invoices | Invoice defaults, numbering, reminders, and automatic payment retries | Invoice settings |
customer_account | Where buyers manage their orders and subscriptions, and what they may change | Customer account settings |
customer_email_delivery | Which buyer email families Flint sends and which you send | Customer email delivery |
metadata | Your 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 -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.
| Rule | Fields | What to send |
|---|---|---|
| Patch object | Every section, plus checkout.recovery_email, checkout.saved_payment_details, customer_account.presentation, and customer_account.route_templates | Only the fields to change. |
| Replaced as a whole | customer_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_money | Every field you want to keep. |
| Map replaced as a whole | inventory.origin_policies, payment_limits.max_amounts, payment_limits.min_amounts | Every key you want to keep. The keys you send become the whole map. |
| Array | Every array, such as checkout.enabled_payment_options and tax_identity.tax_ids | The complete array. |
| Merged by key | metadata | The 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.
{
"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.
{
"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_debittoenabled_payment_optionsalso turns on ACH debit for the environment's payment account. If the account can't take it yet, the update returns409 PAYMENT_OPTION_UNAVAILABLEwithdetails[0].reasonrequirements_due, orpayment_option_not_availableoutside the US. See Turn on ACH debit. - Promotion codes.
promotion_codes_enabledis the default for whether a checkout session's buyer can enter a code, andpromotion_config.codes_enabledon 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_codereports that offer; an unset override still accepts valid codes. Setting it totruewhilepromotions.codes_enabledisfalsereturns409 ACTION_NOT_ALLOWEDwith reasonconfiguration_required. - Default delivery methods.
default_delivery_method_idsaccepts only methods whose current configuration can be used. Adding a method whose revision, rate callback revision or signing key, or Location address is revoked returns409 ACTION_NOT_ALLOWEDwith reasondependency_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_secondsapplies 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.
{
"checkout": {
"recovery_email": {"enabled": true, "delay_seconds": 3600}
}
}
| Field | Rules |
|---|---|
enabled | Defaults 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_seconds | How 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 opened | The buyer sees |
|---|---|
| The checkout is still open | That checkout |
| The checkout expired and the order is still unpaid | A 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 paid | A page saying it's already paid |
| Anything else, including after 7 days | A 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.
{
"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_optionsholds exactly three values from 1 through 100, with at most four decimal places.smart_tip_money_optionsholds exactly three positive amounts. Neither acceptsnull, and neither do the tipping booleans.- A preselected tip must be one of the presets in effective settings:
default_tip_percentone of the percentages, anddefault_smart_tip_moneyone 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.
nullclears a preselection, and effective settings then use Flint's default.
{
"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:
| Field | Values | What happens |
|---|---|---|
post_payment_inventory_failure_action | exception_state, auto_refund | Payment 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_action | inventory_blocked_open_invoice, past_due | A 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. |
{
"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.
{
"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 returns400 INVALID_REQUESTwith detail codeINVALID_VALUEandparampayments.statement_descriptor. - Default. Omit the field to leave it unchanged. Send
nullto restore the payment provider's default, which reads back asnull. 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/settingsandGET /v1/settings/effectivereturnpayments.statement_descriptor_statuswithstatus(accepted,rejected, orpending) andreason(null unless rejected). Pending means a write or Stripe review is unresolved. Readiness names the requirementstatement_descriptorand directs callers toupdate_payment_settings; updatepayments.statement_descriptorhere 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:
| Selector | Applies to |
|---|---|
card.checkout | One payment option on one surface |
card.default | One payment option on every surface |
checkout | Every payment option on one surface |
default | Everything |
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.
{
"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 option | Minimum | Maximum 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.50 | The 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.
mode | Who serves the account | Fields that belong to it |
|---|---|---|
flint_hosted | Flint, the default | presentation |
merchant_hosted | Your own pages | merchant_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_REQUESTwith detail codeNOT_ALLOWED. - Changing
modedrops the other mode's fields. Switching tomerchant_hostedclearspresentation, and switching toflint_hostedclearsmerchant_account_urlandroute_templates.buyer_capabilitiesstays. - A custom domain blocks leaving Flint's account. The account hostname isn't a setting; it's a custom domain with
typecustomer_account. While one isn't archived, settingmodetomerchant_hostedor sending"customer_account": nullreturns409 RESOURCE_IN_USE, with the domain's ID indetails[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. Withmerchant_hosted,PATCH /v1/customers/{customer_id}can set, change, or clear it. In either mode,PATCHcan give an email to a customer who has none. Switching toflint_hostedmakes 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#
| Field | Default | What it decides |
|---|---|---|
default_billing_schedule_owner | flint | The schedule owner when a subscription is created without billing_schedule. |
dunning_end_action | cancel | What happens to a subscription Flint schedules when automatic retries run out: cancel, pause, or notify_only. |
external_dunning_end_action | notify_only | The same for subscriptions on an external schedule. dunning_end_action doesn't change it. |
dunning_retry_days | 16 | How 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_modeanddefault_invoice_payment_term_idapply to drafts that send or default tomerchant_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_policyandautopay_retry_policywhen 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'stimezonewhen it's written, or UTC when the merchant has none. - Reminder and retry rules.
reminder_policy.rulestakes up to 20 distinctdays_from_dueoffsets from-90to365; negative offsets fire before the due date, and an empty list sends no automatic reminders.autopay_retry_policy.retry_day_offsetstakes up to 5 strictly increasing day offsets from1to30after a failed charge on anautomaticinvoice. - Late fees aren't settings. They come from the payment term. See Late fees.
{
"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_enableddepends on active code promotions.tax.default_delivery_tax_categoryfollows 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 change | Use |
|---|---|
| What Flint charges to process a payment | Processing fees |
| Checkout and customer account hostnames | Custom domains |
| The default delivery profile | Choose the default profile |
| Automatic tax and where you collect it | Tax connection and tax registrations |
| The endpoint of your own tax engine | Tax calculation callbacks, then select one with tax.calculation_callback_id |
| Business name, address, logo, and icon | Merchants |
Errors#
Besides validation errors on single fields, an update can return:
- StatusHTTP 400CodeINVALID_
REQUEST What to doA value breaks a field's rule, andparamnames the field. Detail codeNOT_ALLOWEDmeans 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.REQUIREDmeans a field the request needs is missing, such asexpected_versionwithtax_identity. - StatusHTTP 409What to doReason
configuration_required: something outside the request must be set first, such as a tax connection fortax.default_enabled, or a selected tax calculation callback instead whentax.default_calculationuses a callback, a business address for checkout reminders, orpromotions.codes_enabledfor checkout code entry. Reasonstatus_not_reached: the payment method domain behindmerchant_account_urlisn'tactiveyet. Reasonsunsupported_stateandarchived: the callback intax.calculation_callback_idisinactiveorarchived, so it can't be selected. Reasondependency_revoked: a method added tocheckout.default_delivery_method_idsis revoked;details[0].blocking_resourcesnames it and what holds the revoked part. - StatusHTTP 409What to doACH debit can't be turned on for this environment yet. Branch on
details[0].reason. - StatusHTTP 409What to doFlint can't register the hostname of
merchant_account_urluntil payment onboarding is finished in this environment. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doAcustomer_accountcustom domain blocks the change. Archive the domain indetails[0].blocking_resources, then save again. - StatusHTTP 404What to do
tax.calculation_callback_idnames a callback that doesn't exist in this environment.paramistax.calculation_callback_id. - StatusHTTP 409What to do
expected_versionis stale. Read settings again and rebuild the change fromdetails[0].current_version. - StatusHTTP 409What to doAnother 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:
{
"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#
/v1/settingsRequires 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
brandingobjectColors, font, and corner radius of hosted checkout, receipts, and links. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
checkoutobjectDefaults for hosted checkout. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
created_atstringRequiredRFC3339 timestamp.
customer_accountobjectThe customer account where buyers manage their orders, subscriptions, returns, and invoices. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
customer_email_deliveryobjectWhether Flint or you send each kind of buyer email. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
fulfillmentobjectFulfillment workflow defaults. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
inventoryobjectInventory defaults, such as the low stock threshold and what happens when stock can't cover a paid order. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
invoicesobjectDefaults and policies for the invoices you issue. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
legalobjectLegal links and terms acceptance that checkout shows. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
merchant_idstringRequiredID of the merchant this resource belongs to.
metadatamap of stringStored caller-owned key-value data. See `MetadataInput` for key, value, and size rules.
payment_limitsobjectYour own lower and upper limits on payment amounts. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
paymentsobjectStatement text for new payments and Stripe's current decision about the card statement name.
promotionsobjectWhether automatic promotions and promotion codes apply, and how many discounts one order can stack. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
receiptsobjectMerchant-provided text on payment receipt emails and PDFs. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
settings_idstringRequiredUnique identifier for this settings, prefixed `set_`.
subscriptionsobjectSubscription billing behavior, such as what happens when payment retries run out. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
taxobjectDefault tax behavior for new checkouts and orders. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
tax_identityobject or nullRequiredThe merchant's legal identity, printed on invoices, credit notes, and receipts. `null` when none is set.
tippingobjectHow tips work at checkout. Omitted until you save a value in this section; effective settings fill in Flint's defaults.
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredCurrent version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/settingsIdempotentRequires 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 nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
accent_colorstring or nullA hex color in the form #RRGGBB, such as #1A73E8. Send null to clear it.
background_colorstring or nullA hex color in the form #RRGGBB, such as #1A73E8. Send null to clear it.
corner_radiusintegerCorner radius in pixels, from 0 to 32. 0 is a square corner.
font_familyenum or nullTypeface of hosted checkout and buyer pages. Without one, Flint uses `instrument_sans`. Send null to clear it.
instrument_sanssystem_sanssystem_serifmonospacenull
primary_colorstring or nullA hex color in the form #RRGGBB, such as #1A73E8. Send null to clear it.
text_colorstring or nullA hex color in the form #RRGGBB, such as #1A73E8. Send null to clear it.
checkoutobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
default_delivery_method_idsarray of stringDefault delivery methods for checkout creation requests that omit delivery_method_ids, payment links without delivery_method_ids, and invoice checkouts. The default applies only when the order has items to deliver; otherwise no methods are assigned. Methods and their dependencies must be active when saved. Send [] to clear this default; null is rejected. Each checkout pins its assigned methods when created.
default_expires_in_secondsintegerDefault lifetime in seconds for generic checkout sessions. Defaults to 86400. Invoice checkout sessions instead use the fixed deadline of the active invoice public-link generation.
enabled_payment_optionsarray of enumPayment options checkout offers by default. Effective settings fill in card, apple_pay, and google_pay when unset; an explicit empty list stays empty. Adding ach_debit in merchant settings requests ACH Direct Debit for your payment account; Flint refuses it before the account is set up, for a payment account outside the US, and in location or device settings. Each option shows only when it is available for the payment account and order.
cardapple_paygoogle_payaffirmach_debit
promotion_codes_enabledbooleanMerchant default for whether a checkout session's buyer can apply promotion codes, hosted or headless; when unset, hosted checkout offers code entry only while an active code promotion exists in this environment. Read can_apply_promotion_code on the session. Object-level promotion_config.codes_enabled can override it for a session or payment link.
recovery_emailobjectPatch object: fields you send are applied, fields you omit are unchanged. Checkout reminder email: one email to a buyer who entered an email address in hosted checkout and left without paying. Merchant scope only. Effective settings default it to off with a 3600 second delay.
require_billing_addressbooleanWhether hosted checkout requires the buyer's billing address before payment. Defaults to false; a payment option can still require billing details. A checkout session or payment link can override it with `buyer_fields`.
require_emailbooleanWhether hosted checkout requires the buyer's email address before payment. Defaults to false; subscription plan checkout always requires email. A checkout session or payment link can override it with `buyer_fields`.
require_phonebooleanWhether hosted checkout requires the buyer's phone number before payment. Defaults to false. A checkout session or payment link can override it with `buyer_fields`.
saved_payment_detailsobjectPatch object: fields you send are applied, fields you omit are unchanged. Whether hosted checkout offers buyers the option to save the card they type for faster checkout at this merchant. Merchant scope only. Effective settings default it to on.
customer_accountobject or nullPatch 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.
buyer_capabilitiesobjectReplaced as a whole: send every field you want to keep. What buyers may do to their own subscriptions in Flint's buyer account or through a customer session, in either mode. Merchant credentials are not bound by it. Buyers can always cancel. Written as a whole: an update that includes buyer_capabilities replaces the stored value, and each field it omits takes its default. Send at least one field.
merchant_account_urlstring or nullYour customer account page's URL, when you host it. Send null to clear it.
modeenumWho hosts the customer account where buyers see their orders, subscriptions, returns, and invoices.
flint_hostedmerchant_hosted
presentationobjectPatch object: fields you send are applied, fields you omit are unchanged.
route_templatesobjectPatch object: fields you send are applied, fields you omit are unchanged.
customer_email_deliveryobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
dunningenumWho sends the buyer emails when a subscription becomes past due or a payment retry fails. When you send them, use the `subscription.past_due` and `subscription_payment_retry.failed` webhook events.
flint_sendsmerchant_sends
fulfillment_updatesenumWho sends the buyer updates when a fulfillment, shipment, or package changes, and when a paid line's `expected_ship_date` changes. When you send them, use the `fulfillment.*`, `shipment.*`, and `package.*` webhook events, and `order.updated` for ship date changes.
flint_sendsmerchant_sends
invoicesenumWho sends invoice emails, reminders, late fee notices, credit note emails, and failed bank debit notices for invoice payments. Explicit email issue and scheduling require flint_sends. When you send these emails, use invoice.*, invoice_delivery_attempt.*, and invoice_payment_attempt.* webhook events.
flint_sendsmerchant_sends
order_receiptsenumWho sends payment and refund receipts for orders, invoices, and payments without an order, plus failed bank debit notices for orders. When you send them, use order.paid (or payment_intent.succeeded for payments without an order), refund.succeeded, and refund.partially_succeeded. For failed bank debits on orders, use payment_intent.payment_failed.
flint_sendsmerchant_sends
returnsenumWho sends the buyer emails as a return is created, decided, canceled, reopened, or completed. When you send them, use the `return.*` webhook events.
flint_sendsmerchant_sends
subscription_lifecycleenumWho sends the buyer emails when a subscription is created, activated, paused, resumed, canceled, or changes plan, and for its trial ending and skipped cycles. When you send them, use the `subscription.*` webhook events.
flint_sendsmerchant_sends
expected_versionintegerThe Settings.version last read by the caller. Required when tax_identity is present, including null. Stale versions return VERSION_CONFLICT.
fulfillmentobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
approval_requiredbooleanWhether a new fulfillment must be accepted before it can move into preparation, movement, or completion. Defaults to false.
inventoryobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
default_routing_sourceone of or nullWhere tracked demand is routed when a request omits `inventory_routing_source`: a fixed Location, an allocation policy, or one policy revision. It applies to orders, line items added to orders, quick pay invoices, payment links, subscription plans, inventory reservations, and delivery previews. The request stores the resolved source on the resource it creates or changes, as if the caller had sent it, so changing or clearing this default never moves routing for existing orders, payment links, plans, or reservations. A source the request sends always wins. `null` when no default is set. Orders, payment links, and subscription plans then 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. Send null to clear it.
low_stock_thresholdintegerAvailable quantity your team treats as low stock, zero or greater. The Dashboard shows this setting. It does not change allocation, filter API results, or send events.
origin_policiesmap of objectMap replaced as a whole: the keys you send become the full map. Inventory failure handling keyed by order source: checkout, payment_link, api, subscription, virtual_terminal, or default. The source-specific entry wins; default applies to the rest.
invoicesobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
autopay_retry_policyobject or nullReplaced as a whole: send every field you want to keep.
credit_note_number_prefixstring or nullUp to 12 ASCII letters, digits, underscores, or hyphens. Counted before normalization. Send null to clear it.
default_collection_modeenum or nullHow new invoices that ask for `merchant_default` collection are collected. Defaults to `buyer_initiated`.
buyer_initiatedautomaticexternalnull
default_footerstring or nullLimited to 4096 characters (Unicode code points), counted before normalization. Send null to clear it.
default_invoice_payment_term_idstring or nullID of the invoice payment term that applies to your invoices created with `payment_due.type` set to `merchant_default`.
default_memostring or nullLimited to 4096 characters (Unicode code points), counted before normalization. Send null to clear it.
invoice_number_prefixstring or nullUp to 12 ASCII letters, digits, underscores, or hyphens. Counted before normalization. Send null to clear it.
payment_policyobject or nullReplaced as a whole: send every field you want to keep.
reminder_policyobject or nullReplaced as a whole: send every field you want to keep.
remit_to_addressobject or nullReplaced as a whole: send every field you want to keep.
reply_to_emailstring or nullLimited to 255 characters (Unicode code points), counted before normalization. Send null to clear it. The local part before @ must be at most 64 octets (UTF-8 bytes).
legalobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
contract_urlstring or nullAn `https://` URL of at most 2,048 bytes. Send null to clear it.
refund_policy_urlstring or nullAn `https://` URL of at most 2,048 bytes. Send null to clear it.
require_terms_of_servicebooleanWhether the buyer must accept the terms of service before paying.
shipping_policy_urlstring or nullAn `https://` URL of at most 2,048 bytes. Send null to clear it.
terms_of_service_urlstring or nullAn `https://` URL of at most 2,048 bytes. Send null to clear it.
metadatamap of string or nullMerged 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 nullPatch 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.
max_amountsmap of object or nullMap replaced as a whole: the keys you send become the full map. Replaces this merchant limit map. Keys are default, a surface, payment_option.default, or payment_option.surface. Amounts must satisfy Flint's existing selector bounds and effective minimum/maximum range. Send null to clear this map; reads then omit it.
min_amountsmap of object or nullMap replaced as a whole: the keys you send become the full map. Replaces this merchant limit map. Keys are default, a surface, payment_option.default, or payment_option.surface. Amounts must satisfy Flint's existing selector bounds and effective minimum/maximum range. Send null to clear this map; reads then omit it.
paymentsobjectPatch object: fields you send are applied, fields you omit are unchanged. Changes the statement text for new payments.
statement_descriptorstring or nullStatic text for new payments: 5 to 22 Latin characters, including at least one letter, without < > \ ' " * or control characters. Omit to leave unchanged. Send null to restore the provider default.
promotionsobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
automatic_enabledbooleanWhether automatic promotions apply to this merchant's orders, checkout sessions and payment links. Omitted means true. Explicit false stops them everywhere, and a checkout session or payment link can't turn them back on.
codes_enabledbooleanMerchant promotion code redemption policy. Explicit false rejects promotion-code application even when a checkout or payment link asks to show code entry.
max_promotions_per_orderintegerMaximum promotion discounts on an order, from 1 to 10, default 2. Manual discounts do not count. See Promotion for the evaluation order.
receiptsobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
footer_textstring or nullOptional merchant-provided plain text shown on payment receipt emails and PDFs, including manual resends and downloads. Up to 500 Unicode code points. Send null to remove the text. Omit to keep it. Flint does not verify the statement or assert nonprofit status.
subscriptionsobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
default_billing_schedule_ownerenumWho sets billing dates for a new subscription that doesn't send `billing_schedule`. Defaults to `flint`.
flintexternal
dunning_end_actionenumWhat happens to a subscription that Flint bills when every payment retry has failed. Defaults to `cancel`.
cancelpausenotify_only
dunning_retry_daysintegerDays automatic payment retries run after a renewal fails, from 1 to 90. Defaults to 16.
external_dunning_end_actionenumWhat happens to a subscription with an external billing schedule when every payment retry has failed. Defaults to `notify_only`.
cancelpausenotify_only
send_backordered_emailbooleanWhether Flint emails the buyer when a renewal waits on stock. Defaults to false.
taxobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
calculation_callback_idstring or nullThe active tax calculation callback selected for this merchant and environment. Switching IDs is atomic. Omit to preserve the selection; send null to clear it.
default_calculationobject or nullReplaced as a whole: send every field you want to keep. The calculation an order uses when nothing sets its own: an order created with `POST /v1/orders` without `tax.calculation`, and the orders of checkout sessions, payment links, and subscriptions that set none. A `provided` default applies only to orders you create; the orders Flint creates use automatic tax under it. Send null to clear it, which means automatic. While `default_enabled` is on, a `callback` default needs a selected tax calculation callback, and clearing `calculation_callback_id` is refused; any other default needs an active tax connection.
default_delivery_tax_categoryenum or nullCharge category inherited by delivery methods that omit charge_tax_category. `null` when no default is set; the category then follows the method type: shipping for shipments, delivery for local delivery, and service_fee for pickup. Send null to clear it.
service_feeshippingdeliveryhandlingsurchargenull
default_delivery_taxablebooleanTaxability of delivery charges for delivery methods that don't set `taxable`. Defaults to true.
default_enabledbooleanWhether new checkouts and orders calculate tax by default. This does not decide whether an individual line item or delivery charge is taxable. Turning it on, or changing the default calculation while it is on, needs what the default calculation uses: a selected tax calculation callback for an external `callback` default, and an active tax connection for any other, because the orders Flint creates use automatic tax under an automatic or `provided` default.
default_line_item_tax_categoryenum or nullFlint line-item tax category. Effective settings return general when unset, matching the tax engine fallback. Send null to clear it.
generalphysical_goodsdigital_goodssoftwaresaasservicesprofessional_servicesfoodprepared_foodclothingmedical_goodsadmissionnull
default_price_modeenumPrice mode an order takes when it starts calculating tax without its own tax.calculation: when it is created, from a checkout session or payment link, or when tax is turned on later. additive (the default) adds tax to prices, and inclusive treats every line item and charge price as including its tax. Subscription orders, including renewals, stay additive, and orders that already calculate tax keep their mode.
additiveinclusive
delivery_charge_tax_basisenumAutomatic tax basis for delivery-method charges. Defaults to full_charge. taxable_items_share taxes the charge in proportion to discounted gross taxable merchandise in its fulfillment group, rounded half up. Explicit taxable:false wins. Direct order charges and external tax are unchanged. Saved values take effect only when Flint enables this capability; until then the full charge is used. Open orders use the setting at their next calculation; committed tax keeps its basis.
full_chargetaxable_items_share
tax_identityobject or nullPatch 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.
legal_namestring or nullThe merchant's legal name, printed on invoices and credit notes.
registered_addressobject or nullReplaced as a whole: send every field you want to keep. The merchant's registered business address, printed on invoices and credit notes.
tax_idsarray of objectTax IDs printed on invoices and credit notes, in display order. The list you send replaces the stored one: keep an entry by sending its `document_tax_id`, add one by omitting it, and remove one by leaving the entry out. Send `[]` to remove every tax ID.
tippingobject or nullPatch object: fields you send are applied, fields you omit are unchanged. Send null to remove every value you set in this section.
custom_tip_enabledbooleanWhether buyers can enter a custom tip amount.
default_enabledbooleanWhether hosted checkout offers tips when a checkout session or payment link doesn't set its own `tip`. Defaults to false.
default_smart_tip_moneyobject or nullReplaced as a whole: send every field you want to keep. Omit to preserve the current value. Send null to clear the preselection and use Flint's default. When replacing presets, explicitly replace or clear a preselection that is no longer offered.
default_tip_percentnumber or nullOmit to preserve the current value. Send null to clear the preselection and use Flint's default. When replacing presets, explicitly replace or clear a preselection that is no longer offered.
smart_tip_money_optionsarray of objectThree fixed tip amounts to offer.
smart_tips_enabledbooleanWhether checkout offers fixed tip amounts instead of tip percentages.
tip_percent_optionsarray of numberThree tip percents to offer, each from 1 through 100 with at most four decimal places.
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#
/v1/settings/effectiveRequires scope settings.read or settings.write
Rate limit: read
Returns the authenticated merchant's settings for this environment with Flint's defaults filled in.
curl https://api.withflintpay.com/v1/settings/effective \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The effective settings record.
{
"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?