Merchant billing
Merchant billing is what you owe Flint and the account credit you hold against it: event fees such as dispute fees and the monthly fee for orders paid outside Flint past the allowance, invoices for your Flint subscription, the custom domain add-on, corrections to fees Flint already charged, and credit Flint issues you. Flint collects what you owe out of your Flint balance. Use these routes to show the balance in your own tools, explain each charge, and book it in your accounting system.
Merchant billing is separate from two things that sound like it:
- Your customers' billing. Subscriptions and invoices are you charging your customers. Merchant billing never changes their balances or payments.
- The processing fee on a payment. That fee comes out of each payment as it settles and stays on the payment. See Processing fees. A later correction to one of those fees lands here, as a
correctionentry.
Every route is read-only and needs the merchant_billing.read scope. Call them with your own API key. Partner app tokens can't read merchant billing. Merchant billing walks through each task with examples.
Three resources#
| Resource | ID prefix | What it holds |
|---|---|---|
| Balance | mbbal_ | One currency's current position: outstanding_money you owe, available_credit_money you hold, and past_due_money, the part of what you owe that is past due. The ID stays the same for a currency. |
| Entry | mbe_ | One change to either amount, such as a fee, a credit, or a collection. Entries are only ever added, and reading one again returns the same values. |
| Invoice | msinv_ | An invoice Flint issued you for a billing period of your Flint subscription, with its line_items. |
GET /v1/merchant-billing-balances returns every balance on one page. It takes no query parameters, including page_size and page_token. The entry and invoice lists page with page_size and next_page_token, as described in Pagination.
How entries move the balance#
Both balance amounts are unsigned, and credit isn't already subtracted from outstanding_money. Credit reduces what you owe only when Flint applies it, as a credit_applied entry.
Each entry moves the two amounts separately, with signed effects:
outstanding_effect_moneyis the change to what you owe.available_credit_effect_moneyis the change to your credit.net_billing_effect_moneyis the first minus the second. It's zero forcredit_applied, because applying credit settles an amount without moving money.
An invoice shows up in your entries as an invoice entry for its subtotal, then the entries that settle it, each carrying the same merchant_billing_invoice_id:
- Invoice issued
outstanding_effect_moneyinvoice, thesubtotal_money$49.00 - Credit applied
outstanding_effect_moneycredit_applied−$10.00 - Collected from your Flint balance
outstanding_effect_moneycollection−$39.00 - Still owed for this invoice$0.00
The credit_applied entry's available_credit_effect_money is also minus $10.00, so its net effect is zero. Settling entries, such as collections, applied credit, reversals, and write-offs, point at the entry they act on with related_merchant_billing_entry_id. What builds the balance lists all eleven entry types and how each one moves the two amounts.
Invoice status#
- open moves to written_off on Flint stops collecting
- open moves to paid on Flint collects it
- paid moves to open on collection reversed
status on merchant billing invoiceopenFlint issued the invoice and hasn't collected all of it.outstanding_moneyis what's left. A reversed collection returns a paid invoice here and removes itspaid_at.paidFlint collected the invoice, andpaid_atsays when. An invoice that credit covers in full is issued aspaid.written_offFinalFlint stopped collecting the invoice.
On every invoice, subtotal_money is the sum of the subscription line items and applied_credit_money is the sum of the credit line items. total_money is subtotal_money minus applied_credit_money, and credit never exceeds the subtotal. Line item amounts are unsigned, so read type to know which way a line moves the invoice. To find unpaid invoices, list with status=open.
Collections on your Flint balance#
Each collection posts a balance transaction on money movement, linked to its billing entry by balance_transaction_id:
Balance transaction type | Amount | Billing entry |
|---|---|---|
merchant_billing_collection | Negative, with a fee_money of 0 | collection |
merchant_billing_collection_reversal | Positive. related_balance_transaction_ids holds the collection it reverses. | collection_reversal |
To find what a collection paid, list entries with its balance_transaction_id. The entry's related_merchant_billing_entry_id is the fee or invoice it paid. To list collections against invoices from the other side, call GET /v1/balance-transactions?related_resource_type=merchant_billing_invoice.
Keep a copy of your entries#
The entry list returns the newest occurred_at first. Each entry also has a created_at, when Flint recorded it, and the two can be far apart: a collection whose outcome arrives late is recorded after entries that occurred later. To keep a copy in sync:
- Run a pass when
merchant_billing_balance.updatedarrives, or on your own schedule. - List entries with
created_afterset a few minutes before the latestcreated_atyou stored, and read every page. - Store each entry by
merchant_billing_entry_id. An entry you already hold comes back unchanged.
To book a closed period, generate the merchant_billing_itemized_v1 report instead. It has the same entries, and generation fails with data_unavailable until Flint can show the period is complete. Sync new entries covers the full loop.
When an amount is past due#
Flint keeps trying to collect a past-due amount from your Flint balance and notifies you before anything is held. A past-due balance never stops payments. Payouts can be held only when what's past due in one currency totals at least 25 units of that currency, such as 25 USD or 25 JPY. Flint then announces a hold date at least seven days ahead, 21 days after the due date at the earliest. On or after that date Flint tries once more to collect, and if that fails, it holds payouts: creating a payout or changing the payout schedule returns 409 MERCHANT_NOT_READY with details[0].reason billing_suspended, the automatic payout schedule waits, and merchant.readiness_updated fires. Payouts resume on their own once what's past due is below that floor in every currency, such as when it's paid. If a balance is past due gives the timeline. A past-due fee for orders paid outside Flint is collected the same way but doesn't count toward the floor and never holds payouts.
Each balance carries the timeline's dates, so you can warn the business, or a platform can warn its merchants, before payouts are held. No event fires when an amount goes past due, so read the balances on a schedule and compare these dates with the current time:
| Field | Meaning |
|---|---|
past_due_money | The amount past its due date and still unpaid. Zero when nothing is past due. |
past_due_at | The due date of the oldest unpaid past-due amount. Left out when nothing is past due. |
payout_hold_at | The hold date Flint announced, the earliest it can hold payouts if the amount is still unpaid. It's at least seven days after the notice that announced it and never moves earlier while the amount stays at or above the floor. The hold can start later, for example while the last collection attempt is in progress. Left out when no hold is scheduled: the past-due amount in that currency is below the floor, the only past-due amount is an orders paid outside Flint fee, or Flint hasn't announced a date yet. A passed payout_hold_at doesn't mean payouts are held: readiness.payouts.status_reason of billing_suspended on the merchant does. |
Webhook events#
- merchant_
billing_ balance. updated What you owe or the credit you hold changed. Carries the balance. - merchant_
billing_ invoice. issued Flint issued you an invoice. Carries the invoice. - merchant_
billing_ invoice. updated An invoice changed status. Carries the invoice.
No event fires per entry, and the balance event doesn't list the entries behind the change. Read them with created_after.
Related#
Merchant billingTrace a dispute's fee, explain a collection, sync entries, and handle a past-due balance.Event feesThe fees for disputes, failed ACH payments, and bank verification.ReconciliationWhat each balance transaction type, including collections, does to your Flint balance.The Merchant billing invoice object#
A Flint invoice for the merchant's Flint subscription.
Returned by GET /v1/merchant-billing-invoices/{merchant_billing_invoice_id} and carried by the endpoints below.
Attributes
applied_credit_moneyobjectRequiredCredit applied to the invoice: the sum of its credit line items. Never more than subtotal_money.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
created_atstringRequiredWhen Flint created the invoice.
due_atstringRequiredWhen payment of the invoice is due.
invoice_numberstringRequiredUnique invoice number; don't parse it. New numbers use FLINT-{account code}-{0001}, sequential per billing account; existing numbers are retained.
issued_atstringRequiredWhen Flint issued the invoice.
line_itemsarray of objectRequiredInvoice-owned line items. Subscription totals sum to subtotal_money; credit totals sum to applied_credit_money.
created_atstringRequiredWhen Flint added this line to the invoice.
merchant_billing_invoice_line_item_idstringRequiredStable identifier of this line item.
namestringRequiredName of the subscription charge or credit.
quantityintegerRequiredWhole-number quantity; fractional quantities are not supported.
total_moneyobjectRequiredUnsigned line total, calculated as quantity multiplied by unit_price_money.
typeenumRequiredWhether the line adds a subscription charge or applies credit.
subscriptioncredit
unit_price_moneyobjectRequiredUnsigned price of one unit. total_money is quantity times this amount.
merchant_billing_invoice_idstringRequiredStable identifier of the invoice.
outstanding_moneyobjectRequiredPart of total_money Flint still has to collect.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
paid_atstringWhen the invoice was paid. Removed if a reversed collection reopens it.
period_end_atstringRequiredExclusive invoice billing period end as an RFC 3339 UTC instant.
period_start_atstringRequiredInclusive invoice billing period start as an RFC 3339 UTC instant.
statusenumRequiredCollection state of the invoice: open, paid, or written_off. Flint issues an invoice as open and marks it paid once collected; a reversed collection returns it to open, and written_off means Flint stopped collecting it.
openpaidwritten_off
subtotal_moneyobjectRequiredSum of the subscription line items, before credit.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
total_moneyobjectRequiredWhat the invoice charges: subtotal_money minus applied_credit_money.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
updated_atstringRequiredWhen the invoice last changed.
{
"applied_credit_money": {
"amount": 0,
"currency": "USD"
},
"created_at": "2026-07-03T14:30:00Z",
"due_at": "2026-07-03T14:30:00Z",
"invoice_number": "FLINT-1001",
"issued_at": "2026-07-03T14:30:00Z",
"line_items": [],
"merchant_billing_invoice_id": "msinv_01KEZF7C00YVV9RE19EJRDCAGN",
"outstanding_money": {
"amount": 1000,
"currency": "USD"
},
"period_end_at": "2026-07-01T00:00:00Z",
"period_start_at": "2026-06-01T00:00:00Z",
"status": "open",
"subtotal_money": {
"amount": 1000,
"currency": "USD"
},
"total_money": {
"amount": 1000,
"currency": "USD"
},
"updated_at": "2026-07-03T14:30:00Z"
}The Merchant billing balance object#
Current Flint merchant billing balance for one billing account and currency.
Returned by GET /v1/merchant-billing-balances/{merchant_billing_balance_id} and carried by the endpoints below.
Attributes
available_credit_moneyobjectRequiredAccount credit Flint holds for you that hasn't been applied yet, unsigned. Each application lowers both amounts and records a credit_applied entry.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
currencystringRequiredISO 4217 currency code.
merchant_billing_balance_idstringRequiredStable identifier for this billing account and currency balance projection.
observed_atstringRequiredRFC3339 timestamp for the balance snapshot.
outstanding_moneyobjectRequiredWhat you owe Flint now, unsigned. Available credit isn't subtracted: credit lowers this amount only when Flint applies it, which records a credit_applied entry.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
past_due_atstringDue date of the oldest unpaid past-due amount, as an RFC 3339 UTC timestamp. Omitted when nothing is past due.
past_due_moneyobjectRequiredAmount that is past its due date and still unpaid. Zero when nothing is past due.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
payout_hold_atstringTime at which Flint holds payouts if the suspendable past-due amount is still unpaid and totals at least 25 major currency units in this currency (25 USD for USD billing), as an RFC 3339 UTC timestamp. Flint attempts collection from the available balance before holding payouts. The hold can begin later than this while a collection is in progress. Payouts are actually held when `readiness.payouts.status_reason` on the Merchant is `billing_suspended`. Omitted when no hold is scheduled, including when suspendable past-due amounts in this currency are below that floor or the only past-due amounts never hold payouts.
{
"available_credit_money": {
"amount": 0,
"currency": "USD"
},
"currency": "USD",
"merchant_billing_balance_id": "mbbal_01KEZF7C00424655RWTYNEQHX0",
"observed_at": "2026-07-03T14:30:00Z",
"outstanding_money": {
"amount": 5000,
"currency": "USD"
},
"past_due_money": {
"amount": 0,
"currency": "USD"
}
}List merchant billing balances#
/v1/merchant-billing-balancesRequires scope merchant_billing.read
Rate limit: read
Returns what the merchant currently owes Flint and owns as account credit by currency. All balances fit on one page, so next_page_token is omitted. Default order: merchant_billing_balance_id descending; this key uniquely orders the results.
Response · 200
Merchant billing balances for the authenticated merchant environment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
available_credit_moneyobjectRequiredAccount credit Flint holds for you that hasn't been applied yet, unsigned. Each application lowers both amounts and records a credit_applied entry.
currencystringRequiredISO 4217 currency code.
merchant_billing_balance_idstringRequiredStable identifier for this billing account and currency balance projection.
observed_atstringRequiredRFC3339 timestamp for the balance snapshot.
outstanding_moneyobjectRequiredWhat you owe Flint now, unsigned. Available credit isn't subtracted: credit lowers this amount only when Flint applies it, which records a credit_applied entry.
past_due_atstringDue date of the oldest unpaid past-due amount, as an RFC 3339 UTC timestamp. Omitted when nothing is past due.
past_due_moneyobjectRequiredAmount that is past its due date and still unpaid. Zero when nothing is past due.
payout_hold_atstringTime at which Flint holds payouts if the suspendable past-due amount is still unpaid and totals at least 25 major currency units in this currency (25 USD for USD billing), as an RFC 3339 UTC timestamp. Flint attempts collection from the available balance before holding payouts. The hold can begin later than this while a collection is in progress. Payouts are actually held when `readiness.payouts.status_reason` on the Merchant is `billing_suspended`. Omitted when no hold is scheduled, including when suspendable past-due amounts in this currency are below that floor or the only past-due amounts never hold payouts.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/merchant-billing-balances \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Merchant billing balances for the authenticated merchant environment.
{
"data": [
{
"available_credit_money": {
"amount": 0,
"currency": "USD"
},
"currency": "USD",
"merchant_billing_balance_id": "mbbal_01KEZF7C00424655RWTYNEQHX0",
"observed_at": "2026-07-03T14:30:00Z",
"outstanding_money": {
"amount": 5000,
"currency": "USD"
},
"past_due_money": {
"amount": 0,
"currency": "USD"
}
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Get a merchant billing balance#
/v1/merchant-billing-balances/{merchant_billing_balance_id}Requires scope merchant_billing.read
Rate limit: read
Returns what the merchant currently owes Flint and owns as account credit in one currency.
Path parameters
merchant_billing_balance_idstringRequiredFlint merchant billing balance ID. Must be a valid ID with prefix mbbal_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
Returns what the merchant currently owes Flint and owns as account credit in one currency.
dataobjectRequiredResource, collection, or operation result returned by this request.
available_credit_moneyobjectRequiredAccount credit Flint holds for you that hasn't been applied yet, unsigned. Each application lowers both amounts and records a credit_applied entry.
currencystringRequiredISO 4217 currency code.
merchant_billing_balance_idstringRequiredStable identifier for this billing account and currency balance projection.
observed_atstringRequiredRFC3339 timestamp for the balance snapshot.
outstanding_moneyobjectRequiredWhat you owe Flint now, unsigned. Available credit isn't subtracted: credit lowers this amount only when Flint applies it, which records a credit_applied entry.
past_due_atstringDue date of the oldest unpaid past-due amount, as an RFC 3339 UTC timestamp. Omitted when nothing is past due.
past_due_moneyobjectRequiredAmount that is past its due date and still unpaid. Zero when nothing is past due.
payout_hold_atstringTime at which Flint holds payouts if the suspendable past-due amount is still unpaid and totals at least 25 major currency units in this currency (25 USD for USD billing), as an RFC 3339 UTC timestamp. Flint attempts collection from the available balance before holding payouts. The hold can begin later than this while a collection is in progress. Payouts are actually held when `readiness.payouts.status_reason` on the Merchant is `billing_suspended`. Omitted when no hold is scheduled, including when suspendable past-due amounts in this currency are below that floor or the only past-due amounts never hold payouts.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/merchant-billing-balances/mbbal_01KEZF7C002TWWZA70R4DRVJC9 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Returns what the merchant currently owes Flint and owns as account credit in one currency.
{
"data": {
"available_credit_money": {
"amount": 0,
"currency": "USD"
},
"currency": "USD",
"merchant_billing_balance_id": "mbbal_01KEZF7C00424655RWTYNEQHX0",
"observed_at": "2026-07-03T14:30:00Z",
"outstanding_money": {
"amount": 5000,
"currency": "USD"
},
"past_due_money": {
"amount": 0,
"currency": "USD"
}
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}List merchant billing entries#
/v1/merchant-billing-entriesRequires scope merchant_billing.read
Rate limit: read
Returns immutable merchant billing entries for the authenticated merchant environment, newest occurred_at first. Entries in the same second are ordered by type rank, then merchant_billing_entry_id; all three keys are descending. Type ranks are 10 for event_fee, custom_domain, and invoice; 20 for correction; 30 for credit_issued; 40 for credit_applied and credit_refunded; 50 for collection and custom_domain_collection; and 60 for collection_reversal and write_off. An entry can be recorded after entries that occurred later, such as a collection whose bank outcome arrives late. created_at is set when Flint records an entry and never changes or uses a source event timestamp. To pick up new entries, filter on created_after. Overlap successive passes by a few minutes and deduplicate by merchant_billing_entry_id because concurrent commits can become visible after a pass finishes. Re-reading the same entry always returns the same values. To export an interval, use merchant_billing_itemized_v1. It fails with data_unavailable when billing projections or membership history are inconsistent, collection outcome or balance transaction evidence is missing, or an entry is invalid. This list does not run the report interval preflights. Default order: occurred_at descending, then the entry type's rank (descending), then merchant_billing_entry_id descending.
Query parameters
typearray of enumFilter by one or more merchant billing entry types. Repeat or comma-separate values. 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.
event_feeinvoicecustom_domaincustom_domain_collectioncorrectioncredit_issuedcredit_appliedcredit_refundedcollectioncollection_reversalwrite_off
currencystringFilter by currency. Currency is normalized to uppercase.
occurred_afterstringInclusive lower bound on occurred_at.
occurred_beforestringExclusive upper bound on occurred_at.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
payment_intent_idstringFilter by Flint payment intent ID.
dispute_idstringFilter by Flint dispute ID.
merchant_billing_invoice_idstringFilter by Flint merchant billing invoice ID.
balance_transaction_idstringFilter by Flint balance transaction ID.
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
Merchant billing entries for the authenticated merchant environment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
available_credit_effect_moneyobjectRequiredSigned change in available billing credit. credit_issued increases it; credit_applied and credit_refunded decrease it. Other entry types do not change it.
balance_transaction_idstringBalance transaction for this collection or collection reversal, when present.
created_atstringRequiredWhen Flint inserted the entry. Never changes and is never backdated from occurred_at. Overlap created_after passes by a few minutes and deduplicate by merchant_billing_entry_id to pick up late commits.
descriptionstringRequiredHuman-readable description of the billing event.
dispute_idstringRelated dispute, when the entry is associated with a dispute.
event_fee_typeenumEvent fee category. Present only for event_fee entries. card_dispute and card_dispute_countered apply only when Flint paid the processor's dispute fee; a fee already deducted from your balance is recorded on the dispute balance transaction instead.
bank_verificationfailed_ach_paymentach_disputecard_disputecard_dispute_counteredexternal_paid_order_overage
merchant_billing_entry_idstringRequiredStable entry ID. Re-reading an entry returns the same values.
merchant_billing_invoice_idstringRelated invoice issued by Flint, when applicable.
net_billing_effect_moneyobjectRequiredSigned outstanding effect minus the available credit effect. Charges and collection_reversal are positive; credit_issued, collection, custom_domain_collection, and write_off are negative; credit_refunded is positive; credit_applied is zero; correction may be positive or negative.
occurred_atstringRequiredWhen the billing event happened. An entry can be recorded after entries that occurred later.
outstanding_effect_moneyobjectRequiredSigned change in the amount owed Flint. Charges (event_fee, invoice, custom_domain) and collection_reversal increase it; credit_applied, collection, custom_domain_collection, and write_off decrease it; correction may increase or decrease it. Credit issuance and refund do not change it.
payment_intent_idstringRelated payment intent, when the entry is associated with a payment.
related_merchant_billing_entry_idstringEntry corrected, credited, collected, reversed, or written off by this entry, when applicable.
typeenumRequiredThe billing event represented by this entry.
event_feeinvoicecustom_domaincustom_domain_collectioncorrectioncredit_issuedcredit_appliedcredit_refundedcollectioncollection_reversalwrite_off
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/merchant-billing-entries \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Merchant billing entries for the authenticated merchant environment.
{
"data": [
{
"available_credit_effect_money": {
"amount": 0,
"currency": "USD"
},
"created_at": "2026-07-03T14:30:00Z",
"description": "Invoice charge",
"merchant_billing_entry_id": "mbe_01KEZF7C00S06A5G1B4867TF78",
"merchant_billing_invoice_id": "msinv_01KEZF7C00YVV9RE19EJRDCAGN",
"net_billing_effect_money": {
"amount": 1000,
"currency": "USD"
},
"occurred_at": "2026-07-03T14:30:00Z",
"outstanding_effect_money": {
"amount": 1000,
"currency": "USD"
},
"type": "invoice"
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}List merchant billing invoices#
/v1/merchant-billing-invoicesRequires scope merchant_billing.read
Rate limit: read
Returns invoices issued by Flint for the authenticated merchant environment. Default order: merchant_billing_invoice_id descending; this key uniquely orders the results.
Query parameters
statusarray of enumFilter by one or more merchant billing invoice statuses. 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.
openpaidwritten_off
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
Returns invoices issued by Flint for the authenticated merchant environment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
applied_credit_moneyobjectRequiredCredit applied to the invoice: the sum of its credit line items. Never more than subtotal_money.
created_atstringRequiredWhen Flint created the invoice.
due_atstringRequiredWhen payment of the invoice is due.
invoice_numberstringRequiredUnique invoice number; don't parse it. New numbers use FLINT-{account code}-{0001}, sequential per billing account; existing numbers are retained.
issued_atstringRequiredWhen Flint issued the invoice.
line_itemsarray of objectRequiredInvoice-owned line items. Subscription totals sum to subtotal_money; credit totals sum to applied_credit_money.
merchant_billing_invoice_idstringRequiredStable identifier of the invoice.
outstanding_moneyobjectRequiredPart of total_money Flint still has to collect.
paid_atstringWhen the invoice was paid. Removed if a reversed collection reopens it.
period_end_atstringRequiredExclusive invoice billing period end as an RFC 3339 UTC instant.
period_start_atstringRequiredInclusive invoice billing period start as an RFC 3339 UTC instant.
statusenumRequiredCollection state of the invoice: open, paid, or written_off. Flint issues an invoice as open and marks it paid once collected; a reversed collection returns it to open, and written_off means Flint stopped collecting it.
openpaidwritten_off
subtotal_moneyobjectRequiredSum of the subscription line items, before credit.
total_moneyobjectRequiredWhat the invoice charges: subtotal_money minus applied_credit_money.
updated_atstringRequiredWhen the invoice last changed.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/merchant-billing-invoices \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Returns invoices issued by Flint for the authenticated merchant environment.
{
"data": [
{
"applied_credit_money": {
"amount": 0,
"currency": "USD"
},
"created_at": "2026-07-03T14:30:00Z",
"due_at": "2026-07-03T14:30:00Z",
"invoice_number": "FLINT-1001",
"issued_at": "2026-07-03T14:30:00Z",
"line_items": [],
"merchant_billing_invoice_id": "msinv_01KEZF7C00YVV9RE19EJRDCAGN",
"outstanding_money": {
"amount": 1000,
"currency": "USD"
},
"period_end_at": "2026-07-01T00:00:00Z",
"period_start_at": "2026-06-01T00:00:00Z",
"status": "open",
"subtotal_money": {
"amount": 1000,
"currency": "USD"
},
"total_money": {
"amount": 1000,
"currency": "USD"
},
"updated_at": "2026-07-03T14:30:00Z"
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Get a merchant billing invoice#
/v1/merchant-billing-invoices/{merchant_billing_invoice_id}Requires scope merchant_billing.read
Rate limit: read
Returns one invoice issued by Flint for the authenticated merchant environment.
Path parameters
merchant_billing_invoice_idstringRequiredFlint merchant billing invoice ID. Must be a valid ID with prefix msinv_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
Returns one invoice issued by Flint for the authenticated merchant environment.
dataobjectRequiredResource, collection, or operation result returned by this request.
applied_credit_moneyobjectRequiredCredit applied to the invoice: the sum of its credit line items. Never more than subtotal_money.
created_atstringRequiredWhen Flint created the invoice.
due_atstringRequiredWhen payment of the invoice is due.
invoice_numberstringRequiredUnique invoice number; don't parse it. New numbers use FLINT-{account code}-{0001}, sequential per billing account; existing numbers are retained.
issued_atstringRequiredWhen Flint issued the invoice.
line_itemsarray of objectRequiredInvoice-owned line items. Subscription totals sum to subtotal_money; credit totals sum to applied_credit_money.
merchant_billing_invoice_idstringRequiredStable identifier of the invoice.
outstanding_moneyobjectRequiredPart of total_money Flint still has to collect.
paid_atstringWhen the invoice was paid. Removed if a reversed collection reopens it.
period_end_atstringRequiredExclusive invoice billing period end as an RFC 3339 UTC instant.
period_start_atstringRequiredInclusive invoice billing period start as an RFC 3339 UTC instant.
statusenumRequiredCollection state of the invoice: open, paid, or written_off. Flint issues an invoice as open and marks it paid once collected; a reversed collection returns it to open, and written_off means Flint stopped collecting it.
openpaidwritten_off
subtotal_moneyobjectRequiredSum of the subscription line items, before credit.
total_moneyobjectRequiredWhat the invoice charges: subtotal_money minus applied_credit_money.
updated_atstringRequiredWhen the invoice last changed.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/merchant-billing-invoices/msinv_01KEZF7C00MB754KPEPACGRMNP \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Returns one invoice issued by Flint for the authenticated merchant environment.
{
"data": {
"applied_credit_money": {
"amount": 0,
"currency": "USD"
},
"created_at": "2026-07-03T14:30:00Z",
"due_at": "2026-07-03T14:30:00Z",
"invoice_number": "FLINT-1001",
"issued_at": "2026-07-03T14:30:00Z",
"line_items": [],
"merchant_billing_invoice_id": "msinv_01KEZF7C00YVV9RE19EJRDCAGN",
"outstanding_money": {
"amount": 1000,
"currency": "USD"
},
"period_end_at": "2026-07-01T00:00:00Z",
"period_start_at": "2026-06-01T00:00:00Z",
"status": "open",
"subtotal_money": {
"amount": 1000,
"currency": "USD"
},
"total_money": {
"amount": 1000,
"currency": "USD"
},
"updated_at": "2026-07-03T14:30:00Z"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Was this helpful?