Invoices
Invoices are Flint's receivables resource. Every invoice is backed by an order: create one from an existing open order, or use quick pay input and Flint creates the backing order for you. The invoice adds the receivable on top of the order: who owes, how much, by when, and what has come in.
Use an invoice when a customer pays later, in parts, or outside Flint, such as net-30 terms, a deposit and balance, or a check. When the money is due now, use a checkout session. Payment links vs checkout sessions vs invoices compares the three, and the Invoicing guide walks through the whole flow.
Late fee entries include invoice_id, and activity rows include invoice_id beside delivery attempt, late fee, and manual payment references. Each snapshot.line_items entry includes the backing order_id beside order_line_item_id. Merchant and buyer responses and webhook snapshots carry these parent IDs.
The invoice and its records#
| Record | ID prefix | What it is |
|---|---|---|
| Invoice | inv_ | The receivable: recipient, due date, collection mode, balance, and the billing snapshot. |
| Payment term | ipt_ | A reusable due-date rule with an optional late fee, managed at /v1/invoice-payment-terms. See Payment terms. |
| Schedule entry | invse_ | One part of a payment schedule: a deposit, an installment, or the final balance. |
| Payment attempt | invpa_ | One try at collecting online, through checkout or a saved-card charge. |
| Manual payment | omp_ | A check, wire, cash, or other offline payment you record. |
| Late fee | inlf_ | A fee assessed after the due date, itemized in late_fees. |
| Snapshot line | invli_ | A line in snapshot.line_items. A credit note credits lines by this ID. |
Delivery attempts record every invoice and reminder email, and activities record the invoice's timeline. Both are lists on the invoice. Activities include failed payments, bank returns and their dispute IDs, balances reopened after a bank return, and applied credit notes.
Status#
A draft can be edited freely. Issuing it assigns invoice_number, freezes the billing content, creates the hosted invoice link, and makes the balance collectible. With email delivery, it also emails the recipient.
Moves back
- paid → partially_paidpayment or credit reversal
- paid → openpayment reversal
- partially_paid → openpayment reversal
- credited → opencredit reversal
Moves back
- paid → partially_paidpayment or credit reversal
- paid → openpayment reversal
- partially_paid → openpayment reversal
- credited → opencredit reversal
- draft moves to open on issue
- draft moves to voided on void
- open moves to voided on void
- open moves to partially_paid on partial payment
- open moves to paid on full payment
- partially_paid moves to paid on balance cleared
- open moves to credited on credit clears balance
- open moves to uncollectible on write off
- partially_paid moves to uncollectible on write off
- uncollectible moves to paid on record full recovery
- paid moves to partially_paid on payment or credit reversal
- paid moves to open on payment reversal
- partially_paid moves to open on payment reversal
- credited moves to open on credit reversal
status on invoicedraftEditable, with no invoice number and nothing collectible.openIssued, with nothing collected yet. The customer can pay.partially_paidSome money came in and a balance remains.paidA zero-total invoice is paid as soon as it is issued, without creating a payment. Otherwise, the balance reached zero with collected payments applied. The last step can be a payment, a credit note allocation, a waived late fee, or a reversed payment that was recovered. A payment or credit reversal reopens it.creditedCredit notes cleared the balance and no collected payments remain. Reversing the credit reopens it.uncollectibleYou wrote off the remaining balance.voidedFinalCanceled. Nothing is owed, and the backing order is released.
A payment reversal, such as a reversed manual payment, returns a paid invoice to partially_paid, or to open when no collected payments remain. Reversing credit on an invoice closed by both payments and credit returns it to partially_paid. Every reopening sends invoice.reopened. Refunds never change status: they move refund_status and refunded_money.
Available actions#
Every invoice carries a required supported_actions array. It lists the lifecycle actions Flint accepts from the stored invoice state, related records, and settings, or [] when none apply. It never depends on the caller's credential or scopes. Check the user's permissions separately; a caller without the required scope gets 403 INSUFFICIENT_SCOPE.
| Value | Route |
|---|---|
issue | POST /v1/invoices/{invoice_id}/issue |
collect | POST /v1/invoices/{invoice_id}/collect |
void | POST /v1/invoices/{invoice_id}/void |
mark_uncollectible | POST /v1/invoices/{invoice_id}/mark-uncollectible |
Late fees and manual payments carry their own required arrays:
| Resource | Value | Route |
|---|---|---|
| InvoiceLateFee | waive | POST /v1/invoices/{invoice_id}/late-fees/{invoice_late_fee_id}/waive |
| InvoiceManualPayment | reverse | POST /v1/invoices/{invoice_id}/manual-payments/{invoice_manual_payment_id}/reverse |
Creating a checkout session, recording a manual payment, assessing a late fee, and sending a reminder aren't lifecycle actions and don't appear in these arrays. Expanded invoice summaries carry supported_actions too. Lifecycle refusal details include supported_actions alongside current_status and the current_resource reference. Webhook data.object carries the list recorded when the event happened, rather than recalculating it when the event is delivered. BuyerInvoice responses use buyer_actions and omit supported_actions.
A transient condition can still refuse a listed action. An action outside the list returns 409 ACTION_NOT_ALLOWED with current_status and supported_actions in details[0].
The balance#
Every amount is a Money object in minor units. In every status except voided, where it is 0, the balance follows one identity, never below zero:
settlement_amounts.outstanding_money = pricing_amounts.total_money + settlement_amounts.late_fee_money - settlement_amounts.paid_money - settlement_amounts.credited_money - settlement_amounts.written_off_money
A $2,500.00 invoice with a $37.50 late fee, a $1,500.00 check, and a $500.00 credit note still owes $537.50:
- Invoice total
pricing_amounts.total_money$2,500.00 - Late fee
settlement_amounts.late_fee_money$37.50 - Check received
settlement_amounts.paid_money−$1,500.00 - Credit note
settlement_amounts.credited_money−$500.00 - Outstanding
settlement_amounts.outstanding_money$537.50
pricing_amounts.total_moneyis fixed at issue and excludes late fees. A draft previews the backing order's total.- Refunds return money already collected, so they appear in
settlement_amounts.refunded_moneyand never reopen the balance. - A schedule entry paid entirely with payments that have all been fully refunded has status
refunded. Itspaid_moneystill records what was collected. settlement_amounts.currently_due_moneyis what the next checkout session orcollectcall charges. With a payment schedule, it is the outstanding amount of the first due and unpaid entry, not everything past due. For a past-due total, add theoutstanding_moneyof the entries whosestatusisdueoroverdue.
The balance in the Invoicing guide explains each amount.
What issue freezes#
Each snapshot.tax_breakdowns row includes required order_id, the parent of any order_line_item_id or order_charge_id on that row. Variant line items include product_id beside variant_id; bundles have no single parent product and their components name their own products. These references also appear in buyer invoice snapshots and webhooks.
Issue copies the customer-facing billing content into snapshot: line items, discounts, charges, tip, tax with its jurisdiction rows in snapshot.tax_breakdowns, EU and UK VAT in local currency in snapshot.tax_currency_conversions, and your business name in snapshot.merchant_display_name. When an exemption applied, snapshot.tax_exemption freezes its source, reason, coverage, certificate_number, dates, and customer_tax_exemption_id, and merchant reads add evidence_reference. The buyer copy omits evidence_reference, and the PDF and receipt show a "Tax exempt" row with the reason and certificate number. The API, the hosted invoice, and the PDF read the same frozen content, and later changes to the order don't reach it. Issue freezes the totals in pricing_amounts. It also fixes collection.mode, computes due_date and the schedule's due dates, and freezes the payment term's late fee policy, the reminder cadence, and the saved-card retry schedule. Changing a payment term or your settings affects only invoices issued later.
After issue, PATCH accepts reminders_paused and platform_fee_rule while the invoice is open or partially_paid. To correct an issued invoice, issue a credit note against its lines, or void it and issue a new one. An invoice on which Flint calculates automatic tax takes one payment for its full balance; an exempt invoice skips that calculation and isn't limited this way. Editing an invoice's backing order after issue blocks collection: void the invoice, then create and issue a new one for the order. An exemption that expires after issue doesn't reprice the invoice; void it and issue a new one to charge tax. Tax on an invoice covers how tax is calculated and frozen.
Rules that span the API#
- One invoice per order. An order can have at most one invoice that isn't voided. A second draft for the same order returns
409 ALREADY_EXISTS. - The invoice owns collection. While the invoice is active, it is the only way to collect on its order. Generic checkout sessions and payment intents for the order return
409 RESOURCE_IN_USE, and so do edits to the order's amounts. To edit or collect the order another way, void the invoice first. - Voiding Quick Pay. Voiding a Quick Pay invoice also closes its order with
closed_reason: invoice_voidedwhen the order is open, has no collected payment, and has no fulfillment. Otherwise, the order stays unchanged. This sendsinvoice.voidedand, when the order closes,order.closed. The order keeps itsinvoice_idafter the invoice is voided. - One online payment at a time. An invoice has at most one active payment attempt. Recording a manual payment, reversing one, marking the invoice uncollectible, or voiding it returns
409 OPERATION_IN_PROGRESSwhile an online payment is resolving. - Versions. Every invoice carries
version. Send it asexpected_versiononPATCH, issue, void, mark uncollectible, regenerate the public link, or record or reverse a manual payment, and a stale value returns409 VERSION_CONFLICT.PATCHrequires it whenever the body includesschedule_entries. Use theversionfrom your latest successful write for the next one. - Idempotency keys. Creating or issuing an invoice, calling
collect, and recording a manual payment require anIdempotency-Key, so a retry never charges or records a payment twice. The other invoice writes accept one. A retry with the same key returns the original result. - Read back what you wrote. Reads return
collectionandpayment_dueresolved, in the shape draft writes accept, so you can send them back unchanged onPATCH.merchant_defaultandcustomer_defaultresolve when the draft is written, as Defaults and reading back what you wrote describes. The top-leveldue_dateis the effective due date thatis_overdue, the due date filters, andsort_by=due_dateuse.
Collect payment#
collection.mode | How money arrives |
|---|---|
buyer_initiated | The customer pays on the hosted invoice page, or in a checkout you open with POST /v1/checkout-sessions and type: invoice. |
automatic | Flint charges the customer's saved card at issue or on each schedule entry's due date, and retries it on invoices.autopay_retry_policy. collect charges it again now. |
external | The customer pays outside Flint, and you record each payment as a manual payment. |
For buyer_initiated, payment options resolve from an explicit collection.payment_policy, then invoices.payment_policy, then checkout payment options. When all are absent, the platform default is card, apple_pay, and google_pay. Explicitly empty lists are rejected. Defaults resolve when the draft is written and the policy is stored; later settings changes do not change existing drafts or issued invoices.
Wallets appear only on supported devices over HTTPS with the payment domain registered. Account readiness, platform blocks, and invoice amount limits still apply. Hosted recovery for automatic invoices stays card-only, and external invoices offer no online payment.
You can record a manual payment on any open or partially_paid invoice, whatever its mode. An uncollectible invoice also accepts manual recovery payments up to written_off_money. Each payment has its own invoice_manual_payment_id and a status of recorded or reversed, and manual payments are listed separately from payment attempts. Put your check, wire, or bank reference in payment_reference. On a live account, a payment that puts an order past the monthly allowance for orders paid outside Flint is still recorded and returns an external_paid_orders_over_allowance warning in meta.warnings. Allowance warning has its fields. On a scheduled invoice, Flint applies manual payments and credit in schedule order. It starts with the earliest due date and applies a deposit before installments and the balance due that same day.
Manual payment status is a closed vocabulary: recorded means the payment counts toward the invoice, and reversed means its contribution was undone. reversed is final and is published in x-flint-terminal-values.
A reversal undoes one manual payment in full and returns its amount to outstanding_money. If the invoice was written off, the amount returns to written_off_money instead, including after full recovery. Reversing full recovery changes paid back to uncollectible and sends invoice.marked_uncollectible. To correct an amount, reverse the payment and record the right one. reversed_at can't be earlier than the payment's received_at. Without the original Idempotency-Key, reversing a payment that is already reversed returns 409 ACTION_NOT_ALLOWED.
Gift card lines#
When the invoice sells gift cards, a manual payment issues each card once its full price has been paid. A partial payment keeps its contribution until a whole card can be issued, and late fees don't fund gift card value. The card's load reports source.funding_source_type flint_manual_payment, with the payment's invoice_manual_payment_id as source.order_manual_payment_id. Reversing the payment removes exactly the value it funded. If that value has been spent or reserved, the reversal fails and the payment stays recorded.
Platform fee rules#
| Request | platform_fee_rule |
|---|---|
POST /v1/invoices | A rule object on an order or quick_pay invoice. |
PATCH /v1/invoices/{invoice_id} | A rule object replaces the whole rule. null removes it. Omit the field to keep it. Requires expected_version, even when removing it. Accepted in draft, open, and partially_paid. |
Change the fee rule and the schedule in separate requests.
Send percent from 0 to 25 with up to four decimal places. fixed_fee_money is required when percent is 0. The optional money fields fixed_fee_money and maximum_fee_money accept 1 to 1,000,000 minor units in the invoice currency. If both are set, the maximum must be at least the fixed amount.
Only a partner app install token can send the field, and only the install that created the invoice can change it. An invalid or over-cap member returns 400 INVALID_REQUEST and identifies the member in param. A terminal invoice returns 409 ACTION_NOT_ALLOWED with reason unsupported_state. Setting or replacing a rule in live mode returns 409 ACTION_NOT_ALLOWED with reason platform_onboarding_required until the app owner accepts a Flint Platform Agreement version that covers rules. The creating install can still remove its rule with null and expected_version while the invoice is editable. See Platform fee rule checks for the other consent and live-mode refusals.
Invoice.platform_fee_rule includes partner_app_id and is absent when no rule is active. Buyer and public invoice responses omit it. See Charge a platform fee for payment examples.
Follow-up#
While a balance remains, Flint sends reminders on the cadence in invoices.reminder_policy, sends invoice.overdue after due_date ends, and sends invoice.late_fee_due when a payment term's grace period ends. A late fee policy with application_mode manual, the default, only notifies you; assess the fee with POST /v1/invoices/{invoice_id}/late-fees. With automatic, Flint assesses it after the grace period. Each invoice, or each schedule entry, takes at most one late fee, and a fee raises late_fee_money without changing the issued line items, tax, or total_money.
Set reminders_paused to true on PATCH to pause the automatic reminders on an open or partially_paid invoice, and false to resume them. Follow up on an unpaid invoice covers the cadence, late fees, and retries.
Delivery attempts report sent when the email service accepts a message; they don't report a later bounce. Read a failed attempt's failure_reason before you resend with send-reminder, as Delivery outcomes describes.
List and search invoices#
GET /v1/invoices combines its filters with AND, and every filter applies before pagination. Values within one multi-value filter, such as status or collection_mode, match any of them.
invoice_numbermatches one complete invoice number exactly, byte for byte: casing, accents, and whitespace are compared as sent, and a comma is part of the value. Send it once, with 1 to 255 characters. Drafts have no number and never match.- Time ranges take RFC 3339 timestamps. The
_afterbound is inclusive and the_beforebound exclusive, so equal bounds select nothing. A_beforebound earlier than its_afterbound returns400 INVALID_REQUESTwithparamnaming the_beforebound. Invoices that were never issued don't matchissued_afterorissued_before. subscription_idlists the invoices for one subscription's orders. Flint creates subscription invoices only when a renewal waits on stock; see Collection blocks.
This finds automatic and external invoices issued in September 2026:
curl -G https://api.withflintpay.com/v1/invoices \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "collection_mode=automatic,external" \
--data-urlencode "issued_after=2026-09-01T00:00:00Z" \
--data-urlencode "issued_before=2026-10-01T00:00:00Z"
Exact-match filters covers how exact-match and multi-value filters are encoded.
Expand the customer and order#
GET /v1/invoices and GET /v1/invoices/{invoice_id} accept expand with customer and order. Each path adds the related summary beside its ID, or null when the invoice has no such ID.
expand | Adds | Also needs |
|---|---|---|
customer | The customer summary for customer_id | customers.read |
order | The order summary for order_id, including its buyer_contact | commerce.orders.read |
A key without a scope a path needs gets 403 INSUFFICIENT_SCOPE with param: expand. See Expand related records for how Flint expands a page, and Expanded order summaries for the order summary's fields.
Online payment collection#
POST /v1/invoices/{invoice_id}/collect charges a saved card and keeps its existing request and result. Read the resulting attempt's payment_intent_id for the payment's own status and failure details. PaymentIntent invoice_id identifies the invoice; invoice_schedule_entry_id identifies the installment when applicable. Both appear on reads, lists, and payment intent webhooks.
Cancel through POST /v1/payment-intents/{payment_intent_id}/cancel with payments.payment_intents.write. Cancellation returns the PaymentIntent and releases the invoice's active collection slot. Processing payments, including ACH debit, are refused with ACTION_NOT_ALLOWED, reason in_progress; settled payments are refused with reason terminal_status.
When another collection is active, collect returns PAYMENT_ATTEMPT_ACTIVE with resource_type: payment_intent, resource_id, current_status, and supported_actions in details[0]. Follow that payment before collecting again. Canceled, expired, and buyer-action outcomes retain the payment intent's status instead of becoming failed collections. Invoice attempt routes and invoice events remain available.
Recovery by key#
Recover a lost invoice create with GET /v1/invoices?idempotency_key={key}. It finds the invoice even if issuing or sending it failed after Flint created it. A list filtered by idempotency_key leaves out public_url; read the invoice by ID to get it. For a manual payment, use GET /v1/invoices/{invoice_id}/manual-payments?idempotency_key={key}, then read the payment by ID. For a collection, use GET /v1/invoices/{invoice_id}/payment-attempts?idempotency_key={key}. See Recovery reads for matching rules and what an empty or pending result means.
Customer deletion#
An issued invoice keeps the snapshot.customer_display_name, snapshot.billing_address, and snapshot.buyer_tax_identity captured at issue after its customer is deleted. Drafts lose them. Approving the deletion revokes the customer's hosted invoice and PDF links, and invoice search stops matching the deleted customer's name, so find those invoices by number or customer_id. Customer deletion requests covers the rest.
Related docs#
InvoicingCreate, issue, collect, follow up, and close an invoice, with every webhook and error.Credit notesCorrect an issued invoice, with a linked refund when it was already paid.Customer accountBuild your own invoice page with the buyer invoice document.Invoice due dates and schedule due.due_date values are YYYY-MM-DD calendar dates in the invoice's timezone. A draft takes the merchant's timezone when it's written, or UTC when the merchant has none, and issue freezes it. Collection can start on the due date; overdue status and late fees start only after it ends. due_date_from is inclusive and due_date_to is exclusive. Automatic collection runs at the later of issue and the start of the due date, so an at_issue deposit charges at issue.
The Invoice object#
A bill issued to a customer.
Returned by GET /v1/invoices/{invoice_id} and carried by the endpoints below.
Attributes
cc_emailsarray of stringRequiredAdditional recipients copied on the invoice email and every reminder.
closed_atstringWhen the current closed interval began. Cleared when status returns to open or partially_paid. A direct move between closed statuses preserves this timestamp.
collectionone ofRequiredHow this invoice is collected, resolved when the draft is written. Send this object back when updating its collection policy.
collection_block_statusenumRequiredWhether collection is blocked. While it is inventory_blocked, collection attempts return 409 ACTION_NOT_ALLOWED with details[0].reason inventory_wait.
noneinventory_blockedresolved
created_atstringRequiredWhen the invoice was created.
customerobject or nullSummary of the billed customer. Returned only with expand=customer. Present only when `expand` includes `customer`; `null` when expanded and there is no related customer.
customer_idstringCustomer billed by this invoice. Absent when the invoice has no customer.
delivery_modeenumHow issue delivered the invoice.
Not returned with a checkout credential, a customer session, or an invoice access token
emailcaller_managed
due_datestringCalendar due date in YYYY-MM-DD format, interpreted in timezone (UTC when absent). The outstanding balance becomes overdue only after this date ends. Automatic collection runs at the later of issue and the start of this date. With payment terms, issue computes this date from issued_at. Absent when there is no due date.
external_reference_idstring or nullRequiredCaller-owned identifier for this resource in an external system. Use it as your sync key: it isn't printed on the invoice. `null` when unset.
Not returned with a checkout credential, a customer session, or an invoice access token
footerstring or nullRequiredFine print at the bottom of the invoice and PDF. It cannot change after issue. `null` when unset.
idempotency_keystring or nullRequiredThe Idempotency-Key of the request that created this resource. `null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown. Filter its list with `idempotency_key` to find it. Recorded payloads, including replayed responses and webhook events, can return `null`. To find a key that a replay returns as `null`, read the resource. Buyer sessions on routes shared with merchants get `null`. `/v1/me` responses do not include this field.
invoice_idstringRequiredFlint invoice ID.
invoice_numberstringSequential document number assigned when the invoice is issued. Numbering is per merchant, with test and live mode numbered independently.
is_overduebooleanRequiredWhether the invoice is open or partially_paid and past due with a balance remaining. Without schedule_entries, the due_date has ended in timezone (UTC when absent) and outstanding_money is above zero; with them, at least one entry is overdue. Computed when the invoice is read.
issued_atstringWhen the invoice was issued. Absent on a draft.
late_feesarray of objectRequiredLate fees assessed on this invoice, each with its paid, waived, written-off, and outstanding amounts. settlement_amounts.late_fee_money is their assessed total minus waivers.
memostring or nullRequiredMessage to the customer, printed on the invoice and PDF. It cannot change after issue. `null` when unset.
merchant_idstringRequiredMerchant that owns this invoice.
metadatamap of stringCaller-owned metadata.
Not returned with a checkout credential, a customer session, or an invoice access token
orderobject or nullSummary of the backing order. Returned only with expand=order. Present only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstringRequiredThe order this invoice bills. Every invoice has one; quick pay creates it.
paid_atstringWhen the invoice most recently became paid. Cleared when status leaves paid and set again on a later paid transition.
payment_dueone ofRequiredThe resolved due-date policy. Send this object back when updating the draft; payment_terms captures the term's current revision again.
payment_terms_snapshotobjectThe payment term captured on the draft, with its due date rule and late fee policy. Later changes to the payment term don't affect this invoice.
platform_fee_ruleobjectThe active rule for payments Flint collects for this invoice. Omitted when no rule is set.
Not returned with a checkout credential, a customer session, or an invoice access token
po_numberstring or nullRequiredThe buyer's purchase order number, printed on the invoice and PDF. It cannot change after issue. `null` when unset.
pricing_amountsobjectRequiredThe invoice pricing totals, frozen at issue. A draft previews the backing order. total_money excludes late fees, which are in settlement_amounts.late_fee_money.
public_urlstringThe hosted invoice link where the buyer views and pays the invoice. Present after issue on API reads, except a list filtered by idempotency_key; webhook payloads leave it out. regenerate-public-link replaces it. Anyone with the link can open the invoice, so treat it as a secret.
Not returned with a checkout credential, a customer session, or an invoice access token
recipient_emailstring or nullRequiredWhere Flint emails the invoice and its reminders. Email delivery requires it at issue. `null` when unset.
referencestring or nullRequiredYour reference for the invoice, printed on the invoice and PDF. The buyer's purchase order number goes in po_number. It cannot change after issue. `null` when unset.
refund_statusenumRequiredHow much of the collected money has been refunded. It doesn't change status.
nonepartially_refundedrefunded
reminders_pausedbooleanRequiredWhether automatic reminders are paused. Set reminders_paused on PATCH /v1/invoices/{invoice_id} to change it.
reminders_paused_atstringWhen automatic reminders were paused. Absent while reminders are active.
Not returned with a checkout credential, a customer session, or an invoice access token
remit_to_addressobjectWhere the buyer sends offline payments, shown on the invoice. Defaults to the invoice settings remit-to address.
schedule_entriesarray of objectRequiredThe payment schedule, in schedule order. Always [] when the invoice has no schedule and is collected in one balance.
scheduled_issue_atstring or nullRequiredWhen Flint will issue and deliver this draft. `null` when no issue is scheduled. Cleared when the draft is issued or voided, or when you send null.
service_datestring or nullRequiredThe calendar date of the billed service, in YYYY-MM-DD format. The invoice and PDF print it as written, without timezone conversion. `null` when unset.
settlement_amountsobjectRequiredPayments, refunds, write-offs, allocated credit notes, late fees, and the remaining invoice balance. What is still owed: pricing_amounts.total_money + late_fee_money - paid_money - credited_money - written_off_money, never below zero. 0 on paid, credited, uncollectible, and voided invoices; equal to pricing_amounts.total_money on a draft. Refunds and card chargebacks don't change it. Lost bank returns reopen the balance.
snapshotobjectThe billing content of the invoice: line items, discounts, charges, tip, and tax. A draft previews the backing order; issue freezes it, and later order changes don't reach an issued invoice.
statusenumRequiredCurrent invoice status. paid and credited close the current balance and can reopen to open or partially_paid after a payment or credit allocation reversal; invoice.reopened reports that change. An uncollectible invoice accepts manual recovery payments and becomes paid when fully recovered; reversals restore the write-off. voided is final. Refunds change refund_status without reopening the balance. An ACH bank return reverses paid_money and reopens the balance. A lost card chargeback leaves paid_money, the balance, and status unchanged; collecting it again requires a new invoice.
draftopenpartially_paidpaidvoideduncollectiblecredited
subscription_idstring or nullRequiredThe subscription the backing order belongs to, copied when the draft is created and never changed. `null` when the order isn't part of a subscription.
supported_actionsarray of enumRequiredLifecycle actions Flint accepts for this resource now, based on stored state. Independent of the caller's permissions; each action still requires its route's scope. Always [] when no action is available.
collectissuemark_uncollectiblevoid
timezonestringIANA time zone snapshot for invoice due dates, reminders, and late fee calendar days. Taken from the merchant's timezone when the draft is written, or UTC when unset. Later merchant changes do not alter this invoice's calendar.
uncollectible_atstringWhen the invoice was marked uncollectible.
Not returned with a checkout credential, a customer session, or an invoice access token
updated_atstringRequiredWhen the invoice last changed.
versionintegerRequiredCurrent invoice version. Send this as expected_version when updating the draft.
viewed_atstringWhen the buyer first opened the invoice through its hosted invoice link. Recorded on a best-effort basis.
voided_atstringWhen the invoice was voided.
{
"cc_emails": [
"owner@example.com"
],
"collection": {
"mode": "buyer_initiated",
"payment_policy": {
"enabled_payment_options": [
"card",
"ach_debit"
],
"payment_option_limits": []
}
},
"collection_block_status": "none",
"created_at": "2026-03-21T15:03:00Z",
"customer_id": "cus_01J00000000000000000000000",
"delivery_mode": "email",
"due_date": "2026-03-31",
"external_reference_id": null,
"footer": null,
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_number": "1042",
"is_overdue": false,
"issued_at": "2026-03-21T15:04:05Z",
"late_fees": [],
"memo": null,
"merchant_id": "mer_01J00000000000000000000000",
"order_id": "ord_01J00000000000000000000000",
"payment_due": {
"due_date": "2026-03-31",
"type": "date"
},
"po_number": "PO-1042",
"pricing_amounts": {
"additive_tax_money": {
"amount": 500,
"currency": "USD"
},
"charge_money": {
"amount": 0,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"inclusive_tax_money": {
"amount": 2000,
"currency": "USD"
},
"requested_tip_money": {
"amount": 0,
"currency": "USD"
},
"subtotal_money": {
"amount": 14500,
"currency": "USD"
},
"tax_money": {
"amount": 2500,
"currency": "USD"
},
"total_money": {
"amount": 15000,
"currency": "USD"
}
},
"recipient_email": "buyer@example.com",
"reference": null,
"refund_status": "none",
"reminders_paused": false,
"schedule_entries": [],
"scheduled_issue_at": null,
"service_date": null,
"settlement_amounts": {
"credited_money": {
"amount": 0,
"currency": "USD"
},
"currently_due_money": {
"amount": 15000,
"currency": "USD"
},
"late_fee_money": {
"amount": 0,
"currency": "USD"
},
"net_collected_money": {
"amount": 0,
"currency": "USD"
},
"outstanding_money": {
"amount": 15000,
"currency": "USD"
},
"paid_money": {
"amount": 0,
"currency": "USD"
},
"refunded_money": {
"amount": 0,
"currency": "USD"
},
"written_off_money": {
"amount": 0,
"currency": "USD"
}
},
"snapshot": {
"buyer_tax_identity": null,
"customer_display_name": "Avery Buyer",
"customer_email": "buyer@example.com",
"line_items": [
{
"base_subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00VXZF3JM0JPANVXWR",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Consulting session",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"total_money": {
"amount": 12000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 12000,
"currency": "USD"
}
},
{
"base_subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00EEHJQZDWNCY60NBP",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Support",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"tax_money": {
"amount": 500,
"currency": "USD"
},
"total_money": {
"amount": 3000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_display_name": "Flint Services",
"seller_tax_identity": null,
"tax_breakdowns": [
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"percent": 20,
"price_mode": "inclusive",
"tax_breakdown_id": "txb_01KEZF7C00W6S9E4B2H82KNH8Z",
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 10000,
"currency": "USD"
}
},
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"percent": 20,
"price_mode": "additive",
"tax_breakdown_id": "txb_01KEZF7C0006JR90EZ0NBD9TT9",
"tax_money": {
"amount": 500,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"tax_currency_conversions": [
{
"currency": "GBP",
"exchange_rate": 0.7367567966,
"rate_date": "2026-03-01",
"rate_source": "hmrc",
"tax_money": {
"amount": 1842,
"currency": "GBP"
},
"taxable_money": {
"amount": 9209,
"currency": "GBP"
}
}
],
"tax_reverse_charge": null
},
"status": "open",
"subscription_id": null,
"supported_actions": [
"void",
"mark_uncollectible"
],
"updated_at": "2026-03-21T15:04:05Z",
"version": 1
}The Invoice payment term object#
The payment timing agreed for an invoice.
Returned by GET /v1/invoice-payment-terms/{invoice_payment_term_id} and carried by the endpoints below.
Attributes
calculationone ofRequiredRule used to calculate the invoice's due date when it is issued.
created_atstringRequiredRFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
invoice_payment_term_idstringRequiredID of the payment term captured on this invoice.
late_fee_policyone ofOne-time late fee policy captured with this term. Absent when no late fee policy applies.
merchant_idstringRequiredID of the merchant this resource belongs to.
namestringRequiredName of the payment term shown on invoices.
statusenumRequiredWhether the term can be selected for new invoices. Archiving preserves terms captured on existing invoices.
activearchived
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredCurrent version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.
{
"calculation": {
"days": 30,
"type": "net_days"
},
"created_at": "2026-03-22T12:00:00Z",
"invoice_payment_term_id": "ipt_01KEZF7C0064N1V301BBMQ37R4",
"late_fee_policy": {
"amount_money": {
"amount": 500,
"currency": "USD"
},
"application_mode": "manual",
"grace_period_days": 7,
"type": "fixed"
},
"merchant_id": "mer_01J00000000000000000000000",
"name": "Net 30",
"status": "active",
"updated_at": "2026-03-22T12:00:00Z",
"version": 1
}List invoice payment terms#
/v1/invoice-payment-termsRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns a paginated list of invoice payment terms for the authenticated merchant. Default order: created_at descending, then invoice_payment_term_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 status. Omitted, the list leaves out archived rows; name archived to include them. 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.
activearchived
external_reference_idstringExact-match filter on the caller-owned external reference ID.
querystringSearch across invoice payment term ID, external reference ID, and name. 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 ipt_01.
Response · 200
A page of invoice payment terms.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoice-payment-terms \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice payment terms.
{
"data": [
{
"calculation": {
"days": 30,
"type": "net_days"
},
"created_at": "2026-03-22T12:00:00Z",
"invoice_payment_term_id": "ipt_01KEZF7C0064N1V301BBMQ37R4",
"late_fee_policy": {
"amount_money": {
"amount": 500,
"currency": "USD"
},
"application_mode": "manual",
"grace_period_days": 7,
"type": "fixed"
},
"merchant_id": "mer_01J00000000000000000000000",
"name": "Net 30",
"status": "active",
"updated_at": "2026-03-22T12:00:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Create invoice payment term#
/v1/invoice-payment-termsIdempotentRequires scope commerce.invoices.write
Rate limit: write
Creates a reusable payment term that decides when an invoice is due, for example on receipt, net days, or a day of the month. Send `name` and `calculation`. A late fee policy is optional; it applies to overdue invoices and is frozen on an invoice when the invoice is issued.
Request body
calculationone ofRequiredRule used to calculate the invoice's due date when it is issued. Required on create; omit it on update to preserve the current rule.
external_reference_idstringCaller-owned identifier for this resource in an external system.
late_fee_policyone ofOne-time late fee policy for unpaid invoices using this term. Omit it to use no late fee on create or preserve the current policy on update; send null on update to remove it.
namestringRequiredName of the payment term shown on invoices. Required on create; omit it on update to preserve the current name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
Response · 201
The invoice payment term.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/invoice-payment-terms \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"calculation": {
"days": 30,
"type": "net_days"
},
"late_fee_policy": {
"amount_money": {
"amount": 500,
"currency": "USD"
},
"application_mode": "manual",
"grace_period_days": 7,
"type": "fixed"
},
"name": "Net 30"
}'Get invoice payment term#
/v1/invoice-payment-terms/{invoice_payment_term_id}Requires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns one invoice payment term for the authenticated merchant.
Path parameters
invoice_payment_term_idstringRequiredFlint invoice payment term ID. Must be a valid ID with prefix ipt_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl https://api.withflintpay.com/v1/invoice-payment-terms/ipt_01KEZF7C0064N1V301BBMQ37R4 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The invoice payment term.
{
"data": {
"calculation": {
"days": 30,
"type": "net_days"
},
"created_at": "2026-03-22T12:00:00Z",
"invoice_payment_term_id": "ipt_01KEZF7C0064N1V301BBMQ37R4",
"late_fee_policy": {
"amount_money": {
"amount": 500,
"currency": "USD"
},
"application_mode": "manual",
"grace_period_days": 7,
"type": "fixed"
},
"merchant_id": "mer_01J00000000000000000000000",
"name": "Net 30",
"status": "active",
"updated_at": "2026-03-22T12:00:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Update invoice payment term#
/v1/invoice-payment-terms/{invoice_payment_term_id}IdempotentRequires scope commerce.invoices.write
Rate limit: write
Update invoice payment term for the authenticated merchant. Null is rejected for name, calculation, and expected_version; omit them to leave them unchanged. Null clears late_fee_policy or external_reference_id.
Path parameters
invoice_payment_term_idstringRequiredFlint invoice payment term ID. Must be a valid ID with prefix ipt_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
calculationone ofRule used to calculate the invoice's due date when it is issued. Required on create; omit it on update to preserve the current rule.
expected_versionintegerOptional version last read by the caller.
external_reference_idstringCaller-owned identifier for this resource in an external system.
late_fee_policyone of or nullOne-time late fee policy for unpaid invoices using this term. Omit it to use no late fee on create or preserve the current policy on update; send null on update to remove it.
namestringName of the payment term shown on invoices. Required on create; omit it on update to preserve the current name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
curl -X PATCH https://api.withflintpay.com/v1/invoice-payment-terms/ipt_01KEZF7C0064N1V301BBMQ37R4 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"calculation": {
"days": 45,
"type": "net_days"
},
"expected_version": 1,
"name": "Net 45"
}'Retire invoice payment term#
/v1/invoice-payment-terms/{invoice_payment_term_id}IdempotentRequires scope commerce.invoices.write
Rate limit: write
Retires an invoice payment term by setting its status to archived. A default payment term cannot be retired.
Path parameters
invoice_payment_term_idstringRequiredFlint invoice payment term ID. Must be a valid ID with prefix ipt_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional version last read by the caller.
curl -X DELETE https://api.withflintpay.com/v1/invoice-payment-terms/ipt_01KEZF7C0064N1V301BBMQ37R4 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"List invoices#
/v1/invoicesRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns a paginated list of invoices for the authenticated merchant. Default order: created_at descending, then invoice_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 invoice 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.
draftopenpartially_paidpaidvoideduncollectiblecredited
idempotency_keystringFilter by the original Idempotency-Key, after trimming surrounding whitespace. Matching is exact and case-sensitive. Returns only resources created in your caller namespace, plus resources created before caller scoping under the original key. Returns current authorized resources, not the recorded response. A pending resource does not prove that the operation succeeded, and an empty list does not prove that it had no effect. A match can show `idempotency_key: null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown.
customer_idstringFilter by Flint customer ID.
order_idstringFilter by Flint order ID.
subscription_idstringExact-match filter on the backing order subscription ID.
external_reference_idstringExact-match filter on the caller-owned external reference ID.
invoice_numberstringExact, byte-sensitive whole invoice number. Preserves casing, accents, and whitespace; drafts without a number do not match.
collection_modearray of enumFilter by the effective collection mode. 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.
buyer_initiatedautomaticexternal
issued_afterstringInclusive lower bound on issued_at.
issued_beforestringExclusive upper bound on issued_at.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
due_date_fromstringInclusive lower bound on due_date, in YYYY-MM-DD format. Compares each invoice calendar date in its timezone (UTC when absent).
due_date_tostringExclusive upper bound on due_date, in YYYY-MM-DD format. Compares each invoice calendar date in its timezone (UTC when absent).
is_overduebooleanFilter by whether an open or partially_paid invoice has an outstanding balance after its due date ends in its timezone (UTC when absent). With a schedule, matches when any entry is overdue.
has_outstanding_balancebooleanFilter by whether settlement_amounts.outstanding_money is greater than zero.
sort_byenumField to sort by. Defaults to created_at; ties are broken by invoice_id.
created_atupdated_atdue_dateinvoice_numbersettlement_amounts.outstanding_money
sort_directionenumSort direction. Defaults to desc.
ascdesc
querystringSearch across invoice_id, invoice_number, external_reference_id, recipient_email, reference, po_number, and the customer name and email on the invoice. 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 inv_01.
expandarray of enumInclude related objects in the response. Supported expansions: customer, order. 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.
customerorder
Response · 200
A page of invoices.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoices.
{
"data": [
{
"cc_emails": [
"owner@example.com"
],
"collection": {
"mode": "buyer_initiated",
"payment_policy": {
"enabled_payment_options": [
"card",
"ach_debit"
],
"payment_option_limits": []
}
},
"collection_block_status": "none",
"created_at": "2026-03-21T15:03:00Z",
"customer_id": "cus_01J00000000000000000000000",
"delivery_mode": "email",
"due_date": "2026-03-31",
"external_reference_id": null,
"footer": null,
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_number": "1042",
"is_overdue": false,
"issued_at": "2026-03-21T15:04:05Z",
"late_fees": [],
"memo": null,
"merchant_id": "mer_01J00000000000000000000000",
"order_id": "ord_01J00000000000000000000000",
"payment_due": {
"due_date": "2026-03-31",
"type": "date"
},
"po_number": "PO-1042",
"pricing_amounts": {
"additive_tax_money": {
"amount": 500,
"currency": "USD"
},
"charge_money": {
"amount": 0,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"inclusive_tax_money": {
"amount": 2000,
"currency": "USD"
},
"requested_tip_money": {
"amount": 0,
"currency": "USD"
},
"subtotal_money": {
"amount": 14500,
"currency": "USD"
},
"tax_money": {
"amount": 2500,
"currency": "USD"
},
"total_money": {
"amount": 15000,
"currency": "USD"
}
},
"recipient_email": "buyer@example.com",
"reference": null,
"refund_status": "none",
"reminders_paused": false,
"schedule_entries": [],
"scheduled_issue_at": null,
"service_date": null,
"settlement_amounts": {
"credited_money": {
"amount": 0,
"currency": "USD"
},
"currently_due_money": {
"amount": 15000,
"currency": "USD"
},
"late_fee_money": {
"amount": 0,
"currency": "USD"
},
"net_collected_money": {
"amount": 0,
"currency": "USD"
},
"outstanding_money": {
"amount": 15000,
"currency": "USD"
},
"paid_money": {
"amount": 0,
"currency": "USD"
},
"refunded_money": {
"amount": 0,
"currency": "USD"
},
"written_off_money": {
"amount": 0,
"currency": "USD"
}
},
"snapshot": {
"buyer_tax_identity": null,
"customer_display_name": "Avery Buyer",
"customer_email": "buyer@example.com",
"line_items": [
{
"base_subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00VXZF3JM0JPANVXWR",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Consulting session",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"total_money": {
"amount": 12000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 12000,
"currency": "USD"
}
},
{
"base_subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00EEHJQZDWNCY60NBP",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Support",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"tax_money": {
"amount": 500,
"currency": "USD"
},
"total_money": {
"amount": 3000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_display_name": "Flint Services",
"seller_tax_identity": null,
"tax_breakdowns": [
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"percent": 20,
"price_mode": "inclusive",
"tax_breakdown_id": "txb_01KEZF7C00W6S9E4B2H82KNH8Z",
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 10000,
"currency": "USD"
}
},
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"percent": 20,
"price_mode": "additive",
"tax_breakdown_id": "txb_01KEZF7C0006JR90EZ0NBD9TT9",
"tax_money": {
"amount": 500,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"tax_currency_conversions": [
{
"currency": "GBP",
"exchange_rate": 0.7367567966,
"rate_date": "2026-03-01",
"rate_source": "hmrc",
"tax_money": {
"amount": 1842,
"currency": "GBP"
},
"taxable_money": {
"amount": 9209,
"currency": "GBP"
}
}
],
"tax_reverse_charge": null
},
"status": "open",
"subscription_id": null,
"supported_actions": [
"void",
"mark_uncollectible"
],
"updated_at": "2026-03-21T15:04:05Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6TB13NVC0F6HDW90YZQTD"
}Create invoice#
/v1/invoicesKey requiredRequires scope commerce.invoices.write
Rate limit: write
Creates an invoice draft from exactly one source: order_id for an order-backed invoice, or quick_pay for an invoice with a new backing order. Include issue to issue it immediately, using merchant_default delivery when issue is empty. An idempotency key is required for every request because issuing an automatic-collection invoice can charge the buyer. Replays preserve the original invoice result and recover its current public_url only within 24 hours of the original request; later replays omit public_url. Use GET /v1/invoices/{invoice_id} for the current invoice. If Flint returns IDEMPOTENCY_RECOVERY_REQUIRED, look up the original with GET /v1/invoices?idempotency_key={key}. Send the create again under a new key only after confirming it created no invoice, and contact Flint support with the request_id if you can't tell.
Request body
Send exactly one of these
The `order` variant of `CreateInvoiceRequest`.
cc_emailsarray of stringAdditional addresses copied on the invoice email and every reminder.
collectionone ofHow the invoice is collected. Omit it to use merchant_default. The invoice's collection object returns the resolved mode, and you can send it back unchanged on update.
external_reference_idstringCaller-owned identifier for this resource in an external system. Use it as your sync key: it isn't printed on the invoice, and GET /v1/invoices filters on it by exact match.
footerstringFine print at the bottom of the invoice and PDF. Omit it to use the invoice settings default_footer.
issueobjectIssue the invoice immediately after creating it. An empty object uses merchant_default delivery. Cannot be combined with a scheduled_issue_at timestamp.
memostringMessage to the customer, printed on the invoice and PDF. Omit it to use the invoice settings default_memo.
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.
order_idstringRequiredThe open order to bill. It must have no payments, refunds, or other active invoice. Send exactly one of order_id or quick_pay.
payment_dueone ofWhen the invoice is due. Omit it to use merchant_default. The invoice's payment_due object returns the resolved type, and you can send it back unchanged on update.
platform_fee_ruleobjectSets the platform fee for each payment Flint collects for this invoice. Only a partner app install token can set or remove a platform fee rule.
po_numberstringThe buyer's purchase order number, printed on the invoice and PDF.
recipient_emailstring or nullWhere Flint emails the invoice and its reminders. Defaults to the linked customer's email when omitted at creation. Send null to leave it unset at creation; PATCH null clears it. Required at issue when delivery resolves to email, and when you schedule the issue.
referencestringYour reference for the invoice, printed on the invoice and PDF. Put the buyer's purchase order number in po_number instead.
remit_to_addressobjectWhere the buyer sends offline payments, printed on the invoice. Omit it to use the invoice settings remit-to address.
schedule_entriesarray of one ofComplete draft payment schedule with at most 14 entries. Validation errors identify the entry by index, such as schedule_entries[3].kind. Enum values are case-sensitive and must not contain surrounding whitespace. Omission preserves the current or default schedule; [] clears the authored schedule. Null is not accepted. On PATCH, include invoice_schedule_entry_id to retain an entry and expected_version to detect concurrent edits.
scheduled_issue_atstring or nullWhen Flint issues and delivers this draft, as an RFC 3339 timestamp in the future. A scheduled issue delivers by email, so the draft needs recipient_email. Cannot be combined with issue. null is the same as omitting it.
service_datestringThe calendar date of the billed service, in YYYY-MM-DD format. The invoice and PDF print it as written, without timezone conversion.
typeenumRequiredSelects the type branch.
order
The `quick_pay` variant of `CreateInvoiceRequest`.
cc_emailsarray of stringAdditional addresses copied on the invoice email and every reminder.
collectionone ofHow the invoice is collected. Omit it to use merchant_default. The invoice's collection object returns the resolved mode, and you can send it back unchanged on update.
external_reference_idstringCaller-owned identifier for this resource in an external system. Use it as your sync key: it isn't printed on the invoice, and GET /v1/invoices filters on it by exact match.
footerstringFine print at the bottom of the invoice and PDF. Omit it to use the invoice settings default_footer.
issueobjectIssue the invoice immediately after creating it. An empty object uses merchant_default delivery. Cannot be combined with a scheduled_issue_at timestamp.
memostringMessage to the customer, printed on the invoice and PDF. Omit it to use the invoice settings default_memo.
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.
payment_dueone ofWhen the invoice is due. Omit it to use merchant_default. The invoice's payment_due object returns the resolved type, and you can send it back unchanged on update.
platform_fee_ruleobjectSets the platform fee for each payment Flint collects for this invoice. Only a partner app install token can set or remove a platform fee rule.
po_numberstringThe buyer's purchase order number, printed on the invoice and PDF.
quick_payobjectRequiredOrder details for an invoice with no existing order. Flint creates the backing order from them. Send exactly one of order_id or quick_pay.
recipient_emailstring or nullWhere Flint emails the invoice and its reminders. Defaults to the linked customer's email when omitted at creation. Send null to leave it unset at creation; PATCH null clears it. Required at issue when delivery resolves to email, and when you schedule the issue.
referencestringYour reference for the invoice, printed on the invoice and PDF. Put the buyer's purchase order number in po_number instead.
remit_to_addressobjectWhere the buyer sends offline payments, printed on the invoice. Omit it to use the invoice settings remit-to address.
schedule_entriesarray of one ofComplete draft payment schedule with at most 14 entries. Validation errors identify the entry by index, such as schedule_entries[3].kind. Enum values are case-sensitive and must not contain surrounding whitespace. Omission preserves the current or default schedule; [] clears the authored schedule. Null is not accepted. On PATCH, include invoice_schedule_entry_id to retain an entry and expected_version to detect concurrent edits.
scheduled_issue_atstring or nullWhen Flint issues and delivers this draft, as an RFC 3339 timestamp in the future. A scheduled issue delivers by email, so the draft needs recipient_email. Cannot be combined with issue. null is the same as omitting it.
service_datestringThe calendar date of the billed service, in YYYY-MM-DD format. The invoice and PDF print it as written, without timezone conversion.
typeenumRequiredSelects the type branch.
quick_pay
Response · 201
The created invoice, issued when issue is supplied.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/invoices \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"collection": {
"mode": "buyer_initiated",
"payment_policy": {
"enabled_payment_options": [
"card",
"ach_debit"
]
}
},
"memo": "Payment due within 10 days.",
"payment_due": {
"due_date": "2026-03-31",
"type": "date"
},
"po_number": "PO-1042",
"quick_pay": {
"customer_id": "cus_01J00000000000000000000000",
"line_items": [
{
"fulfillment": {
"requirement": "none"
},
"name": "Consulting session",
"quantity": 1,
"type": "custom",
"unit_price_money": {
"amount": 15000,
"currency": "USD"
}
}
]
},
"recipient_email": "buyer@example.com",
"type": "quick_pay"
}'Get invoice#
/v1/invoices/{invoice_id}Requires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns a single invoice by ID.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. 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: customer, order. Expansion requires commerce.invoices.read plus the read scope for each expanded resource. Limits: at most 10 unique expand paths per request.
customerorder
curl https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The requested invoice.
{
"data": {
"cc_emails": [
"owner@example.com"
],
"collection": {
"mode": "buyer_initiated",
"payment_policy": {
"enabled_payment_options": [
"card",
"ach_debit"
],
"payment_option_limits": []
}
},
"collection_block_status": "none",
"created_at": "2026-03-21T15:03:00Z",
"customer_id": "cus_01J00000000000000000000000",
"delivery_mode": "email",
"due_date": "2026-03-31",
"external_reference_id": null,
"footer": null,
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_number": "1042",
"is_overdue": false,
"issued_at": "2026-03-21T15:04:05Z",
"late_fees": [],
"memo": null,
"merchant_id": "mer_01J00000000000000000000000",
"order_id": "ord_01J00000000000000000000000",
"payment_due": {
"due_date": "2026-03-31",
"type": "date"
},
"po_number": "PO-1042",
"pricing_amounts": {
"additive_tax_money": {
"amount": 500,
"currency": "USD"
},
"charge_money": {
"amount": 0,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"inclusive_tax_money": {
"amount": 2000,
"currency": "USD"
},
"requested_tip_money": {
"amount": 0,
"currency": "USD"
},
"subtotal_money": {
"amount": 14500,
"currency": "USD"
},
"tax_money": {
"amount": 2500,
"currency": "USD"
},
"total_money": {
"amount": 15000,
"currency": "USD"
}
},
"recipient_email": "buyer@example.com",
"reference": null,
"refund_status": "none",
"reminders_paused": false,
"schedule_entries": [],
"scheduled_issue_at": null,
"service_date": null,
"settlement_amounts": {
"credited_money": {
"amount": 0,
"currency": "USD"
},
"currently_due_money": {
"amount": 15000,
"currency": "USD"
},
"late_fee_money": {
"amount": 0,
"currency": "USD"
},
"net_collected_money": {
"amount": 0,
"currency": "USD"
},
"outstanding_money": {
"amount": 15000,
"currency": "USD"
},
"paid_money": {
"amount": 0,
"currency": "USD"
},
"refunded_money": {
"amount": 0,
"currency": "USD"
},
"written_off_money": {
"amount": 0,
"currency": "USD"
}
},
"snapshot": {
"buyer_tax_identity": null,
"customer_display_name": "Avery Buyer",
"customer_email": "buyer@example.com",
"line_items": [
{
"base_subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00VXZF3JM0JPANVXWR",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Consulting session",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 12000,
"currency": "USD"
},
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"total_money": {
"amount": 12000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 12000,
"currency": "USD"
}
},
{
"base_subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"invoice_line_item_id": "invli_01KEZF7C00EEHJQZDWNCY60NBP",
"modifier_total_money": {
"amount": 0,
"currency": "USD"
},
"name": "Support",
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"product_type": null,
"quantity": 1,
"subtotal_money": {
"amount": 2500,
"currency": "USD"
},
"tax_money": {
"amount": 500,
"currency": "USD"
},
"total_money": {
"amount": 3000,
"currency": "USD"
},
"type": "custom",
"unit_price_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"merchant_display_name": "Flint Services",
"seller_tax_identity": null,
"tax_breakdowns": [
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"percent": 20,
"price_mode": "inclusive",
"tax_breakdown_id": "txb_01KEZF7C00W6S9E4B2H82KNH8Z",
"tax_money": {
"amount": 2000,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 10000,
"currency": "USD"
}
},
{
"calculation_type": "percentage",
"jurisdiction": {
"code": "GB",
"country": "GB",
"level": "country",
"name": "United Kingdom"
},
"order_id": "ord_01J00000000000000000000000",
"order_line_item_id": "li_01KEZF7C002F1VGGRYGQYEE05K",
"percent": 20,
"price_mode": "additive",
"tax_breakdown_id": "txb_01KEZF7C0006JR90EZ0NBD9TT9",
"tax_money": {
"amount": 500,
"currency": "USD"
},
"tax_type": "vat",
"taxability_reason": "standard_rated",
"taxable_money": {
"amount": 2500,
"currency": "USD"
}
}
],
"tax_currency_conversions": [
{
"currency": "GBP",
"exchange_rate": 0.7367567966,
"rate_date": "2026-03-01",
"rate_source": "hmrc",
"tax_money": {
"amount": 1842,
"currency": "GBP"
},
"taxable_money": {
"amount": 9209,
"currency": "GBP"
}
}
],
"tax_reverse_charge": null
},
"status": "open",
"subscription_id": null,
"supported_actions": [
"void",
"mark_uncollectible"
],
"updated_at": "2026-03-21T15:04:05Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6TB13NVC0F6HDW90YZQTD"
}Update invoice#
/v1/invoices/{invoice_id}IdempotentRequires scope commerce.invoices.write
Rate limit: write
Updates an invoice. To replace Quick Pay pricing, send quick_pay and the invoice's expected_version. You can also send expected_order_version to require a specific backing order version. Change the scheduled issue time in a separate request. Send [] to clear cc_emails or the authored schedule. On an open or partially paid invoice, you can change platform_fee_rule and reminders_paused. Send expected_version with platform_fee_rule.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
cc_emailsarray of stringAdditional addresses copied on the invoice email and every reminder. Send the complete list; [] removes every address.
collectionone ofHow the invoice is collected. Send the invoice's collection object back unchanged, or a new one. merchant_default resolves again from invoice settings when the draft is written.
expected_order_versionintegerOptional version last read from the invoice's backing order. Send it with quick_pay to require that exact order version.
expected_versionintegerInvoice version last read. Required when schedule_entries, quick_pay, or platform_fee_rule is present.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Use it as your sync key: it isn't printed on the invoice, and GET /v1/invoices filters on it by exact match. Send null to clear it.
footerstring or nullFine print at the bottom of the invoice and PDF. Send null to clear it.
memostring or nullMessage to the customer, printed on the invoice and PDF. Send null to clear it.
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.
payment_dueone ofWhen the invoice is due. Send the invoice's payment_due object back unchanged, or a new one. Sending payment_terms captures the term's current revision again.
platform_fee_ruleobject or nullReplace the whole rule or send null to remove it. Requires expected_version. Accepted while the invoice is draft, open, or partially paid. Only a partner app install token can set or remove a platform fee rule.
po_numberstring or nullThe buyer's purchase order number, printed on the invoice and PDF. Send null to clear it.
quick_payobjectReplace pricing on a Quick Pay draft with custom lines and no delivery, collection activity, charges, or tip. Recalculates the invoice and its backing order together. Omit to keep the pricing inputs.
recipient_emailstring or nullWhere Flint emails the invoice and its reminders. Defaults to the linked customer's email when omitted at creation. Send null to leave it unset at creation; PATCH null clears it. Required at issue when delivery resolves to email, and when you schedule the issue. Send null to clear it.
referencestring or nullYour reference for the invoice, printed on the invoice and PDF. Put the buyer's purchase order number in po_number instead. Send null to clear it.
reminders_pausedbooleanPauses (true) or resumes (false) the automatic reminder cadence. Accepted only on an open or partially paid invoice with a balance remaining, alone or with expected_version and platform_fee_rule. While paused, manual send-reminder calls still work, and invoice.overdue and invoice.late_fee_due still fire. On resume, reminder times that passed while paused do not fire. Sending the current value succeeds without changing the invoice.
remit_to_addressobjectWhere the buyer sends offline payments, printed on the invoice. Omit it to use the invoice settings remit-to address.
schedule_entriesarray of one ofComplete draft payment schedule with at most 14 entries. Validation errors identify the entry by index, such as schedule_entries[3].kind. Enum values are case-sensitive and must not contain surrounding whitespace. Omission preserves the current or default schedule; [] clears the authored schedule. Null is not accepted. On PATCH, include invoice_schedule_entry_id to retain an entry and expected_version to detect concurrent edits.
scheduled_issue_atstring or nullWhen Flint issues and delivers this draft, as an RFC 3339 timestamp in the future. A scheduled issue delivers by email, so the draft needs recipient_email. Clearing it cancels the scheduled issue. Send null to clear it.
service_datestring or nullThe calendar date of the billed service, in YYYY-MM-DD format. The invoice and PDF print it as written, without timezone conversion. Send null to clear it.
curl -X PATCH https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"cc_emails": [
"owner@example.com"
],
"memo": "Updated delivery instructions.",
"recipient_email": "accounts-payable@example.com"
}'List invoice activities#
/v1/invoices/{invoice_id}/activitiesRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns a read-only history of an invoice for timelines and debugging, newest first. Use sort_direction=asc for chronological order. Read the invoice and the resources each row references for authoritative state. Default order: created_at descending, then invoice_activity_id descending.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
sort_directionenumSort direction. Defaults to desc.
ascdesc
activity_typearray of enumFilter by activity_type. The output-only catch-all other is not accepted. 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.
draft_createdissuedsentdelivery_sentreminder_sentviewedpayment_attempt_startedpayment_appliedmanual_payment_recordedmanual_payment_reversedrefund_succeededvoidedtoken_regeneratedcollection_blockedcollection_block_resolvedupdatedmarked_uncollectiblepayment_processingissue_failedoverduereminder_duelate_fee_duelate_fee_assessedlate_fee_waivedcreditedpayment_failedpayment_returnedreopenedcredit_note_allocated
Response · 200
A page of invoice activities.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/activities \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice activities.
{
"data": [
{
"activity_type": "payment_applied",
"actor_type": "system",
"amount_money": {
"amount": 12500,
"currency": "USD"
},
"created_at": "2026-03-24T10:12:00Z",
"description": "Card payment applied",
"invoice_activity_id": "inevt_01J00000000000000000000001",
"invoice_id": "inv_01J00000000000000000000000",
"payment_intent_id": "pi_01J00000000000000000000000"
},
{
"activity_type": "delivery_sent",
"actor_id": "mer_01J00000000000000000000000",
"actor_type": "merchant",
"channel": "email",
"created_at": "2026-03-21T15:04:05Z",
"description": "Invoice email sent",
"invoice_activity_id": "inevt_01J00000000000000000000000",
"invoice_delivery_attempt_id": "indel_01J00000000000000000000000",
"invoice_id": "inv_01J00000000000000000000000",
"to_email": "buyer@example.com"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM617TSRDBTQGW12M994ADV"
}Collect invoice#
/v1/invoices/{invoice_id}/collectKey requiredRequires scope commerce.invoices.write
Rate limit: external_provider_action
Charges the invoice's saved payment method or the supplied saved payment method. Send a caller-chosen idempotency key, and reuse it when you retry the same collection.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
invoice_schedule_entry_idstringOptional. The schedule entry to collect. Only the earliest entry that is due and still has an outstanding balance can be collected; omit it to collect that entry. Not allowed on an invoice without a schedule.
payment_method_idstringOptional. The customer's saved payment method to charge. Omit it to charge the invoice's `collection.payment_method_id`. The method must be active, belong to the invoice's customer, allow charges without the buyer present, and be a payment option the invoice allows. If the invoice has no method either, the request is refused. Only invoices collected automatically can be collected this way.
Response · 200
The invoice and payment attempt.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/collect \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"payment_method_id": "pm_01KEZF7C00WX8CKEVFDMRMYMBM"
}'List invoice delivery attempts#
/v1/invoices/{invoice_id}/delivery-attemptsRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns email delivery attempts for send and reminder actions. Default order: created_at descending, then invoice_delivery_attempt_id ascending.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
Response · 200
A page of invoice delivery attempts.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/delivery-attempts \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice delivery attempts.
{
"data": [
{
"channel": "email",
"created_at": "2026-03-21T15:04:05Z",
"delivery_type": "send",
"invoice_delivery_attempt_id": "indel_01J00000000000000000000000",
"invoice_id": "inv_01J00000000000000000000000",
"sent_at": "2026-03-21T15:04:06Z",
"status": "sent",
"to_email": "buyer@example.com"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM65NRJ3CYPP62AKA2JCFJE"
}Issue invoice#
/v1/invoices/{invoice_id}/issueKey requiredRequires scope commerce.invoices.write
Rate limit: external_provider_action
Issues the invoice, creates the buyer-access link, and uses the selected delivery mode. Safe to retry with the same idempotency key.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
delivery_modeenumHow the invoice reaches its recipient. Omit it to use merchant_default.
merchant_defaultemailcaller_managed
expected_versionintegerInvoice version last read. Optional; a stale version returns VERSION_CONFLICT.
Response · 200
The issued invoice. Read delivery attempts with GET /v1/invoices/{invoice_id}/delivery-attempts.
Same response as Create invoice.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/issue \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"delivery_mode": "email"
}'List invoice late fees#
/v1/invoices/{invoice_id}/late-feesRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns the invoice's late fees sorted by ID in ascending order. Default order: invoice_late_fee_id ascending.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
Response · 200
A page of invoice late fees.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/late-fees \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice late fees.
{
"data": [],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Assess an invoice late fee#
/v1/invoices/{invoice_id}/late-feesIdempotentRequires scope commerce.invoices.write
Rate limit: write
Assesses the frozen late fee policy once per invoice or overdue schedule entry. The issued document remains unchanged.
Path parameters
invoice_idstringRequiredInvoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
invoice_schedule_entry_idstringRequired on an invoice with a payment schedule, where it names the entry whose outstanding balance and due date the fee is based on. Omit it on an invoice without a schedule.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/late-fees \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{}'Waive an unpaid invoice late fee#
/v1/invoices/{invoice_id}/late-fees/{invoice_late_fee_id}/waiveIdempotentRequires scope commerce.invoices.write
Rate limit: write
Waives the unpaid remainder of an assessed late fee. Collected money is not refunded. The reason is visible only to the merchant.
Path parameters
invoice_idstringRequiredInvoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
invoice_late_fee_idstringRequiredInvoice late fee ID. Must be a valid ID with prefix inlf_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
reason_messagestringRequiredYour note explaining this action.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/late-fees/inlf_01KEZF7C00NVR97MBH5AHR4W1X/waive \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"reason_message": "Courtesy waiver"
}'List invoice manual payments#
/v1/invoices/{invoice_id}/manual-paymentsRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Lists every manual payment, including reversed payments. Default order: received_at descending, then invoice_manual_payment_id descending.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
idempotency_keystringFilter by the original Idempotency-Key, after trimming surrounding whitespace. Matching is exact and case-sensitive. Returns only resources created in your caller namespace, plus resources created before caller scoping under the original key. Returns current authorized resources, not the recorded response. A pending resource does not prove that the operation succeeded, and an empty list does not prove that it had no effect. A match can show `idempotency_key: null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown.
Response · 200
A page of invoice manual payments.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/manual-payments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice manual payments.
{
"data": [
{
"amount_money": {
"amount": 5000,
"currency": "USD"
},
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_manual_payment_id": "omp_01J00000000000000000000000",
"note": "Paid by check #1024",
"payment_reference": "manual-payment-1024",
"received_at": "2026-03-22T10:00:00Z",
"status": "recorded",
"supported_actions": [
"reverse"
]
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Create invoice manual payment#
/v1/invoices/{invoice_id}/manual-paymentsKey requiredRequires scope commerce.invoices.write
Rate limit: write
Applies an offline/manual payment to an issued invoice. The monthly allowance for orders paid outside Flint never prevents recording a payment. When the order is above its current allowance, meta.warnings includes external_paid_orders_over_allowance with the order resource_id and the original usage period's resets_at. A replay preserves that original reset time. Recording is rejected with OPERATION_IN_PROGRESS while an online payment is still resolving; an idle open checkout does not block. A payment that clears the balance invalidates the open checkout session. Safe to retry with the same idempotency key.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
amount_moneyobjectRequiredPositive amount received outside Flint, in the invoice currency, no more than outstanding_money for an open invoice or written_off_money for an uncollectible invoice.
expected_invoice_versionintegerExpected version of the invoice.
notestringNote about the offline payment, up to 4096 characters.
payment_referencestringCaller-owned check, wire, or bank reference, stored unmodified.
received_atstringWhen the payment was received. Defaults to now.
Response · 201
The recorded payment and updated invoice.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/manual-payments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"amount_money": {
"amount": 5000,
"currency": "USD"
},
"note": "Paid by check #1024",
"payment_reference": "manual-payment-1024",
"received_at": "2026-03-22T10:00:00Z"
}'Get invoice manual payment#
/v1/invoices/{invoice_id}/manual-payments/{invoice_manual_payment_id}Requires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns one recorded or reversed manual payment for the invoice.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
invoice_manual_payment_idstringRequiredFlint invoice manual payment ID. Must be a valid ID with prefix omp_. 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 invoice manual payment.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/manual-payments/omp_01KEZF7C007J18203RBJKB9TYE \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The invoice manual payment.
{
"data": {
"amount_money": {
"amount": 5000,
"currency": "USD"
},
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_manual_payment_id": "omp_01J00000000000000000000000",
"note": "Paid by check #1024",
"payment_reference": "manual-payment-1024",
"received_at": "2026-03-22T10:00:00Z",
"status": "recorded",
"supported_actions": [
"reverse"
]
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Reverse manual invoice payment#
/v1/invoices/{invoice_id}/manual-payments/{invoice_manual_payment_id}/reverseIdempotentRequires scope commerce.invoices.write
Rate limit: write
Reverses the named manual payment in full and returns its amount to the invoice balance. To correct an amount, reverse the payment and record the correct payment. A retry with the same idempotency key replays the result; a retry without a key fails once the payment is already reversed.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
invoice_manual_payment_idstringRequiredFlint invoice manual payment ID. Must be a valid ID with prefix omp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerExpected version of the invoice.
reversal_notestringWhy the offline payment is being reversed, up to 4096 characters.
reversed_atstringWhen the payment was reversed. Defaults to now and must not precede received_at.
Response · 200
The reversed payment and updated invoice.
Same response as Create invoice manual payment.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/manual-payments/omp_01KEZF7C007J18203RBJKB9TYE/reverse \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"reversal_note": "Payment returned by bank"
}'Mark invoice uncollectible#
/v1/invoices/{invoice_id}/mark-uncollectibleIdempotentRequires scope commerce.invoices.write
Rate limit: write
Closes the outstanding balance as a write-off and releases the order's invoice collection authority. Safe to retry with the same idempotency key.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerVersion last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/mark-uncollectible \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expected_version": 1
}'List invoice payment attempts#
/v1/invoices/{invoice_id}/payment-attemptsRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Lists card and ACH collection attempts for an invoice in reverse chronological order. Default order: started_at descending, then invoice_payment_attempt_id descending.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
idempotency_keystringFilter by the original Idempotency-Key, after trimming surrounding whitespace. Matching is exact and case-sensitive. Returns only resources created in your caller namespace, plus resources created before caller scoping under the original key. Returns current authorized resources, not the recorded response. A pending resource does not prove that the operation succeeded, and an empty list does not prove that it had no effect. A match can show `idempotency_key: null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown.
Response · 200
A page of invoice payment attempts.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
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/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/payment-attempts \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A page of invoice payment attempts.
{
"data": [
{
"checkout_session_id": "cs_01J00000000000000000000000",
"expected_amount_money": {
"amount": 15000,
"currency": "USD"
},
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_payment_attempt_id": "invpa_01J00000000000000000000000",
"rail": "card",
"started_at": "2026-03-21T15:05:00Z",
"status": "open",
"supported_actions": [
"cancel"
],
"updated_at": "2026-03-21T15:05:00Z"
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Get invoice payment attempt#
/v1/invoices/{invoice_id}/payment-attempts/{invoice_payment_attempt_id}Requires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Returns one card or ACH collection attempt for the invoice.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
invoice_payment_attempt_idstringRequiredFlint invoice payment attempt ID. Must be a valid ID with prefix invpa_. 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 invoice payment attempt.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/payment-attempts/invpa_01KEZF7C00PMWEDPAYYEKDTPBX \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The invoice payment attempt.
{
"data": {
"checkout_session_id": "cs_01J00000000000000000000000",
"expected_amount_money": {
"amount": 15000,
"currency": "USD"
},
"idempotency_key": null,
"invoice_id": "inv_01J00000000000000000000000",
"invoice_payment_attempt_id": "invpa_01J00000000000000000000000",
"rail": "card",
"started_at": "2026-03-21T15:05:00Z",
"status": "open",
"supported_actions": [
"cancel"
],
"updated_at": "2026-03-21T15:05:00Z"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Cancel invoice payment attempt#
/v1/invoices/{invoice_id}/payment-attempts/{invoice_payment_attempt_id}/cancelIdempotentRequires scope commerce.invoices.write
Rate limit: external_provider_action
Cancels an active invoice payment attempt and its payment intent before the payment is processing. A processing ACH debit returns 409 ACTION_NOT_ALLOWED with reason in_progress and the attempt stays processing, matching payment intent and order payment attempt cancellation. Read supported_actions before offering cancellation. Safe to retry with the same idempotency key. Accepts an empty body or {}.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
invoice_payment_attempt_idstringRequiredFlint invoice payment attempt ID. Must be a valid ID with prefix invpa_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/payment-attempts/invpa_01KEZF7C00PMWEDPAYYEKDTPBX/cancel \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Download invoice PDF#
/v1/invoices/{invoice_id}/pdfRequires scope commerce.invoices.read or commerce.invoices.write
Rate limit: read
Downloads the merchant-authenticated PDF artifact generated from the invoice snapshot.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
A PDF document.
Content type application/pdf
curl https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/pdf \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"A PDF document.
Returns application/pdf.
Regenerate invoice public link#
/v1/invoices/{invoice_id}/regenerate-public-linkIdempotentRequires scope commerce.invoices.write
Rate limit: write
Revokes the current buyer-access link and all checkout credentials derived from it, then returns a new public_url. The current checkout session and its payment lineage are preserved. Fails with `ACTION_NOT_ALLOWED` and reason `in_progress` when the invoice's customer is being deleted or has been deleted. Safe to retry with the same idempotency key.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerVersion last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/regenerate-public-link \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expected_version": 1
}'Send invoice reminder#
/v1/invoices/{invoice_id}/send-reminderIdempotentRequires scope commerce.invoices.write
Rate limit: external_provider_action
Attempts a reminder email for an already issued collectible invoice. Safe to retry with the same idempotency key. Accepts an empty body or {}.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. 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 invoice after queuing the reminder. Read delivery attempts with GET /v1/invoices/{invoice_id}/delivery-attempts.
Same response as Create invoice.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/send-reminder \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Void invoice#
/v1/invoices/{invoice_id}/voidIdempotentRequires scope commerce.invoices.write
Rate limit: write
Voids a draft, open, or fully refunded partially paid invoice and releases its collection authority, stopping future automatic collection and reminders. For a Quick Pay invoice, also closes the order with closed_reason invoice_voided only when it is open with no retained payment and no fulfillment. Otherwise the order is unchanged. An invoice with an issued credit note against it cannot be voided until that credit note is voided.
Path parameters
invoice_idstringRequiredFlint invoice ID. Must be a valid ID with prefix inv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerVersion last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.
curl -X POST https://api.withflintpay.com/v1/invoices/inv_01KEZF7C00A5GEBMWHEAJFSAR4/void \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expected_version": 1
}'Was this helpful?