Payment links
A payment link is a checkout URL you create once and share with any number of buyers. Each buyer who opens it gets their own checkout session and their own order, so the link is a template and the orders are the sales. Use a link when anyone with the URL can buy the same offer. To collect for one order from one buyer, create a checkout session; to bill a known customer with a due date, send an invoice. Payment links vs checkout sessions vs invoices compares the three.
Your server creates, reads, and updates links with an API key: checkouts.payment_links.write to create and update, and checkouts.payment_links.read to list and retrieve. The public read and resolve routes take no credential, so a buyer's browser can call them to show the offer on your own page and start the buyer's checkout; see Start checkout from your own page. The public read returns the merchant's current display name, and if Flint can't load the merchant it fails with 500 INTERNAL_ERROR rather than showing a placeholder; retry it.
Resolve accepts optional client_reference (1 to 255 opaque characters, preserved exactly) and prefill.email (a valid email of 1 to 320 characters). Hosted URLs use client_reference and prefill_email. The reference is copied to the session and order as a nullable, immutable field readable by merchant credentials. Anyone with the URL can change it, so it is not proof of identity. Email prefill is editable and never links an existing customer. See Share the link.
Delivery address country requirements come from the session's pinned delivery methods, including their eligibility and rate-table conditions. Read input_requirements[].constraint.supported_countries on the checkout session or delivery quote, and intersect across choice groups. Automatic tax adds the order's tax.supported_countries limit, currently ["US"]. Non-US automatic tax locations are not supported. Unrestricted delivery excludes CU, IR, KP, and SY; Crimea, Donetsk, and Luhansk are excluded when address data identifies them.
Link types#
The type decides what the buyer sees. You choose it on create with payment_link_type and subscription_plan_id, and neither can change afterward; create a new link instead.
| Link | Create it with | The buyer chooses |
|---|---|---|
| Standard | line_items: catalog variant or bundle items, or ad hoc custom_fixed or custom_variable items | A quantity or amount within the limits you set, and a variant on a variant_ids line |
| Donation | payment_link_type: "donation" and the donation_* amount fields, without line_items | One amount |
| Event | payment_link_type: "event", event_config with event_at and timezone, and line_items as ticket tiers | A ticket count for each tier |
| Subscription signup | subscription_plan_id instead of line_items. The link reads as payment_link_type: "standard". | The plan's billing interval and quantity, from the options it offers |
Delivery and inventory configuration#
Create, activation (status: "active"), and changes to line_items, delivery_method_ids, or inventory_routing_source validate checkout configuration before saving. Explicit delivery methods or settings.checkout.default_delivery_method_ids must cover the items' delivery profiles. This includes pickup-only profiles and every required bundle component; digital or service fulfillment without a checkout choice needs no method. At least one offered variant must have usable configuration for each variant_ids line.
Tracked demand requires an active routing location with inventory_allocation_enabled: true. An allocation policy can include disabled locations when another location remains usable. Untracked and ad hoc items need no allocation check, and temporary stock shortages do not prevent these writes.
Tracked demand that omits inventory_routing_source uses and stores settings.inventory.default_routing_source when set. Otherwise, Flint uses the active Location in the current environment that has had inventory allocation enabled the longest. The link resolves that fallback again each time it is used. If no Location is eligible, send a routing source or configure the merchant default.
Every required line needs a usable option. Adjustable event tiers may be skipped, so one unusable optional tier does not block a link when another tier can be checked out. For a pinned policy revision, enable allocation at an active location in that revision or change the link's inventory_routing_source; publishing a new parent-policy revision does not change the pin.
Configuration gaps return 409 ACTION_NOT_ALLOWED, reason configuration_required, retry none, and the blocking resource in error details. Follow remediation.next_actions for configuration that needs a separate write. Clearing delivery_method_ids validates the inherited defaults. Renaming, editing metadata, and deactivating an unsellable link remain allowed.
What each checkout creates#
When a buyer continues from the link, Flint creates an order and a checkout session for that buyer. You fulfill, refund, and report on the order, not the link.
- Where it came from. The order has
origin: "payment_link"and the link'spayment_link_id.GET /v1/orders?payment_link_id=pl_...lists one link's orders, andGET /v1/checkout-sessions?payment_link_id=pl_...lists the checkouts it started. - Metadata. The order's
metadataholds a copy of the link'smetadata. Orders created before Flint recorded answers incustom_field_answersalso hold each answer there ascustom_field_<key>. - Custom field answers. The order and its checkout sessions return the buyer's answers in
custom_field_answers, frozen when checkout started and returned only to merchant credentials. See Orders. - Line item keys. Each order line created from a link line item has that item's
keyaspayment_link_line_item_key. It isnullon lines added to the order later and on subscription signup orders' plan lines. See Orders. - Snapshots. A checkout keeps the items, prices, and settings the link had when it started. Edits apply to checkouts that start afterward. Deactivation closes open, unpaid checkouts; payments already in progress can finish.
- Counters.
completed_countcounts paid checkouts, and an event link'stotal_quantity_soldcounts tickets sold. A full refund gives that order's capacity back to the link and lowers both, and it voids the order's remaining tickets.
Fulfill from the order.paid webhook rather than the buyer's success redirect, after you check the order's dispute_status (access rules); Fulfill and reconcile lists the events.
Variant quantity pricing#
The public link read includes quantity_price_breaks for each offered variant in available_variants, alongside its base unit_price_money. A fixed variant line returns quantity_price_breaks in its resolved_line_items entry, where resolved_unit_price_money is the base price that applies below the first break. An empty array means the base price applies at every quantity. Bundles, variant choice lines, and ad hoc lines return an empty array there, because a variant choice line keeps a separate schedule for each offered variant in available_variants.
When checkout creates an order, each variant line uses the break with the largest minimum_quantity at or below that line's quantity. Separate lines are not combined. Payment links use the default variant schedule. The resulting order keeps its selected price and schedule; later catalog changes do not reprice an existing checkout. Subscription plans keep their own prices.
Status and availability#
status on payment linkactiveThe link starts new checkouts until one of the limits below stops it.inactiveYou deactivated the link. Buyers who open it see yourinactive_message. Open, unpaid checkouts close and refuse new payments. Payments already in progress can finish. Setstatusback toactiveto allow new checkouts at the same URL; closed checkouts stay closed.
Only your PATCH changes status, and there is no delete. A link stops taking new buyers in any of these cases; in the last three, its status stays active:
| Stops new checkouts when | Reopen it by | Starting a checkout returns |
|---|---|---|
status is inactive | Setting status to active | 409 ACTION_NOT_ALLOWED, reason unsupported_state |
The sales end passes: sales_end_at, or event_config.event_at on an event link without one | Sending a later sales_end_at, or null to remove it | 409 ACTION_NOT_ALLOWED, reason not_offered |
completed_count reaches max_completions | Raising max_completions, or sending null to remove it | 409 LIMIT_REACHED, reason payment_link_completions |
An event has no tickets left under event_config.max_total_quantity, or a catalog line has no stock at the link's inventory_routing_source | Raising the ticket limit or adding stock | 409 INVENTORY_INSUFFICIENT |
The public read returns status, is_past_sales_end, is_sold_out, and the link's completed_count and max_completions, so your page can show the right message before the buyer tries to check out. checkout_session_expires_in_seconds limits how long each buyer's checkout stays open; it never stops the link. Control availability has examples.
GET /v1/payment-links/{payment_link_id}/public also returns data.merchant_support: the support email, phone (E.164), and url (absolute http or https) the merchant set, each optional. The object is omitted when the merchant set none. It is available even when the link is inactive, at its completion limit, sold out, or past its sales end. Show these support links wherever your page tells the buyer to contact the merchant.
Update a link#
PATCH changes only the fields you send. Update a link covers clearing fields with null and merging metadata.
- Versions.
versionstarts at1and goes up by one with every saved change, including a status change. Sales and the counters above don't change it. Each change sendspayment_link.updatedwith the newversion. - Whole lists.
line_items,custom_fields, anddelivery_method_idsare replaced as a whole, and aPATCHthat sends any of them needs the link's currentversionasexpected_version. Include an entry'spayment_link_line_item_idorpayment_link_custom_field_idto keep it, leave the ID out to add an entry, and leave an entry out to remove it. Omit a list to leave it unchanged. - Conflicts. If the link changed since you read it, the request returns
409 VERSION_CONFLICTwith the current version indetails[0].current_version, and nothing changes. Read the link again and retry with that version. - Active links keep their line items. On an active link, every line item keeps its ID,
key, and source: its variant, bundle,variant_idsproduct, or ad hoc item. You can change an ad hoc item's name and price, any item's quantity settings, and the variants listed within avariant_idsline's product. Adding, removing, re-keying, or re-sourcing an item returns409 ACTION_NOT_ALLOWEDwith reasonfield_locked; send"status": "inactive"in the samePATCH, then reactivate the link. - Response-only line item fields. Reads add
resolved_name,resolved_unit_price_money,resolved_price_range,is_catalog_item_unavailable, andproduct_idto catalog line items. They show the catalog's current values, and checkout resolves the catalog again when each checkout starts. Remove them before sending a fetched line item back, or the request fails with400 INVALID_REQUEST.
This request lowers the price of the link's one item, keeping it by ID:
curl -X PATCH https://api.withflintpay.com/v1/payment-links/pl_01K4SPRINGTEE \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"expected_version": 3,
"line_items": [{
"payment_link_line_item_id": "plli_01K4TEE",
"type": "custom_fixed",
"key": "tee",
"name": "Limited Tee",
"unit_price_money": {"amount": 3000, "currency": "USD"},
"allow_quantity_adjustment": true,
"min_quantity": 1,
"max_quantity": 5
}]
}'
- payment_
link. created You created the link - payment_
link. updated A saved change advanced the link'sversion, including activating, deactivating, or changing its image
Platform fee rule#
| Request | platform_fee_rule |
|---|---|
POST /v1/payment-links | An object copied onto each checkout the link starts. |
PATCH /v1/payment-links/{payment_link_id} | An object replaces the whole rule. null removes it. Omit it to keep the rule. Requires expected_version whenever the field is present. |
Only the partner app install that created the link may set or remove its rule. PaymentLink returns an active rule with its partner_app_id. The public link and buyer checkout omit the rule.
percent is required and ranges from 0 to 25 with up to four decimal places. A percent of 0 requires fixed_fee_money. The optional fixed_fee_money and maximum_fee_money each take 1 to 1,000,000 minor units in the link's currency. The maximum must be at least the fixed amount. Until the app owner accepts a Flint Platform Agreement version that covers rules, setting or replacing a rule in live mode returns 409 ACTION_NOT_ALLOWED with reason platform_onboarding_required. The creating install can still remove the rule by sending null with expected_version. See Checks when you set a rule for consent, live eligibility, and cap errors.
Changing the rule advances the link's version and affects checkouts started afterward. If a buyer loaded the link before the change, they must reload it to start checkout. Open checkouts keep their copy. A rule change or removal includes the prior value in previous_attributes.platform_fee_rule.
Sales summary#
Add expand=sales_summary to GET /v1/payment-links/{payment_link_id} or GET /v1/payment-links to get each link's paid totals, one entry per currency. Flint computes it when you ask, for the whole page at once on a list.
curl -G https://api.withflintpay.com/v1/payment-links/pl_01K4SPRINGTEE \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "expand=sales_summary"
{
"data": {
"payment_link_id": "pl_01K4SPRINGTEE",
"status": "active",
"version": 4,
"sales_summary": {
"paid_totals": [{"amount": 10500, "currency": "USD"}],
"refunded_totals": [{"amount": 3500, "currency": "USD"}],
"paid_order_count": 3,
"computed_at": "2026-10-28T17:00:00Z",
"checked_in_ticket_count": 0
}
}
}
paid_totals is what the link's paid orders collected before refunds, and paid_order_count still counts a refunded order. refunded_totals lists the refunds on those same orders in the same currency order, so subtract it entry by entry for what you kept. Three $35.00 orders with one fully refunded show $105.00 paid and $35.00 refunded, so you kept $70.00.
The summary differs from completed_count, which drops a fully refunded order. With no paid orders, both totals are [] and the count is 0.
For an event link, checked_in_ticket_count is the number of its tickets checked in when you read the summary. Undoing a check-in or voiding a ticket lowers it. It's 0 for a link that has issued no tickets.
Expand related records#
Both reads accept these expand paths:
expand | Adds | Also needs |
|---|---|---|
sales_summary | The sales summary | No other scope |
subscription_plan | The plan summary for subscription_plan_id, or null on a link without a plan | commerce.subscription_plans.read |
A key without a scope a path needs gets 403 INSUFFICIENT_SCOPE with param: expand. Expand related records covers how Flint batches each page and keeps page tokens valid.
curl -G https://api.withflintpay.com/v1/payment-links \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "has_subscription_plan=true" \
--data-urlencode "expand=sales_summary,subscription_plan"
Related guides#
Payment linksCreate, share, and fulfill a link, with examples for every link type.Subscription billingPlans, trials, and renewals behind signup links.Catalog setupCreate the variants and bundles that catalog line items sell.Event changes#
On PATCH /v1/payment-links/{payment_link_id}, notify_ticket_holders is an optional boolean that defaults to true for each request. Changing an event's event_at, timezone, or venue updates existing orders and buyer tickets, and sends each affected order's holder an email. Set it to false to send your own notice. Unchanged details and changes to other settings send no holder email. send_ticket_emails controls ticket confirmations separately.
Affected orders send order.updated with data.previous_attributes.ticketed_event. Read Reschedule an event for an example and cancellation steps.
The Payment link object#
A reusable link that opens checkout.
Returned by GET /v1/payment-links/{payment_link_id} and carried by the endpoints below.
Attributes
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
address_autocomplete_enabledbooleanWhether checkout offers address suggestions while the buyer enters an address.
require_billing_addressbooleanWhether checkout requires the buyer's billing address.
require_emailbooleanWhether checkout requires the buyer's email address. Subscription plan sessions always require email, so only true is allowed with type: subscription_plan.
require_phonebooleanWhether checkout requires the buyer's phone number.
checkout_session_expires_in_secondsintegerSeconds each checkout session the link starts stays open, from 60 to 86,400. Omit it to use your checkout settings, or 24 hours. It doesn't end the link; use sales_end_at for that.
completed_countintegerRequiredNumber of paid checkout sessions started from this link.
created_atstringRequiredRFC3339 timestamp.
custom_fieldsarray of objectQuestions buyers answer before paying. Answers are recorded on the order and checkout session in `custom_field_answers`.
custom_field_typeenumRequiredWhat kind of answer the field collects.
textdropdowncheckboxtextarea
keystringRequiredUnique custom field key, without leading or trailing whitespace. Each answer records it as `custom_field_answers[].key`.
labelstringRequiredQuestion shown to the buyer.
max_lengthintegerMaximum answer length for text and textarea fields, counted in Unicode code points. Defaults to 255 for text and 1000 for textarea when omitted.
optionsarray of stringDropdown choices. Dropdown fields require at least one option. Options must not have leading or trailing whitespace.
payment_link_custom_field_idstringRequiredUnique identifier for this payment link custom field, prefixed `plcf_`.
placeholderstringHint text shown inside the empty field.
positionintegerDisplay order among the link's custom fields. Lower numbers come first.
requiredbooleanWhether the buyer must answer before paying.
custom_textobjectCustom text for checkouts started from this link.
order_summary_messagestringMessage shown near the order summary in checkout.
shipping_address_labelstringLabel shown for the shipping address in checkout.
delivery_method_idsarray of stringRequiredDelivery methods the link offers. Empty when the link has none, and then its checkouts offer settings.checkout.default_delivery_method_ids when the order has items to deliver.
descriptionstringText about what the link sells, returned to buyers when they open it.
donation_max_amount_moneyobjectLargest amount a buyer can give on a donation link. Must be greater than zero and greater than or equal to donation_min_amount_money. Omit on create for no maximum.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_min_amount_moneyobjectSmallest amount a buyer can give on a donation link.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_suggested_amount_money_optionsarray of objectAmounts a donation link offers as one-tap choices. Use the same currency for all suggested amounts and both bounds.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
event_configobjectEvent details for an `event` link: when and where it takes place and how many tickets it sells.
collect_attendee_namesbooleanWhether resolving the link requires `attendee_names`, one name per ticket. Flint copies the names onto the tickets when the order is paid. Defaults to false.
event_atstringRFC3339 timestamp.
max_total_quantityinteger or nullMost tickets the event sells across all orders. `null` when the event has no ticket limit. On update, send null to remove the limit; a value below the tickets already sold or held by payments in progress fails with `LIMIT_EXCEEDED`. Whole-number quantity; fractional quantities are not supported.
send_ticket_emailsbooleanWhether Flint emails tickets to buyers after they pay.
ticket_prefixstringPrefix for ticket numbers, up to 5 characters. It cannot change after the event has issued tickets.
timezonestringIANA time zone of the event venue, used to show `event_at` as venue time.
venuestringWhere the event takes place.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imageobjectImage shown to buyers with the link.
altstringAlternative text describing the image for accessibility.
file_idstringIdentifier of the file attached as this image.
heightintegerRequiredImage height in pixels, when known.
source_referencestringCaller-owned reference identifying this attachment within its gallery.
urlstringRequiredURL of the image.
widthintegerRequiredImage width in pixels, when known.
inactive_messagestringMessage to show the buyer when the link is inactive.
inventory_routing_sourceobjectThe inventory location or routing policy that supplies stock for the link's catalog lines. Absent when using the implicit single-Location fallback, which is evaluated again on use.
inventory_allocation_policy_idstringID of the allocation policy that routes demand.
inventory_allocation_policy_revision_idstringID of the allocation policy revision that routes demand.
location_idstringID of the fixed Location that serves all demand.
typeenumRequiredHow Flint routes demand to Locations.
fixed_locationpolicypolicy_revision
legalobjectThe terms and policy links checkouts started from this link show the buyer.
contract_urlstringAn `https://` URL of the contract the buyer agrees to, linked in checkout.
refund_policy_urlstringAn `https://` URL of your refund policy, linked in checkout.
require_terms_of_servicebooleanWhether the buyer must accept the terms of service before paying.
shipping_policy_urlstringAn `https://` URL of your shipping policy, linked in checkout.
terms_of_service_urlstringAn `https://` URL of your terms of service, linked in checkout.
line_itemsarray of one ofWhat the link sells.
One of these shapes
A line item on a payment link.
allow_quantity_adjustmentbooleanWhether the buyer can change the quantity in checkout.
allow_unit_price_adjustmentbooleanWhether the buyer sets the unit price. Only `custom_variable` lines allow it.
default_variant_idstringVariant selected when the page opens and used at resolve when the buyer omits a selection. Must be in variant_ids. Omit it to require a buyer selection.
descriptionstringDescription of an ad hoc line item.
is_catalog_item_unavailablebooleanRequiredTrue when the referenced variant or bundle cannot be sold, or no listed variant in variant_ids can be sold in the line currency. Always false on ad hoc line items.
is_sold_outbooleanPublic event read: true when the tier or event has no capacity left.
keystringKeys the resolve override maps. Stable line item key used in checkout overrides. Must not have leading or trailing whitespace. Assigned as line_item_1, line_item_2, and so on when omitted, skipping numbers already used by explicit keys; retained for an existing line item when omitted on update.
max_quantityintegerWhole-number quantity; fractional quantities are not supported.
max_total_quantityintegerOptional whole-number admission capacity across all orders for an event tier; fractional quantities are not supported. Must be at least 1 and cannot exceed event_config.max_total_quantity when the event is capped. Omit for no tier cap; omitting it in a line_items replacement removes an existing cap.
max_unit_price_moneyobjectHighest unit price the buyer can enter when `allow_unit_price_adjustment` is true. Must be greater than zero and greater than or equal to min_unit_price_money. Omit for no maximum.
min_quantityintegerWhole-number quantity; fractional quantities are not supported.
min_unit_price_moneyobjectLowest unit price the buyer can enter when `allow_unit_price_adjustment` is true.
namestringName of an ad hoc line item. Catalog lines take the catalog name.
payment_link_line_item_idstringRequiredUnique identifier for this payment link line item, prefixed `plli_`.
product_idstringParent catalog context only. The product that the variants in variant_ids belong to. Present only on buyer choice lines; refused on input.
product_typeenum or nullRequiredClassification configured on a custom line for ACH debit. Null when unclassified or catalog-backed; catalog lines get their product classification when checkout starts.
physicalservicefeedigitalgift_cardnull
quantityintegerRequiredWhole-number quantity; fractional quantities are not supported.
remaining_quantityintegerPublic event read: whole-number admissions left after sales and payment holds; fractional quantities are not supported. This quantity is bounded by both the tier and event caps. Omitted when neither is capped.
resolved_namestringCurrent catalog name of the referenced variant or bundle, or the product name for variant_ids lines. A variant reads as the product name, plus the variant name when the variant is a named option combination. This is the catalog value at read time, not a stored snapshot: checkout resolves it again when a buyer opens the link. Absent on ad-hoc line items and when the catalog object no longer exists.
resolved_price_rangeobjectCurrent lowest and highest catalog unit prices among listed variants that can be sold in the line currency. Computed at read time, not stored. Omitted when no listed variant can be sold.
resolved_unit_price_moneyobjectCurrent catalog unit price of the referenced variant or bundle. For a fixed variant this is the base price that applies below the first quantity price break. This is the catalog value at read time, not a stored snapshot: checkout resolves the price again when a buyer opens the link, so the amount a buyer pays can differ. Absent on ad-hoc line items, variant_ids lines, and when the catalog object no longer exists.
suggested_unit_price_money_optionsarray of objectUnit prices offered as one-tap choices when the buyer sets the price. Use the same currency for the price, bounds, and suggested prices.
taxobjectTax settings for an ad hoc line item. Catalog lines use the catalog's.
typeenumRequiredHow the line item is defined.
variant
unit_price_moneyobjectPrice of one unit of a `custom_fixed` line item.
variant_idstringID of the catalog variant a `variant` line sells.
variant_idsarray of stringVariant IDs buyers may choose from, in the order offered. Contains 1 to 100 unique, active, sellable variants of one product in one currency. Available only on standard payment links. Mutually exclusive with variant_id, bundle_id, and ad hoc line item fields.
max_completionsintegerMost payments the link accepts, counted by `completed_count`. Absent means no limit. Once the limit is reached, resolving the link fails with a request error. It can't be set below `completed_count`.
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.
namestringRequiredName of the payment link.
payment_link_idstringRequiredUnique identifier for this payment link, prefixed `pl_`.
payment_link_typeenumWhat kind of link this is.
standarddonationevent
paymentsobjectPayment options for checkouts started from this link.
enabled_payment_optionsarray of enumPayment options for this session. The list replaces settings.checkout.enabled_payment_options; omit it to use that setting.
cardapple_paygoogle_payaffirmach_debit
payment_notestringA note shown to the buyer with the payment options.
platform_fee_ruleobjectThe platform fee rule copied to checkouts started from this link.
fixed_fee_moneyobjectThe fixed amount per payment.
maximum_fee_moneyobjectThe maximum fee per payment, at least the fixed amount.
partner_app_idstringRequiredThe partner app whose install set the rule.
percentnumberRequiredPercent of the amount collected. Zero requires fixed_fee_money.
promotion_configobjectWhether automatic promotions apply to checkouts started from this link and whether buyers can enter promotion codes.
automatic_enabledbooleanWhether automatic promotions apply to this checkout. Send false to stop them here. True can't turn them back on when your promotion settings have them off.
codes_enabledboolean or nullObject-level override for whether this checkout's buyer can apply promotion codes, hosted or headless. Omit to inherit the payment link and checkout.promotion_codes_enabled. When all are unset, hosted checkout offers code entry only while an active code promotion exists in this environment; read can_apply_promotion_code on the session. True allows codes when the merchant's promotion settings allow them; false blocks them for this checkout. `null` when this checkout inherits checkout.promotion_codes_enabled.
redirectsobjectWhere checkout sessions started from this payment link send the buyer after payment, cancellation, or expiration.
cancel_urlstringWhere the buyer goes when they leave checkout without paying. The session stays open until it expires. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
expired_urlstringWhere Flint sends a buyer who opens the session after it expires. Without it, the buyer sees Flint's expired-checkout page. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
success_urlstringWhere the buyer goes after paying. Flint adds checkout_session_id and order_id query parameters, replacing any with those names. The redirect doesn't prove payment: confirm with the order.paid webhook or by reading the session. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
sales_end_atstringRFC3339 timestamp after which the link stops starting checkouts and resolve fails with `ACTION_NOT_ALLOWED` and reason `not_offered`. Unset means sales do not end on their own, except that an event link without sales_end_at stops selling at event_config.event_at. A checkout opened before the end can still start payment for up to 15 minutes after it.
sales_start_atstringRFC3339 timestamp when buyers can first start a checkout from this link. Stored to nanosecond precision. Before it, resolve fails with ACTION_NOT_ALLOWED and reason sales_not_started. Must be earlier than the link’s sales end, including the event start when no explicit end is set.
sales_summaryobjectPresent only with expand=sales_summary on GET /v1/payment-links or GET /v1/payment-links/{payment_link_id}. Available to merchant callers, including dashboard sessions and API keys with checkouts.payment_links.read. Uses the same paid-order definition as the merchant sales summary.
attempted_payment_countintegerRequiredAll recorded card attempts from this link, including pending attempts and retries.
checked_in_ticket_countintegerRequiredTickets for this payment link that are checked in now, counted when the summary is read. Undoing a check-in or voiding a ticket lowers it. 0 for links that have issued no tickets.
computed_atstringRequiredUTC time at which the summary was computed, at second precision.
failed_payment_countintegerRequiredRecorded failed card attempts from this link. A successful retry does not erase previous failures.
paid_order_countintegerRequiredNumber of orders whose collection has completed, across all currencies, including fully and partially refunded orders.
paid_totalsarray of objectRequiredGross paid totals in integer minor units, one Money object per currency with paid orders, sorted by currency. Refunds are not subtracted. Empty array when there are no paid orders.
refunded_totalsarray of objectRequiredRefunded totals in integer minor units on the same paid orders as paid_totals. One Money object per currency with paid orders, sorted by currency, including zero when nothing was refunded. Empty array when there are no paid orders.
statusenumRequiredWhether the link can start new checkouts.
activeinactive
subscription_planobject or nullPresent only when `expand` includes `subscription_plan`; `null` when expanded and there is no related subscription plan.
billing_intervalenumRequiredUnit of the plan's default billing period. Read with `billing_interval_count`: monthly with a count of 3 bills every three months. A new subscription starts on the pair the buyer chose from `billing_interval_options`, or on this one when they chose none.
dailyweeklymonthlyyearly
billing_interval_countintegerRequiredNumber of `billing_interval` units between charges on the plan's default pair.
billing_interval_optionsarray of objectOffered billing interval and count pairs, including the plan's default pair. Prices of lines that ship are per delivery. Each option charges for all deliveries in its period. Use separate plans or promotions for different prices per interval.
created_atstringRFC3339 timestamp.
currencystringRequiredISO 4217 currency code.
descriptionstringDescription of the plan. Omitted when none is set.
line_itemsarray of one ofThe lines a subscription on this plan bills each period, in the order you set them. Flint copied each catalog line's details from the catalog when it added the line.
namestringRequiredName of the plan. Buyers see it at checkout and on their subscription.
setup_fee_moneyobjectOne-time fee charged with the first payment of a new subscription, except one that continues an imported paid period. Omitted when the plan has no setup fee.
statusenumRequiredActive plans accept new signups. Inactive plans refuse new signups with ACTION_NOT_ALLOWED while existing subscriptions keep renewing. Archived plans are read-only and their status is set only by DELETE /v1/subscription-plans/{subscription_plan_id}.
activeinactivearchived
subscription_plan_idstringRequiredUnique identifier for this subscription plan, prefixed `plan_`.
trial_period_daysintegerDays of free trial before the first recurring charge. Omitted or 0 when the plan has no trial.
updated_atstringRFC3339 timestamp.
subscription_plan_idstringID of the subscription plan the link sells. Absent for a link that doesn't sell a subscription.
taxobjectTax settings for checkouts started from this link.
calculationobjectHow the order Flint creates calculates tax while tax is enabled. Omitted when it follows `tax.default_calculation` from your settings, where a `provided` default means automatic. On a payment link update, send null to follow your settings again.
enabledbooleanWhether Flint calculates tax on the order it creates for this checkout. Omit to use tax.default_enabled from your settings.
themeobjectThe title and colors for checkouts started from this link, over your branding settings.
accent_colorstringAccent color of the checkout, such as #1A73E8.
primary_colorstringPrimary color of the checkout, such as #1A73E8.
titlestringTitle shown in place of the merchant's business name.
tipobjectTip options for checkouts started from this link.
custom_tip_enabledbooleanWhether buyers can enter a custom tip amount.
default_smart_tip_moneyobjectThe preselected fixed tip, with a positive amount in the same currency as smart_tip_money_options. Its amount and currency must match one of the effective smart_tip_money_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped.
default_tip_percentnumberThe preselected tip percent, from 1 through 100 with at most four decimal places. Must match one of the effective tip_percent_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped, and checkout preselects no tip.
enabledbooleanWhether checkout offers a tip. Omit it to follow the merchant's tipping settings. Subscription signups don't inherit that setting or its preselected tip: they offer a tip only when this is true, and the tip is collected once, with the signup payment. A signup with nothing due today, such as a free trial, offers none. Renewals don't include it.
smart_tip_money_optionsarray of objectThree fixed tips to offer, each with a positive amount. On a checkout session they must use the session's currency. On a payment link they must share one currency, and a checkout opened from the link offers only those in its currency.
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.
total_quantity_soldintegerRequiredWhole-number quantity; fractional quantities are not supported.
updated_atstringRequiredRFC3339 timestamp.
urlstringRequiredURL buyers open to use the link.
versionintegerRequiredCurrent version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.
{
"completed_count": 3,
"created_at": "2026-03-17T14:30:00Z",
"custom_fields": [
{
"custom_field_type": "dropdown",
"key": "meal_preference",
"label": "Meal preference",
"options": [
"Vegetarian",
"Chicken",
"Fish"
],
"payment_link_custom_field_id": "plcf_01KEZF7C00QNHSJ1VY3MASHT73",
"required": true
}
],
"delivery_method_ids": [],
"description": "Event checkout",
"event_config": {
"event_at": "2027-05-12T19:00:00Z",
"max_total_quantity": 500,
"send_ticket_emails": true,
"ticket_prefix": "GAL",
"timezone": "America/New_York",
"venue": "Pier 57, New York"
},
"image": {
"alt": "Spring gala",
"height": 900,
"url": "https://images.withflintpay.com/ia_spring_gala/original",
"width": 1600
},
"line_items": [
{
"is_catalog_item_unavailable": false,
"key": "general-admission",
"name": "General Admission",
"payment_link_line_item_id": "plli_01KEZF7C0050J6WVC0XHSD9WSS",
"product_type": null,
"quantity": 1,
"type": "custom_fixed",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"metadata": {
"campaign": "spring-gala"
},
"name": "Spring Gala",
"payment_link_id": "pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"payment_link_type": "event",
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
},
"status": "active",
"total_quantity_sold": 42,
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://checkout.withflintpay.com/pay/pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"version": 1
}List payment links#
/v1/payment-linksRequires scope checkouts.payment_links.read or checkouts.payment_links.write
Rate limit: read
Returns a paginated list of payment links for the authenticated merchant. Default order: created_at descending, then payment_link_id descending.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
statusarray of enumFilter by payment link status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
activeinactive
external_reference_idstringExact-match filter on the caller-owned external reference ID.
querystringSearch across payment link ID, external reference ID, name, and description. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as pl_01.
payment_link_typearray of enumFilter by payment link type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
standarddonationevent
has_subscription_planbooleanFilter by whether the payment link references a subscription plan.
sort_byenumField to sort by. Defaults to created_at; ties are broken by payment_link_id.
created_atupdated_at
sort_directionenumSort direction. Defaults to desc.
ascdesc
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
expandarray of enumInclude related objects in the response. Supported expansions: sales_summary, subscription_plan. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
sales_summarysubscription_plan
Response · 200
A page of payment links.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
checkout_session_expires_in_secondsintegerSeconds each checkout session the link starts stays open, from 60 to 86,400. Omit it to use your checkout settings, or 24 hours. It doesn't end the link; use sales_end_at for that.
completed_countintegerRequiredNumber of paid checkout sessions started from this link.
created_atstringRequiredRFC3339 timestamp.
custom_fieldsarray of objectQuestions buyers answer before paying. Answers are recorded on the order and checkout session in `custom_field_answers`.
custom_textobjectCustom text for checkouts started from this link.
delivery_method_idsarray of stringRequiredDelivery methods the link offers. Empty when the link has none, and then its checkouts offer settings.checkout.default_delivery_method_ids when the order has items to deliver.
descriptionstringText about what the link sells, returned to buyers when they open it.
donation_max_amount_moneyobjectLargest amount a buyer can give on a donation link. Must be greater than zero and greater than or equal to donation_min_amount_money. Omit on create for no maximum.
donation_min_amount_moneyobjectSmallest amount a buyer can give on a donation link.
donation_suggested_amount_money_optionsarray of objectAmounts a donation link offers as one-tap choices. Use the same currency for all suggested amounts and both bounds.
event_configobjectEvent details for an `event` link: when and where it takes place and how many tickets it sells.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imageobjectImage shown to buyers with the link.
inactive_messagestringMessage to show the buyer when the link is inactive.
inventory_routing_sourceobjectThe inventory location or routing policy that supplies stock for the link's catalog lines. Absent when using the implicit single-Location fallback, which is evaluated again on use.
legalobjectThe terms and policy links checkouts started from this link show the buyer.
line_itemsarray of one ofWhat the link sells.
max_completionsintegerMost payments the link accepts, counted by `completed_count`. Absent means no limit. Once the limit is reached, resolving the link fails with a request error. It can't be set below `completed_count`.
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.
namestringRequiredName of the payment link.
payment_link_idstringRequiredUnique identifier for this payment link, prefixed `pl_`.
payment_link_typeenumWhat kind of link this is.
standarddonationevent
paymentsobjectPayment options for checkouts started from this link.
platform_fee_ruleobjectThe platform fee rule copied to checkouts started from this link.
promotion_configobjectWhether automatic promotions apply to checkouts started from this link and whether buyers can enter promotion codes.
redirectsobjectWhere checkout sessions started from this payment link send the buyer after payment, cancellation, or expiration.
sales_end_atstringRFC3339 timestamp after which the link stops starting checkouts and resolve fails with `ACTION_NOT_ALLOWED` and reason `not_offered`. Unset means sales do not end on their own, except that an event link without sales_end_at stops selling at event_config.event_at. A checkout opened before the end can still start payment for up to 15 minutes after it.
sales_start_atstringRFC3339 timestamp when buyers can first start a checkout from this link. Stored to nanosecond precision. Before it, resolve fails with ACTION_NOT_ALLOWED and reason sales_not_started. Must be earlier than the link’s sales end, including the event start when no explicit end is set.
sales_summaryobjectPresent only with expand=sales_summary on GET /v1/payment-links or GET /v1/payment-links/{payment_link_id}. Available to merchant callers, including dashboard sessions and API keys with checkouts.payment_links.read. Uses the same paid-order definition as the merchant sales summary.
statusenumRequiredWhether the link can start new checkouts.
activeinactive
subscription_planobject or nullPresent only when `expand` includes `subscription_plan`; `null` when expanded and there is no related subscription plan.
subscription_plan_idstringID of the subscription plan the link sells. Absent for a link that doesn't sell a subscription.
taxobjectTax settings for checkouts started from this link.
themeobjectThe title and colors for checkouts started from this link, over your branding settings.
tipobjectTip options for checkouts started from this link.
total_quantity_soldintegerRequiredWhole-number quantity; fractional quantities are not supported.
updated_atstringRequiredRFC3339 timestamp.
urlstringRequiredURL buyers open to use the link.
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.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/payment-links \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of payment links.
{
"data": [
{
"completed_count": 3,
"created_at": "2026-03-17T14:30:00Z",
"custom_fields": [
{
"custom_field_type": "dropdown",
"key": "meal_preference",
"label": "Meal preference",
"options": [
"Vegetarian",
"Chicken",
"Fish"
],
"payment_link_custom_field_id": "plcf_01KEZF7C00QNHSJ1VY3MASHT73",
"required": true
}
],
"delivery_method_ids": [],
"description": "Event checkout",
"event_config": {
"event_at": "2027-05-12T19:00:00Z",
"max_total_quantity": 500,
"send_ticket_emails": true,
"ticket_prefix": "GAL",
"timezone": "America/New_York",
"venue": "Pier 57, New York"
},
"image": {
"alt": "Spring gala",
"height": 900,
"url": "https://images.withflintpay.com/ia_spring_gala/original",
"width": 1600
},
"line_items": [
{
"is_catalog_item_unavailable": false,
"key": "general-admission",
"name": "General Admission",
"payment_link_line_item_id": "plli_01KEZF7C0050J6WVC0XHSD9WSS",
"product_type": null,
"quantity": 1,
"type": "custom_fixed",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"metadata": {
"campaign": "spring-gala"
},
"name": "Spring Gala",
"payment_link_id": "pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"payment_link_type": "event",
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
},
"status": "active",
"total_quantity_sold": 42,
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://checkout.withflintpay.com/pay/pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6KYHNCYZT9WFAY60ZNXNT"
}Create payment link#
/v1/payment-linksIdempotentRequires scope checkouts.payment_links.write
Rate limit: write
Creates a payment link for the authenticated merchant. Line items may use fixed prices, buyer-adjustable amounts, and buyer-adjustable quantities.
Request body
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
address_autocomplete_enabledbooleanWhether checkout offers address suggestions while the buyer enters an address.
require_billing_addressbooleanWhether checkout requires the buyer's billing address.
require_emailbooleanWhether checkout requires the buyer's email address. Subscription plan sessions always require email, so only true is allowed with type: subscription_plan.
require_phonebooleanWhether checkout requires the buyer's phone number.
checkout_session_expires_in_secondsintegerSeconds each checkout session the link starts stays open, from 60 to 86,400. Omit it to use your checkout settings, or 24 hours. It doesn't end the link; use sales_end_at for that.
custom_fieldsarray of objectQuestions buyers answer before paying. Answers are recorded on the order and checkout session in `custom_field_answers`.
custom_field_typeenumRequiredWhat kind of answer the field collects.
textdropdowncheckboxtextarea
keystringRequiredUnique custom field key, without leading or trailing whitespace. Each answer records it as `custom_field_answers[].key`.
labelstringRequiredQuestion shown to the buyer.
max_lengthintegerMaximum answer length for text and textarea fields, counted in Unicode code points. Defaults to 255 for text and 1000 for textarea when omitted.
optionsarray of stringDropdown choices. Dropdown fields require at least one option. Options must not have leading or trailing whitespace.
placeholderstringHint text shown inside the empty field.
positionintegerDisplay order among the link's custom fields. Lower numbers come first.
requiredbooleanWhether the buyer must answer before paying.
custom_textobjectCustom text for checkouts started from this link.
order_summary_messagestringMessage shown near the order summary in checkout.
shipping_address_labelstringLabel shown for the shipping address in checkout.
delivery_method_idsarray of stringComplete delivery method selection for the link. A link without delivery methods offers settings.checkout.default_delivery_method_ids when its order has items to deliver. Send an empty array to clear the selection. Omit it on PATCH to leave the selection unchanged. Null and duplicate IDs are not accepted. Create, activation, and edits to items, delivery methods, or inventory routing require explicit methods or checkout defaults to cover the items' delivery profiles; otherwise ACTION_NOT_ALLOWED with reason configuration_required is returned.
descriptionstringText about what the link sells, returned to buyers when they open it.
donation_max_amount_moneyobjectLargest amount a buyer can give on a donation link. Must be greater than zero and greater than or equal to donation_min_amount_money. Omit on create for no maximum.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_min_amount_moneyobjectSmallest amount a buyer can give on a donation link.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_suggested_amount_money_optionsarray of objectAmounts a donation link offers as one-tap choices. Use the same currency for all suggested amounts and both bounds.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
event_configobjectEvent details for an `event` link: when and where it takes place and how many tickets it sells.
collect_attendee_namesbooleanWhether resolving the link requires `attendee_names`, one name per ticket. Flint copies the names onto the tickets when the order is paid. Defaults to false.
event_atstringRequiredRFC3339 timestamp.
max_total_quantityinteger or nullMost tickets the event sells across all orders. `null` when the event has no ticket limit. On update, send null to remove the limit; a value below the tickets already sold or held by payments in progress fails with `LIMIT_EXCEEDED`. Whole-number quantity; fractional quantities are not supported.
send_ticket_emailsbooleanWhether Flint emails tickets to buyers after they pay.
ticket_prefixstringPrefix for ticket numbers, up to 5 characters. It cannot change after the event has issued tickets.
timezonestringRequiredIANA time zone of the event venue, used to show `event_at` as venue time.
venuestringWhere the event takes place.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imageone ofImage shown to buyers with the link.
Send exactly one of these
The `Source URL` variant of `ImageInput`.
altstringAlternative text describing the image for accessibility.
source_referencestringAn opaque reference for this attachment, unique within its gallery. Whitespace and case are preserved.
source_urlstringRequiredA public image URL for Flint to fetch, or an untransformed canonical image.url returned by Flint. Send exactly one of source_url or file_id. Canonical Flint URLs attach without another fetch. Flint doesn't download a source_url again while the image it produced is still in this field.
inactive_messagestringMessage to show the buyer when the link is inactive.
inventory_routing_sourceone ofRouting source for tracked demand. When omitted, Flint stores settings.inventory.default_routing_source if set. Otherwise, Flint uses the active Location in the current environment that has had inventory allocation enabled the longest. The link resolves that fallback again each time it is used. If no Location is eligible, send a routing source or configure the merchant default. Create, activation, and sellability edits require at least one active routing location with inventory_allocation_enabled; temporary stock shortages do not prevent these writes.
Send exactly one of these
The `fixed_location` variant of `InventoryRoutingSourceInput`.
location_idstringRequiredID of the fixed Location that serves all demand.
typeenumRequiredHow Flint routes demand to Locations.
fixed_location
legalobjectThe terms and policy links checkouts started from this link show the buyer.
contract_urlstringAn `https://` URL of the contract the buyer agrees to, linked in checkout.
refund_policy_urlstringAn `https://` URL of your refund policy, linked in checkout.
require_terms_of_servicebooleanWhether the buyer must accept the terms of service before paying.
shipping_policy_urlstringAn `https://` URL of your shipping policy, linked in checkout.
terms_of_service_urlstringAn `https://` URL of your terms of service, linked in checkout.
line_itemsarray of one ofWhat the link sells.
Send exactly one of these
The `variant` variant of `PaymentLinkLineItemInput`.
allow_quantity_adjustmentbooleanWhether the buyer can change the quantity in checkout.
default_variant_idstringVariant selected when the page opens and used at resolve when the buyer omits a selection. Must be in variant_ids. Omit it to require a buyer selection.
keystringKeys the resolve override maps. Stable line item key used in checkout overrides. Must not have leading or trailing whitespace. Assigned as line_item_1, line_item_2, and so on when omitted, skipping numbers already used by explicit keys; retained for an existing line item when omitted on update.
max_quantityintegerWhole-number quantity; fractional quantities are not supported.
max_total_quantityintegerOptional whole-number admission capacity across all orders for an event tier; fractional quantities are not supported. Must be at least 1 and cannot exceed event_config.max_total_quantity when the event is capped. Omit for no tier cap; omitting it in a line_items replacement removes an existing cap.
min_quantityintegerWhole-number quantity; fractional quantities are not supported.
quantityintegerWhole-number default quantity; fractional quantities are not supported. Omission uses 1. Must be at least 1 for standard links; event tiers also accept 0.
typeenumRequiredHow the line item is defined.
variant
variant_idstringID of the catalog variant a `variant` line sells.
variant_idsarray of stringVariant IDs buyers may choose from, in the order offered. Contains 1 to 100 unique, active, sellable variants of one product in one currency. Available only on standard payment links. Mutually exclusive with variant_id, bundle_id, and ad hoc line item fields.
max_completionsintegerMost payments the link accepts, counted by `completed_count`. Absent means no limit. Once the limit is reached, resolving the link fails with a request error. It can't be set below `completed_count`.
metadatamap of stringCaller-owned metadata. 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. At most 44 pairs, because Flint reserves 6 of the order's 50 metadata pairs. Metadata keys and values plus Flint's metadata must fit within 32768 UTF-8 bytes. Custom fields don't count toward either limit. These limits apply to standard and plan links and are checked against the merged configuration on update.
namestringRequiredName of the payment link. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
payment_link_typeenumPayment link type. Omit to use standard. Explicit values must be standard, donation, or event; empty or padded values are invalid.
standarddonationevent
paymentsobjectPayment options for checkouts started from this link.
enabled_payment_optionsarray of enumPayment options for this payment link. Checkout offers only the options that are also enabled in settings.checkout.enabled_payment_options; omit the list to use that setting.
cardapple_paygoogle_payaffirmach_debit
payment_notestringA note shown to the buyer with the payment options.
platform_fee_ruleobjectThe platform fee rule copied to checkouts started from this link. Only a partner app install token can set or remove a platform fee rule.
fixed_fee_moneyobjectThe fixed amount per payment.
maximum_fee_moneyobjectThe maximum fee per payment, at least the fixed amount.
percentnumberRequiredPercent of the amount collected. Zero requires fixed_fee_money.
promotion_configobjectWhether automatic promotions apply to checkouts started from this link and whether buyers can enter promotion codes.
automatic_enabledbooleanWhether automatic promotions apply to this checkout. Send false to stop them here. True can't turn them back on when your promotion settings have them off.
codes_enabledboolean or nullObject-level override for whether this checkout's buyer can apply promotion codes, hosted or headless. Omit to inherit the payment link and checkout.promotion_codes_enabled. When all are unset, hosted checkout offers code entry only while an active code promotion exists in this environment; read can_apply_promotion_code on the session. True allows codes when the merchant's promotion settings allow them; false blocks them for this checkout. `null` when this checkout inherits checkout.promotion_codes_enabled.
redirectsobjectWhere checkout sessions started from this payment link send the buyer after payment, cancellation, or expiration.
cancel_urlstringWhere the buyer goes when they leave checkout without paying. The session stays open until it expires. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
expired_urlstringWhere Flint sends a buyer who opens the session after it expires. Without it, the buyer sees Flint's expired-checkout page. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
success_urlstringWhere the buyer goes after paying. Flint adds checkout_session_id and order_id query parameters, replacing any with those names. The redirect doesn't prove payment: confirm with the order.paid webhook or by reading the session. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters.
sales_end_atstringRFC3339 timestamp after which the link stops starting checkouts and resolve fails with `ACTION_NOT_ALLOWED` and reason `not_offered`. Unset means sales do not end on their own, except that an event link without sales_end_at stops selling at event_config.event_at. A checkout opened before the end can still start payment for up to 15 minutes after it.
sales_start_atstringRFC3339 timestamp when buyers can first start a checkout from this link. Stored to nanosecond precision. Before it, resolve fails with ACTION_NOT_ALLOWED and reason sales_not_started. Must be earlier than the link’s sales end, including the event start when no explicit end is set.
subscription_plan_idstringID of the subscription plan the link sells. The plan must be active. Omit it for a link that doesn't sell a subscription. It can't be changed after the link is created.
taxobjectTax settings for checkouts started from this link.
calculationobjectHow the order Flint creates calculates tax while tax is enabled. Omitted when it follows `tax.default_calculation` from your settings, where a `provided` default means automatic. On a payment link update, send null to follow your settings again.
enabledbooleanWhether Flint calculates tax on the order it creates for this checkout. Omit to use tax.default_enabled from your settings.
themeobjectThe title and colors for checkouts started from this link, over your branding settings.
accent_colorstringAccent color of the checkout, such as #1A73E8.
primary_colorstringPrimary color of the checkout, such as #1A73E8.
titlestringTitle shown in place of the merchant's business name.
tipobjectTip options for checkouts started from this link.
custom_tip_enabledbooleanWhether buyers can enter a custom tip amount.
default_smart_tip_moneyobjectThe preselected fixed tip, with a positive amount in the same currency as smart_tip_money_options. Its amount and currency must match one of the effective smart_tip_money_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped.
default_tip_percentnumberThe preselected tip percent, from 1 through 100 with at most four decimal places. Must match one of the effective tip_percent_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped, and checkout preselects no tip.
enabledbooleanWhether checkout offers a tip. Omit it to follow the merchant's tipping settings. Subscription signups don't inherit that setting or its preselected tip: they offer a tip only when this is true, and the tip is collected once, with the signup payment. A signup with nothing due today, such as a free trial, offers none. Renewals don't include it.
smart_tip_money_optionsarray of objectThree fixed tips to offer, each with a positive amount. On a checkout session they must use the session's currency. On a payment link they must share one currency, and a checkout opened from the link offers only those in its currency.
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.
Response · 201
The created payment link.
dataobjectRequiredResource, collection, or operation result returned by this request.
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
checkout_session_expires_in_secondsintegerSeconds each checkout session the link starts stays open, from 60 to 86,400. Omit it to use your checkout settings, or 24 hours. It doesn't end the link; use sales_end_at for that.
completed_countintegerRequiredNumber of paid checkout sessions started from this link.
created_atstringRequiredRFC3339 timestamp.
custom_fieldsarray of objectQuestions buyers answer before paying. Answers are recorded on the order and checkout session in `custom_field_answers`.
custom_textobjectCustom text for checkouts started from this link.
delivery_method_idsarray of stringRequiredDelivery methods the link offers. Empty when the link has none, and then its checkouts offer settings.checkout.default_delivery_method_ids when the order has items to deliver.
descriptionstringText about what the link sells, returned to buyers when they open it.
donation_max_amount_moneyobjectLargest amount a buyer can give on a donation link. Must be greater than zero and greater than or equal to donation_min_amount_money. Omit on create for no maximum.
donation_min_amount_moneyobjectSmallest amount a buyer can give on a donation link.
donation_suggested_amount_money_optionsarray of objectAmounts a donation link offers as one-tap choices. Use the same currency for all suggested amounts and both bounds.
event_configobjectEvent details for an `event` link: when and where it takes place and how many tickets it sells.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imageobjectImage shown to buyers with the link.
inactive_messagestringMessage to show the buyer when the link is inactive.
inventory_routing_sourceobjectThe inventory location or routing policy that supplies stock for the link's catalog lines. Absent when using the implicit single-Location fallback, which is evaluated again on use.
legalobjectThe terms and policy links checkouts started from this link show the buyer.
line_itemsarray of one ofWhat the link sells.
max_completionsintegerMost payments the link accepts, counted by `completed_count`. Absent means no limit. Once the limit is reached, resolving the link fails with a request error. It can't be set below `completed_count`.
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.
namestringRequiredName of the payment link.
payment_link_idstringRequiredUnique identifier for this payment link, prefixed `pl_`.
payment_link_typeenumWhat kind of link this is.
standarddonationevent
paymentsobjectPayment options for checkouts started from this link.
platform_fee_ruleobjectThe platform fee rule copied to checkouts started from this link.
promotion_configobjectWhether automatic promotions apply to checkouts started from this link and whether buyers can enter promotion codes.
redirectsobjectWhere checkout sessions started from this payment link send the buyer after payment, cancellation, or expiration.
sales_end_atstringRFC3339 timestamp after which the link stops starting checkouts and resolve fails with `ACTION_NOT_ALLOWED` and reason `not_offered`. Unset means sales do not end on their own, except that an event link without sales_end_at stops selling at event_config.event_at. A checkout opened before the end can still start payment for up to 15 minutes after it.
sales_start_atstringRFC3339 timestamp when buyers can first start a checkout from this link. Stored to nanosecond precision. Before it, resolve fails with ACTION_NOT_ALLOWED and reason sales_not_started. Must be earlier than the link’s sales end, including the event start when no explicit end is set.
sales_summaryobjectPresent only with expand=sales_summary on GET /v1/payment-links or GET /v1/payment-links/{payment_link_id}. Available to merchant callers, including dashboard sessions and API keys with checkouts.payment_links.read. Uses the same paid-order definition as the merchant sales summary.
statusenumRequiredWhether the link can start new checkouts.
activeinactive
subscription_planobject or nullPresent only when `expand` includes `subscription_plan`; `null` when expanded and there is no related subscription plan.
subscription_plan_idstringID of the subscription plan the link sells. Absent for a link that doesn't sell a subscription.
taxobjectTax settings for checkouts started from this link.
themeobjectThe title and colors for checkouts started from this link, over your branding settings.
tipobjectTip options for checkouts started from this link.
total_quantity_soldintegerRequiredWhole-number quantity; fractional quantities are not supported.
updated_atstringRequiredRFC3339 timestamp.
urlstringRequiredURL buyers open to use the link.
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 -X POST https://api.withflintpay.com/v1/payment-links \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"custom_fields": [
{
"custom_field_type": "dropdown",
"key": "meal_preference",
"label": "Meal preference",
"options": [
"Vegetarian",
"Chicken",
"Fish"
],
"required": true
}
],
"event_config": {
"event_at": "2027-05-12T19:00:00Z",
"max_total_quantity": 500,
"send_ticket_emails": true,
"ticket_prefix": "GAL",
"timezone": "America/New_York",
"venue": "Pier 57, New York"
},
"line_items": [
{
"name": "General Admission",
"quantity": 1,
"type": "custom_fixed",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
},
{
"allow_unit_price_adjustment": true,
"key": "donation",
"max_unit_price_money": {
"amount": 10000,
"currency": "USD"
},
"min_unit_price_money": {
"amount": 100,
"currency": "USD"
},
"name": "Optional Donation",
"quantity": 1,
"suggested_unit_price_money_options": [
{
"amount": 500,
"currency": "USD"
},
{
"amount": 1000,
"currency": "USD"
},
{
"amount": 2500,
"currency": "USD"
}
],
"type": "custom_variable"
}
],
"metadata": {
"campaign": "spring-gala"
},
"name": "Spring Gala",
"payment_link_type": "event",
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
}
}'Get payment link#
/v1/payment-links/{payment_link_id}Requires scope checkouts.payment_links.read or checkouts.payment_links.write
Rate limit: read
Returns a single payment link by ID. With expand=sales_summary, includes gross paid totals and refunded totals per currency.
Path parameters
payment_link_idstringRequiredFlint payment link ID. Must be a valid ID with prefix pl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: sales_summary, subscription_plan. sales_summary requires checkouts.payment_links.read and is also available to dashboard sessions. subscription_plan additionally requires commerce.subscription_plans.read. sales_summary is supported only on this get route. Limits: at most 10 unique expand paths per request.
sales_summarysubscription_plan
curl https://api.withflintpay.com/v1/payment-links/pl_01KEZF7C007WDMA5P9BPZ8J2AM \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The requested payment link.
{
"data": {
"completed_count": 3,
"created_at": "2026-03-17T14:30:00Z",
"custom_fields": [
{
"custom_field_type": "dropdown",
"key": "meal_preference",
"label": "Meal preference",
"options": [
"Vegetarian",
"Chicken",
"Fish"
],
"payment_link_custom_field_id": "plcf_01KEZF7C00QNHSJ1VY3MASHT73",
"required": true
}
],
"delivery_method_ids": [],
"description": "Event checkout",
"event_config": {
"event_at": "2027-05-12T19:00:00Z",
"max_total_quantity": 500,
"send_ticket_emails": true,
"ticket_prefix": "GAL",
"timezone": "America/New_York",
"venue": "Pier 57, New York"
},
"image": {
"alt": "Spring gala",
"height": 900,
"url": "https://images.withflintpay.com/ia_spring_gala/original",
"width": 1600
},
"line_items": [
{
"is_catalog_item_unavailable": false,
"key": "general-admission",
"name": "General Admission",
"payment_link_line_item_id": "plli_01KEZF7C0050J6WVC0XHSD9WSS",
"product_type": null,
"quantity": 1,
"type": "custom_fixed",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"metadata": {
"campaign": "spring-gala"
},
"name": "Spring Gala",
"payment_link_id": "pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"payment_link_type": "event",
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
},
"status": "active",
"total_quantity_sold": 42,
"updated_at": "2026-03-17T14:30:00Z",
"url": "https://checkout.withflintpay.com/pay/pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6KYHNCYZT9WFAY60ZNXNT"
}Update payment link#
/v1/payment-links/{payment_link_id}IdempotentRequires scope checkouts.payment_links.write
Rate limit: write
Updates a payment link. Setting `status` to `inactive` closes its open, unpaid checkout sessions. Payments already in progress can finish. To replace line items, custom fields, or delivery methods, send the complete array with `expected_version`. To replace or remove a platform fee rule, send `platform_fee_rule` with `expected_version`.
Path parameters
payment_link_idstringRequiredFlint payment link ID. Must be a valid ID with prefix pl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
address_autocomplete_enabledbooleanWhether checkout offers address suggestions while the buyer enters an address.
require_billing_addressbooleanWhether checkout requires the buyer's billing address.
require_emailbooleanWhether checkout requires the buyer's email address. Subscription plan sessions always require email, so only true is allowed with type: subscription_plan.
require_phonebooleanWhether checkout requires the buyer's phone number.
checkout_session_expires_in_secondsintegerSeconds each checkout session the link starts stays open, from 60 to 86,400. Omit it to use your checkout settings, or 24 hours. It doesn't end the link; use sales_end_at for that.
custom_fieldsarray of objectReplaces all custom fields atomically. Include an existing payment_link_custom_field_id to retain that member, omit the ID to create a member, and omit a previous member to remove it. Send an empty array to clear all custom fields, omit custom_fields to leave it unchanged, and do not send null.
custom_field_typeenumRequiredWhat kind of answer the field collects.
textdropdowncheckboxtextarea
keystringRequiredUnique custom field key, without leading or trailing whitespace. Each answer records it as `custom_field_answers[].key`.
labelstringRequiredQuestion shown to the buyer.
max_lengthintegerMaximum answer length for text and textarea fields, counted in Unicode code points. Defaults to 255 for text and 1000 for textarea when omitted.
optionsarray of stringDropdown choices. Dropdown fields require at least one option. Options must not have leading or trailing whitespace.
payment_link_custom_field_idstringStable ID of an existing custom field. Omit it to create a new custom field.
placeholderstringHint text shown inside the empty field.
positionintegerDisplay order among the link's custom fields. Lower numbers come first.
requiredbooleanWhether the buyer must answer before paying.
custom_textobjectCustom text for checkouts started from this link.
order_summary_messagestring or nullSend null to clear it.
shipping_address_labelstring or nullSend null to clear it.
delivery_method_idsarray of stringComplete delivery method selection for the link. A link without delivery methods offers settings.checkout.default_delivery_method_ids when its order has items to deliver. Send an empty array to clear the selection. Omit it on PATCH to leave the selection unchanged. Null and duplicate IDs are not accepted. Create, activation, and edits to items, delivery methods, or inventory routing require explicit methods or checkout defaults to cover the items' delivery profiles; otherwise ACTION_NOT_ALLOWED with reason configuration_required is returned.
descriptionstring or nullText about what the link sells, returned to buyers when they open it. Send null to clear.
donation_max_amount_moneyobject or nullMaximum donation amount. Must be greater than zero and greater than or equal to donation_min_amount_money. Send null to clear the maximum.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_min_amount_moneyobject or nullMinimum donation amount. Send null to clear the minimum. Send null to clear.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
donation_suggested_amount_money_optionsarray of objectSuggested donation amounts. Send an empty array to clear suggested amounts.
amountintegerRequiredPositive amount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
event_configobjectEvent configuration patch. Omit to leave unchanged. The whole configuration cannot be cleared; null is not accepted.
collect_attendee_namesbooleanWhether resolving the link requires `attendee_names`, one name per ticket. Flint copies the names onto the tickets when the order is paid. Defaults to false.
event_atstringRFC3339 timestamp.
max_total_quantityinteger or nullMost tickets the event sells across all orders. `null` when the event has no ticket limit. On update, send null to remove the limit; a value below the tickets already sold or held by payments in progress fails with `LIMIT_EXCEEDED`. Whole-number quantity; fractional quantities are not supported.
send_ticket_emailsbooleanWhether Flint emails tickets to buyers after they pay.
ticket_prefixstring or nullPrefix for ticket numbers, up to 5 characters. It cannot change after the event has issued tickets. Send null to clear it.
timezonestringIANA time zone of the event venue, used to show `event_at` as venue time.
venuestring or nullSend null to clear it.
expected_versionintegerPayment link version last read by the caller. Required when line_items, custom_fields, delivery_method_ids, or platform_fee_rule is present.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear.
imageone of or nullImage shown to buyers with the link. Send null to clear.
Send exactly one of these
The `Source URL` variant of `ImageInput`.
altstringAlternative text describing the image for accessibility.
source_referencestringAn opaque reference for this attachment, unique within its gallery. Whitespace and case are preserved.
source_urlstringRequiredA public image URL for Flint to fetch, or an untransformed canonical image.url returned by Flint. Send exactly one of source_url or file_id. Canonical Flint URLs attach without another fetch. Flint doesn't download a source_url again while the image it produced is still in this field.
inactive_messagestring or nullMessage to show the buyer when the link is inactive. Send null to clear.
inventory_routing_sourceone ofRouting source for tracked demand. When omitted, Flint stores settings.inventory.default_routing_source if set. Otherwise, Flint uses the active Location in the current environment that has had inventory allocation enabled the longest. The link resolves that fallback again each time it is used. If no Location is eligible, send a routing source or configure the merchant default. Create, activation, and sellability edits require at least one active routing location with inventory_allocation_enabled; temporary stock shortages do not prevent these writes.
Send exactly one of these
The `fixed_location` variant of `InventoryRoutingSourceInput`.
location_idstringRequiredID of the fixed Location that serves all demand.
typeenumRequiredHow Flint routes demand to Locations.
fixed_location
legalobjectThe terms and policy links checkouts started from this link show the buyer.
contract_urlstring or nullSend null to clear it.
refund_policy_urlstring or nullSend null to clear it.
require_terms_of_servicebooleanWhether the buyer must accept the terms of service before paying.
shipping_policy_urlstring or nullSend null to clear it.
terms_of_service_urlstring or nullSend null to clear it.
line_itemsarray of one ofReplaces all line items atomically. Include an existing payment_link_line_item_id to retain that member, omit the ID to create a member, and omit a previous member to remove it. Omit line_items to leave it unchanged. Null is not accepted.
Send exactly one of these
The `variant` variant of `PaymentLinkLineItemPatchInput`.
allow_quantity_adjustmentbooleanWhether the buyer can change the quantity in checkout.
default_variant_idstring or nullVariant selected when the page opens and used at resolve when the buyer omits a selection. Must be in variant_ids. Omit it to require a buyer selection. Send null to clear it.
keystringKeys the resolve override maps. Stable line item key used in checkout overrides. Must not have leading or trailing whitespace. Assigned as line_item_1, line_item_2, and so on when omitted, skipping numbers already used by explicit keys; retained for an existing line item when omitted on update.
max_quantityintegerWhole-number quantity; fractional quantities are not supported.
max_total_quantityintegerOptional whole-number admission capacity across all orders for an event tier; fractional quantities are not supported. Must be at least 1 and cannot exceed event_config.max_total_quantity when the event is capped. Omit for no tier cap; omitting it in a line_items replacement removes an existing cap.
min_quantityintegerWhole-number quantity; fractional quantities are not supported.
payment_link_line_item_idstringStable ID of an existing line item. Omit it to create a new line item.
quantityintegerWhole-number default quantity; fractional quantities are not supported. Omission uses 1. Must be at least 1 for standard links; event tiers also accept 0.
typeenumRequiredHow the line item is defined.
variant
variant_idstringID of the catalog variant a `variant` line sells.
variant_idsarray of stringVariant IDs buyers may choose from, in the order offered. Contains 1 to 100 unique, active, sellable variants of one product in one currency. Available only on standard payment links. Mutually exclusive with variant_id, bundle_id, and ad hoc line item fields.
max_completionsinteger or nullMost payments the link accepts, counted by `completed_count`. Absent means no limit. Once the limit is reached, resolving the link fails with a request error. It can't be set below `completed_count`. Send null to clear.
metadatamap of string or nullCaller-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. Send null to clear. At most 44 pairs, because Flint reserves 6 of the order's 50 metadata pairs. Metadata keys and values plus Flint's metadata must fit within 32768 UTF-8 bytes. Custom fields don't count toward either limit. These limits apply to standard and plan links and are checked against the merged configuration on update. This operation also limits the metadata object you send, before merging: at most 50 keys, counting null deletions, each key 1 to 256 Unicode code points, and at most 32768 UTF-8 bytes of keys plus values.
namestringName of the payment link. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
notify_ticket_holdersbooleanWhether to email existing ticket holders when event_at, timezone, or venue changes. Defaults to true for each update. Unchanged event details send no notice.
paymentsobjectPayment options for checkouts started from this link.
enabled_payment_optionsarray of enumPayment options for this payment link. Checkout offers only the options that are also enabled in settings.checkout.enabled_payment_options; omit the list to use that setting.
cardapple_paygoogle_payaffirmach_debit
payment_notestring or nullSend null to clear it.
platform_fee_ruleobject or nullReplace the whole rule or send null to remove it. Requires expected_version. Only a partner app install token can set or remove a platform fee rule.
fixed_fee_moneyobjectThe fixed amount per payment.
maximum_fee_moneyobjectThe maximum fee per payment, at least the fixed amount.
percentnumberRequiredPercent of the amount collected. Zero requires fixed_fee_money.
promotion_configobjectWhether automatic promotions apply to checkouts started from this link and whether buyers can enter promotion codes.
automatic_enabledbooleanWhether automatic promotions apply to this checkout. Send false to stop them here. True can't turn them back on when your promotion settings have them off.
codes_enabledboolean or nullObject-level override for whether this checkout's buyer can apply promotion codes, hosted or headless. Omit to inherit the payment link and checkout.promotion_codes_enabled. When all are unset, hosted checkout offers code entry only while an active code promotion exists in this environment; read can_apply_promotion_code on the session. True allows codes when the merchant's promotion settings allow them; false blocks them for this checkout. `null` when this checkout inherits checkout.promotion_codes_enabled.
redirectsobjectWhere checkout sessions started from this payment link send the buyer after payment, cancellation, or expiration.
cancel_urlstring or nullWhere the buyer goes when they leave checkout without paying. The session stays open until it expires. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters. Send null to clear it.
expired_urlstring or nullWhere Flint sends a buyer who opens the session after it expires. Without it, the buyer sees Flint's expired-checkout page. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters. Send null to clear it.
success_urlstring or nullWhere the buyer goes after paying. Flint adds checkout_session_id and order_id query parameters, replacing any with those names. The redirect doesn't prove payment: confirm with the order.paid webhook or by reading the session. Absolute HTTPS URL; test mode also accepts HTTP loopback URLs. Up to 2,048 characters. Send null to clear it.
sales_end_atstring or nullRFC3339 timestamp after which the link stops starting checkouts and resolve fails with `ACTION_NOT_ALLOWED` and reason `not_offered`. Unset means sales do not end on their own, except that an event link without sales_end_at stops selling at event_config.event_at. A checkout opened before the end can still start payment for up to 15 minutes after it. Send null to clear it.
sales_start_atstring or nullRFC3339 timestamp when buyers can first start a checkout from this link. Stored to nanosecond precision. Before it, resolve fails with ACTION_NOT_ALLOWED and reason sales_not_started. Must be earlier than the link’s sales end, including the event start when no explicit end is set. Send null to clear it.
statusenumWhether the link can start new checkouts.
activeinactive
taxobjectTax settings for checkouts started from this link.
calculationobjectHow the order Flint creates calculates tax while tax is enabled. Omitted when it follows `tax.default_calculation` from your settings, where a `provided` default means automatic. On a payment link update, send null to follow your settings again.
enabledbooleanWhether Flint calculates tax on the order it creates for this checkout. Omit to use tax.default_enabled from your settings.
themeobjectThe title and colors for checkouts started from this link, over your branding settings.
accent_colorstring or nullSend null to clear it.
primary_colorstring or nullSend null to clear it.
titlestring or nullSend null to clear it.
tipobjectTip options for checkouts started from this link.
custom_tip_enabledbooleanWhether buyers can enter a custom tip amount.
default_smart_tip_moneyobjectThe preselected fixed tip, with a positive amount in the same currency as smart_tip_money_options. Its amount and currency must match one of the effective smart_tip_money_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped.
default_tip_percentnumberThe preselected tip percent, from 1 through 100 with at most four decimal places. Must match one of the effective tip_percent_options: the ones sent here, or else the ones inherited from tipping settings. An inherited preselection that isn't one of the effective options is dropped, and checkout preselects no tip.
enabledbooleanWhether checkout offers a tip. Omit it to follow the merchant's tipping settings. Subscription signups don't inherit that setting or its preselected tip: they offer a tip only when this is true, and the tip is collected once, with the signup payment. A signup with nothing due today, such as a free trial, offers none. Renewals don't include it.
smart_tip_money_optionsarray of objectThree fixed tips to offer, each with a positive amount. On a checkout session they must use the session's currency. On a payment link they must share one currency, and a checkout opened from the link offers only those in its currency.
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/payment-links/pl_01KEZF7C007WDMA5P9BPZ8J2AM \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"description": "Updated public description",
"event_config": {
"venue": "Pier 59, New York"
},
"expected_version": 3,
"inactive_message": "Sales are currently paused.",
"max_completions": 100,
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
}
}'Get public payment link#
/v1/payment-links/{payment_link_id}/publicNo API key required
Rate limit: per IP
Returns the sanitized buyer-facing payment-link snapshot and a private resolution context for this browser operation.
Path parameters
payment_link_idstringRequiredFlint payment link ID. Must be a valid ID with prefix pl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
The public payment link and private resolution context.
dataobjectRequiredResource, collection, or operation result returned by this request.
checkout_start_due_atstringRequiredStart a new checkout before this instant. At or after it, read the public payment link again for a new resolution_context; its credential expiry is resolution_context_expires_at.
checkout_themeobjectThe theme a checkout opened from this link uses: your checkout branding settings, with the link's own `theme` over them. Use it to style a page that leads to the checkout. `payment_link.theme` is the link's own theme alone. Omitted when neither sets a value. It includes the branding settings' `background_color`, `text_color`, `font_family`, and `corner_radius`.
is_before_sales_startbooleanTrue before the payment link’s scheduled sales start. Omitted otherwise.
is_past_sales_endbooleanRequiredTrue when the link's sales end has passed: payment_link.sales_end_at, or event_config.event_at for an event link without sales_end_at. Resolve then fails with `ACTION_NOT_ALLOWED` and reason `not_offered`.
is_sold_outbooleanRequiredTrue for an event when its overall capacity or every tier's capacity is exhausted. For other active links with tracked demand, true when any catalog line cannot be bought at its minimum quantity from the effective routing source, including the single-Location fallback. Untracked and ad hoc lines do not count. A choice line counts only when every offered variant is sold out. Fixed locations use available stock; policies use their allocatable locations. Stock is not reserved by this read.
merchant_iconobjectThe merchant's icon.
merchant_logoobjectThe merchant's logo.
merchant_namestringThe merchant's name.
merchant_supportobjectHow the buyer can reach the merchant for help: the support email, phone, and URL the merchant set. Omitted when the merchant set none.
payment_linkobjectRequiredThe payment link that was resolved.
remaining_quantityintegerEvent links with a ticket limit: tickets left after tickets sold and tickets held by payments in progress. Absent when the event has no ticket limit. Whole-number quantity; fractional quantities are not supported.
resolution_contextstringRequiredPrivate resolution context for this payment link. Send it unchanged to resolve the same link before checkout_start_due_at. The credential expires at resolution_context_expires_at. Keep the context private and do not cache this response; it is returned with Cache-Control: private, no-store.
resolution_context_expires_atstringRequiredRFC3339 timestamp when the resolution_context credential expires. The earlier checkout_start_due_at governs starting new checkouts; committed replay remains available until this expiry.
resolved_line_itemsarray of objectThe link's line items with their current catalog values.
show_flint_markbooleanRequiredWhether Flint's hosted pages show the Powered by Flint mark for this merchant. `false` when the merchant's agreement with Flint removes it.
subscription_previewobjectPresent for active plan-backed payment links when authoritative subscription terms are available.
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/payment-links/pl_01KEZF7C007WDMA5P9BPZ8J2AM/public \
-H "Flint-Version: 2026-09-07"The public payment link and private resolution context.
{
"data": {
"checkout_start_due_at": "2026-05-13T18:58:00Z",
"checkout_theme": {
"accent_color": "#f59e0b",
"background_color": "#ffffff",
"corner_radius": 12,
"font_family": "instrument_sans",
"primary_color": "#0f766e",
"text_color": "#1f2937"
},
"is_past_sales_end": false,
"is_sold_out": false,
"merchant_icon": {
"alt": "Merchant icon",
"height": 256,
"url": "https://images.withflintpay.com/ia_merchant_icon/original",
"width": 256
},
"merchant_logo": {
"alt": "Merchant logo",
"height": 512,
"url": "https://images.withflintpay.com/ia_merchant_logo/original",
"width": 512
},
"merchant_name": "Cedar & Stone Coffee",
"payment_link": {
"completed_count": 3,
"custom_fields": [
{
"custom_field_type": "dropdown",
"key": "roast_preference",
"label": "Roast preference",
"options": [
"Light",
"Medium",
"Dark"
],
"payment_link_custom_field_id": "plcf_01KEZF7C00QNHSJ1VY3MASHT73",
"required": true
}
],
"description": "Monthly coffee membership",
"image": {
"alt": "Monthly roast box",
"height": 800,
"url": "https://images.withflintpay.com/ia_roast_box/original",
"width": 1200
},
"name": "Roaster's club membership",
"payment_link_id": "pl_01KEZF7C00FEBVYY6R0DKKQRWX",
"payment_link_type": "standard",
"payments": {
"enabled_payment_options": [
"card",
"apple_pay",
"google_pay"
]
},
"status": "active",
"subscription_plan_id": "plan_01KEZF7C008KKWX51R5KFPPXHD",
"version": 1
},
"resolution_context": "plrc_v1.example_signed_resolution_context",
"resolution_context_expires_at": "2026-05-13T19:00:00Z",
"show_flint_mark": true,
"subscription_preview": {
"billing_interval": "monthly",
"billing_interval_count": 1,
"billing_interval_options": [
{
"billing_interval": "monthly",
"billing_interval_count": 1
}
],
"contract_term_months": 12,
"delivery_required": false,
"early_termination_fee_money": {
"amount": 5000,
"currency": "USD"
},
"line_items": [
{
"allow_quantity_adjustment": false,
"max_quantity": 9999,
"min_quantity": 1,
"name": "Membership",
"quantity": 1,
"subscription_plan_line_item_id": "spli_01KEZF7C00CEPTZ7FN2H9F4SF9",
"unit_price_money": {
"amount": 2400,
"currency": "USD"
}
}
],
"plan_image": {
"alt": "Monthly roast box",
"height": 800,
"url": "https://images.withflintpay.com/ia_roast_box/original",
"width": 1200
},
"plan_name": "Roaster's club",
"recurring_total_money": {
"amount": 2400,
"currency": "USD"
},
"setup_fee_money": {
"amount": 1000,
"currency": "USD"
},
"trial_period_days": 14
}
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6SD8WS97QNDG1V09Z7SGN"
}Resolve payment link#
/v1/payment-links/{payment_link_id}/resolveIdempotentNo API key required
Rate limit: per IP
Creates a buyer checkout session from an active payment link. Catalog-backed modifier availability is frozen onto the checkout session and selected modifiers are resolved onto the backing order. For a retry after an uncertain response, reuse the original idempotency key and resolution_context.
Path parameters
payment_link_idstringRequiredFlint payment link ID. Must be a valid ID with prefix pl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
include_checkoutbooleanInclude the buyer checkout read fields when a new hosted session is created. Replays return the launch fields.
Request body
attendee_namesarray of stringOne attendee name per ticket on an event payment link, in line_items order: each tier's tickets in turn, skipping tiers with quantity 0. The count must equal the tickets being bought. Required when event_config.collect_attendee_names is true, and optional otherwise. Flint trims each name, which must then be 1 to 200 characters. Duplicate names are allowed. Flint copies the names onto the tickets when the order is paid, as each ticket's attendee_name, and never stores them in metadata.
client_referencestringYour reference for the buyer or cart this checkout is for, such as your user ID. It cannot contain the NUL character. Copied to the checkout session and order, preserving all characters exactly. Anyone with the link can change it, so do not use it as proof of who paid.
custom_field_valuesmap of stringBuyer answers keyed by custom field key. Checkbox answers must be exactly true or false as strings, and a required checkbox must be true. Flint records the answers on the order and checkout session in `custom_field_answers`; omitted and empty answers to optional fields are not recorded.
modifiersmap of objectModifier choices keyed by line item key, for catalog items.
prefillobjectEmail to fill in on the next checkout step. The buyer can change it; it never links an existing customer.
emailstringEmail to fill in for the buyer, who can change it. It is not verified, so it never links the purchase to an existing customer. The local part before @ must be at most 64 octets (UTF-8 bytes).
quantity_overridesmap of integerQuantities keyed by line item key (line_items[].key), each within that item's min_quantity and max_quantity. Event tiers accept 0. Whole-number quantities; fractional quantities are not supported.
resolution_contextstringRequiredPrivate resolution context returned by GET /v1/payment-links/{payment_link_id}/public. Send it unchanged when resolving the same link; read the link again after checkout_start_due_at.
subscription_termsobjectBuyer choices for a subscription plan link. Line quantities must obey the plan line adjustment policy exposed by subscription_preview.line_items.
billing_intervalenumUnit of the billing period the buyer chose from `subscription_terms.billing_interval_options`. Send it with `billing_interval_count`; omit both to keep the interval the session already has.
dailyweeklymonthlyyearly
billing_interval_countintegerNumber of `billing_interval` units between charges. Send it with `billing_interval`.
gift_recipientobject or nullWho receives the gift, when subscription_terms.gifts_enabled is true. Replaces the whole recipient; send null to clear it. The buyer stays the purchaser.
line_itemsarray of objectPartial quantities for distinct frozen plan lines. Omitted lines keep their quantities. Checkout credentials may set only the adjustable line, within min_quantity and max_quantity (defaults 1 and 9,999). Merchant credentials may set any line to 1 through 9,999.
unit_price_overridesmap of objectPositive prices keyed by line item key, for items with allow_unit_price_adjustment, between min_unit_price_money and max_unit_price_money. A donation link has one line item, keyed donation.
variant_selectionsmap of stringVariant IDs keyed by line item key (line_items[].key), for lines with variant_ids. Each selection must be offered by that line and priced in its current currency. Omit a key to use default_variant_id; a line without a default requires a selection. Null is not accepted.
Response · 201
The created buyer checkout session.
dataobjectRequiredThe buyer checkout session and its checkout credential, created from the payment link.
checkout_orderobjectThe buyer order included when a payment link creates a new hosted checkout with include_checkout=true.
checkout_auth_tokenstringCheckout credential. Send it as Authorization: Bearer <checkout_auth_token>. Present on headless checkout launch and customer binding confirmation. Omitted on hosted checkout launch and when a saved-card confirmation keeps the current credential.
remembered_buyer_tokenstringOne-time identity token returned only when a successful code confirmation remembered the buyer. Store it on your backend or in an HttpOnly cookie. It never opens saved cards.
active_payment_attemptobjectThe payment attempt now collecting this checkout's order, the same attempt as the order's active_payment_attempt. Read it to recover after losing a pay response, and resume it only when is_resumable is true. Omitted when no attempt is active. Pending actions that open a URL are left out; the pay response carries them.
buyer_contactobjectContact the buyer entered in checkout before paying, saved with the session's checkout credential. Separate from merchant-supplied prefill and customer_prefill from the customer record. Omitted until the buyer saves or clears a field. When a checkout session payment omits buyer_contact.email or buyer_contact.phone, Flint uses these values. Flint clears the contact 30 days after the session ends, and when a customer linked to the session is deleted.
buyer_fieldsobjectWhat checkout asks the buyer for. Each field you leave out uses your checkout settings.
can_apply_promotion_codebooleanRequiredWhether to offer promotion-code entry now. True only while the session is open, is not in recovery, and merchant promotion policy allows codes. An explicit promotion_config.codes_enabled wins; null offers entry only when this merchant has an active code promotion whose schedule includes now, in the session's environment. Recomputed on each read. This hint does not change code admission: checkout lifecycle, promotion_config, and merchant policy still apply.
can_save_payment_methodbooleanWhether checkout offers the buyer the option to save the card they type for faster checkout at this merchant. When true, PayOrder accepts save_payment_method: true for one newly collected card. False when the merchant turned checkout.saved_payment_details off, customer accounts are merchant hosted, card is not an available payment option, the checkout collects an invoice, a subscription, or a return, or the checkout acts for no customer and Flint cannot email the buyer a verification code. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
can_save_payment_method_with_phonebooleanWhether the buyer can save the card they type by giving a US or Canadian mobile phone number with the payment, in save_payment_method_phone on POST /v1/orders/{order_id}/pay, and confirming it with a texted code after paying. True while Flint can send texts and either save_payment_method_requires_verification is true, so the number replaces confirming an email before paying, or the checkout acts for the customer whose email the buyer confirmed with this credential, so the number joins that customer's saved details once the buyer confirms it. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
checkout_session_idstringRequiredUnique identifier for this checkout session, prefixed `cs_`.
created_atstringRequiredRFC3339 timestamp.
custom_textobjectThe custom text this session shows in checkout.
customer_account_urlstringThe store's customer account, where the buyer can see this purchase and manage a subscription it starts. A stable link that opens the account wherever the merchant's `customer_account` settings put it; the buyer signs in there if needed. Pass it as Apple Pay's `managementURL` for a subscription. Omitted from webhooks, and when the account can't be resolved.
customer_idstringThe customer of the session's order. Omitted when the order has none. A checkout credential issued for this session acts for this customer.
customer_prefillobjectContact and default addresses of the customer the checkout acts for, with the recipient name on its default shipping address: the customer the merchant created the session for, or the customer whose email the buyer confirmed in it. Present on GET and PATCH responses while the session is open and acts for a customer. Separate from merchant-supplied prefill and buyer_contact saved by the buyer. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
deliveryobjectCurrent delivery choices for Flint-owned pricing. External pricing reports requires_explicit_quote; reading this field does not request a delivery quote. Omitted when the session is not open, has no order, or Flint cannot read its delivery.
delivery_method_idsarray of stringRequiredImmutable delivery method assignment captured when the checkout was created.
delivery_selection_requiredbooleanRequiredWhether the order has at least one remaining quote-resolved fulfillment choice that must be selected before payment.
expires_atstringRFC3339 timestamp.
expires_in_secondsintegerThe lifetime the session got. expires_at is its deadline. Omitted for invoice sessions, which take their deadline from the invoice.
gift_card_challengeobjectWhere the buyer completes a gift card challenge for this checkout. Returned on single-session reads, session create and update responses, checkout launch results, and customer verification confirmation results while the session is open and can show the challenge. Omitted from lists, webhooks, expanded resources, and delivery selection results.
invoice_idstringID of the invoice a session of type `invoice` collects payment for. Absent for other types.
is_in_recoverybooleanRequiredWhether the checkout is in its payment recovery window after its deadline. The checkout credential can recover only an attempt it started. Merchant reads can also report a merchant-started attempt.
legalobjectThe terms and policy links this session shows the buyer, and whether the buyer must accept the terms.
merchant_iconobjectThe merchant's square icon, shown in browser tabs and compact headers. Returned by `GET /v1/checkout-sessions/{checkout_session_id}` when the merchant has one; other responses and webhooks omit it.
merchant_idstringRequiredID of the merchant this resource belongs to.
merchant_logoobjectThe merchant's logo. Returned by `GET /v1/checkout-sessions/{checkout_session_id}` when the merchant has one; other responses and webhooks omit it.
merchant_namestringThe merchant's business name, which hosted checkout shows when `theme.title` is unset. Reads `Merchant` when the merchant has not set a business name. Returned by `GET /v1/checkout-sessions/{checkout_session_id}`; other responses and webhooks omit it.
merchant_supportobjectHow the buyer can reach the merchant for help: the support email, phone, and URL the merchant set. Present on GET and PATCH responses when the merchant set at least one of them. Show it where your checkout tells the buyer to contact the merchant, such as an expired or closed checkout, or your receipt. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
order_idstringID of the order the session collects payment for, fixed at creation. Absent when the session has no order.
page_originstringOrigin of the page that renders this headless checkout. Omitted when not set.
pay_to_new_address_requires_verificationbooleanWhether at least one saved card this checkout lists would be refused for the current delivery destination because the paying credential last confirmed a code more than 15 minutes ago. Request a code with purpose pay_to_new_address, without email or channel, and confirm it with this credential before paying. A Flint wallet card can still pay to an address in that wallet while this is true for a store saved card. Pickup and orders that ship nothing never require this verification. Returned only to the checkout credential. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
payment_collectionobjectGuidance for collecting a payment source. Checkout-credential reads include it only while the session is open. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
payment_intent_idsarray of stringIDs of the payment intents for the session's order. Absent when the order has none.
payment_link_idstringID of the payment link the session was started from. Absent when it was not started from a payment link.
payment_link_imageobjectThe current image of the payment link that opened this session. Returned by `GET /v1/checkout-sessions/{checkout_session_id}` when that link has an image; other responses and webhooks omit it.
payment_method_saveobjectThe card the buyer saved pending with this checkout's payment, and whether they confirmed it. Present on GET and PATCH responses after a payment that paid the order in full, or that was approved for the merchant to capture later, and saved a card this way. Without a number, confirmation requires an emailed code. A checkout whose payment is approved stays open until the capture. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
payment_return_urlstringHeadless sessions only. Absolute HTTPS URL on your site where Flint sends the buyer after a redirect payment such as Affirm, whatever the outcome; read the session there to show the result. Required when the session offers affirm. It can't contain credentials, a query string, or a fragment. Query strings are deliberately excluded so credentials and provider state cannot cross Flint's payment relay. Put merchant identifiers in the URL path, such as https://shop.example/return/sub_123. Test mode also accepts http loopback URLs. Up to 2,048 characters.
paymentsobjectConfigured payment options for merchant credentials; currently available payment options for the checkout credential.
prefillobjectContact details and addresses to fill in for the buyer, who can change them. For a customer with saved addresses, Flint fills in any address you leave out, and reads include it. With quick_pay or subscription_plan and automatic tax on, a prefilled address sets the order's tax location. Not changed by what the buyer types; for that, read buyer_contact. customer_prefill is what the checkout credential reads from the customer record.
problemsarray of objectRequiredNamed conditions that affect checkout completion. Follow each problem's remediation action instead of reconstructing delivery lifecycle rules in the client. payment_in_progress means another payment for the order must finish before this checkout can complete. When Flint cannot read the checkout's delivery, the read still succeeds and reports delivery_unreadable; its remediation says whether reading the session again can succeed, and its next action's reason_code names the error.
promotion_configobjectWhether automatic promotions apply to this session and whether the buyer can enter promotion codes.
recovery_expires_atstring or nullWhen the restricted payment-attempt recovery window ends. `null` when the session has no recovery window.
recovery_payment_attempt_idstringThe payment attempt in the recovery window. Only merchant reads report a merchant-started attempt.
redirectsobjectWhere hosted checkout sends the buyer. Not allowed when surface is headless; use payment_return_url.
refundsarray of objectAll buyer-visible refunds on this session’s order, including refunds made by the store. Uses the same buyer projection as /v1/me/refunds. Included on GET single-session reads as an array, with [] when there are none, and omitted from other responses and webhooks. A failed refund with failure_reason refund_abandoned could not be completed: tell the buyer to contact the store to get their money back.
save_payment_method_requires_verificationbooleanWhether saving a new card or using saved cards needs the buyer to confirm their email with a code. A new card can be saved pending with the payment and confirmed on the receipt; using saved cards still needs the code before paying. True when can_save_payment_method is true and the checkout acts for no customer for this credential: the merchant created it without one, and either the buyer has not confirmed an email with this credential, or the customer whose email they confirmed has since changed that email or been deleted. A credential other than the one a confirmation returned, such as the hosted checkout link opened on another device, reads true. Send the code with POST /v1/checkout-sessions/{checkout_session_id}/customer-verifications. False while the checkout acts for a customer, and whenever can_save_payment_method is false. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
save_payment_method_typesarray of enumWhat save_payment_method keeps, present when can_save_payment_method is true: card, a card the buyer types into checkout. Show the save option with that payment method only. A pay request that sends save_payment_method: true with Apple Pay, Google Pay, a bank account, or Affirm, through a confirmation token created with setup_future_usage none, still pays, and its payment attempt's payment_method_save reports not_saved. The values can grow. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
card
setup_collectionobjectGuidance for collecting a payment method to save. Checkout-credential reads include it only while the session is open. Returned only to the checkout credential; never in webhook payloads.
Not returned with a bearer token
shop_idstringID of the shop that started checkout.
show_flint_markbooleanWhether Flint's hosted pages show the Powered by Flint mark for this merchant. `false` when the merchant's agreement with Flint removes it. Returned by `GET /v1/checkout-sessions/{checkout_session_id}`; other responses and webhooks omit it.
statusenumRequiredWhere the session is in its lifecycle. Only an `open` session accepts payment. `terminal_reason` says why a session that is not open ended.
openpaidpartially_paidexpiredclosedinvalidated
subscription_plan_idstringID of the subscription plan a session of type `subscription_plan` signs the buyer up for. Absent for other types.
subscription_termsobjectRenewal terms a subscription checkout commits the buyer to. Frozen when the session's order was created, so later plan changes do not alter them. Absent when the checkout starts no subscription.
superseding_checkout_session_idstringID of the session that replaced this one. Present when `terminal_reason` is `superseded`.
surfaceenumRequiredHow the session is presented to the buyer. A hosted session has a `url` on Flint's checkout page; a headless one is rendered on your own page.
hostedheadless
taxobjectThe session's tax settings. Omitted when the session sets none.
terminal_reasonenumWhy the session ended. The checkout credential can still read its own closed or expired session; every other call is refused because the session is not open. order_paid_elsewhere applies only to invalidated sessions when payment succeeds or partially succeeds outside the session. order_mutated applies when an edit closes or completes its order, or ends an invoice, return-resolution, or subscription-plan session. Other merchant edits keep hosted and headless sessions open. A session already past expires_at ends with expired before the edit is applied.
payment_succeededpayment_partially_succeededexpiredclosed_by_merchantorder_mutatedsupersededorder_paid_elsewhereinvoice_paid_elsewhereinvoice_voidedinvoice_uncollectibleinvoice_balance_changed
themeobjectThe theme checkout renders with: your branding settings, with the session's `title`, `primary_color`, and `accent_color` over them. A session sets only those three; the other fields come from branding settings. Omitted when neither sets a value.
tipobjectThe tip options this session offers the buyer.
typeenumRequiredWhat the session collects payment for, fixed at creation.
orderquick_paysubscription_planinvoicepayment_linkshop
updated_atstringRequiredRFC3339 timestamp.
urlstringHosted checkout URL that carries a one-time launch credential. Send the buyer here to pay. Present only for hosted sessions read with a merchant credential that can manage checkout sessions. Launch results include it for hosted sessions: create, payment-link resolve, and invoice and return-resolution checkout. Omitted for headless sessions.
Not returned with a checkout credential
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
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 -X POST https://api.withflintpay.com/v1/payment-links/pl_01KEZF7C007WDMA5P9BPZ8J2AM/resolve \
-H "Flint-Version: 2026-09-07" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"custom_field_values": {
"meal_preference": "Vegetarian"
},
"modifiers": {
"general-admission": {
"modifiers": [
{
"modifier_id": "mod_01KEZF7C00HP1041X7TDG6WRV5",
"quantity": 1,
"type": "catalog"
},
{
"text": {
"modifier_group_id": "mg_01KEZF7C00VBHD29DTPF4QBB6V",
"value": "Extra hot"
},
"type": "text"
}
]
}
},
"quantity_overrides": {
"general-admission": 2
},
"resolution_context": "plrc_v1.example_signed_resolution_context"
}'Was this helpful?