Skip to content

Merchant billing

Merchant billing is what you owe Flint and the account credit you hold against it: event fees such as ACH return fees or a card dispute cost Flint paid, invoices for your Flint subscription, the custom domain add-on, corrections to fees Flint already charged, and the credit Flint issues you. Flint collects what you owe out of your Flint balance. Use the merchant billing API to show the balance in your own tools, explain each charge, and book it in your accounting system.

It covers two things it's easy to confuse it with:

  • Not your customers' billing. Subscription billing is you charging your customers. Merchant billing never changes your customers' balances or payments.
  • Not 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 does land here, as a correction entry.

In the Dashboard, the Flint billing page shows the same balance and lists every entry under Billing activity.

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.

What you owe right now#

cURL
curl https://api.withflintpay.com/v1/merchant-billing-balances \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "merchant_billing_balance_id": "mbbal_01KWM6WAHG3N9Q8T2V5XRZ7C4D",
      "currency": "USD",
      "outstanding_money": { "amount": 1500, "currency": "USD" },
      "available_credit_money": { "amount": 0, "currency": "USD" },
      "past_due_money": { "amount": 0, "currency": "USD" },
      "observed_at": "2026-10-14T16:05:00Z"
    }
  ],
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4N"
}

You get one balance per currency:

  • outstanding_money is what you owe Flint now.
  • available_credit_money is account credit you hold and haven't used.
  • past_due_money is the part of what you owe that is past its due date and still unpaid. It's zero when nothing is past due, and then past_due_at and payout_hold_at are left out. See If a balance is past due.
  • observed_at is when Flint took the snapshot.
  • merchant_billing_balance_id stays the same for a currency, so GET /v1/merchant-billing-balances/{merchant_billing_balance_id} reads the same balance again.

Both amounts are unsigned, and credit isn't already subtracted from outstanding_money. Credit reduces what you owe only when Flint applies it, and each application is its own credit_applied entry.

Every balance comes back on one page. The response has no next_page_token, and the list accepts no query parameters, including page_size and page_token.

What builds the balance#

Every change to the balance is one entry, and every entry has one of eleven types. Each entry moves the two amounts separately: outstanding_effect_money is its signed change to what you owe, and available_credit_effect_money is its signed change to your credit.

typeWhat happenedWhat you oweYour credit
event_feeA fee for an ACH return, a failed ACH payment, instant bank verification, a card dispute whose processor fee Flint paid, or orders paid outside Flint past the monthly allowance.UpNo change
invoiceFlint issued you an invoice for a billing period. The effect is the invoice's subtotal_money, before credit.UpNo change
custom_domainThe monthly charge for the custom domain add-on was paid.UpNo change
custom_domain_collectionThe collection of that charge, recorded with it for the same amount.DownNo change
correctionA finalized correction to a fee Flint already charged you.Up or downNo change
credit_issuedFlint gave you account credit.No changeUp
credit_appliedCredit was put toward what you owe, such as an invoice or an event fee.DownDown by the same amount
credit_refundedFlint paid credit back to you instead of applying it to what you owe.No changeDown
collectionFlint collected an amount you owe out of your Flint balance.DownNo change
collection_reversalA collection came back, so the amount is owed again.UpNo change
write_offFlint stopped collecting an amount you owed and cleared it.DownNo change

net_billing_effect_money is outstanding_effect_money minus available_credit_effect_money, the entry's net effect on your position with Flint. It's zero for credit_applied, because applying credit settles an amount without any money moving. It's negative for credit_issued and positive for credit_refunded.

event_fee entries name the event in event_fee_type: bank_verification, failed_ach_payment, ach_dispute, card_dispute, card_dispute_countered, or external_paid_order_overage. No other type carries that field. card_dispute and card_dispute_countered apply only when Flint paid the corresponding processor fee. If that fee was deducted directly from your balance, it is on the dispute transaction as fee_money and carries no additional event fee for the same cost. The default amount for each is under Event fees. Orders paid outside Flint explains external_paid_order_overage.

Entries are only ever added. Reading an entry again always returns the same values, and its merchant_billing_entry_id (prefix mbe_) never changes. Each entry has two times, both in whole seconds:

  • occurred_at is when the billing event happened.
  • created_at is when Flint recorded it.

They can be far apart. An entry can be recorded after entries that occurred later, such as a collection whose outcome arrives late. That's why you sync on created_after.

Orders paid outside Flint#

Live accounts get a monthly allowance for orders paid outside Flint, such as a check recorded on an invoice. Recording a payment is never refused. Record an offline payment has the allowance and how orders are counted. Orders past the allowance are billed as one event_fee entry per billing account per month, with event_fee_type external_paid_order_overage:

  • When it posts. Flint posts the entry 48 hours after the New York calendar month ends. Its occurred_at is the end of that month, and its created_at is when Flint recorded it, so the two are at least two days apart. Sync on created_after, as in Sync new entries.
  • What it is. The entry is for the whole month's excess, not one order. Its description is written when the entry is posted and never changes.
  • What Flint freezes. At that point Flint fixes the month's allowance, net live USD collected through Flint, counted orders, excess orders, unit price, and amount. For a billed month, the amount is the excess times the unit price. The first partial month is the exception: it has no charge, whatever the excess.
  • Terms. The billing account, allowance, and price come from the first usage reservation Flint made that month, which establishes the month's allowance policy. That reservation can come before any order is committed or counted. Its terms apply to the whole month, even if your agreement changes later in it.
  • Orders recorded late. An order that is committed after the entry posts still counts as usage, but Flint doesn't rebill the month. The posted entry stays as it is, and no second entry is posted for that month.
  • Who is charged. The charge stays on the merchant that made the first reservation for that billing account and month, in the live environment. If that merchant later leaves the billing account or closes, Flint still posts the entry to the billing account and the original merchant. Flint never reassigns it to a current member.
  • When nothing is billed. No entry is posted when there are no excess orders, when your agreement has no allowance limit, or when the price is zero. Accounts that aren't on the volume-based allowance are never billed this fee.

Allowance notices#

Flint posts a Dashboard notification and sends an email to each live merchant on the billing account at three points in a month. Each notice is sent once per billing account and month, even if later card volume changes the allowance:

  • Approaching. The month's usage reaches 80% of the current allowance, rounded up. With an allowance of 20 orders, that is the 16th order. With 32, it is the 26th.
  • Over. The usage first goes past the current allowance. The notice says the final count settles after the month ends. Card volume collected later in the month can raise the allowance, and refunds can lower it.
  • Finalized. The month is final, 48 hours after it ends, and the notice states the number of orders billed beyond the allowance. That number is 0 for a month with no charge, such as the first partial month.

Flint checks usage and the allowance regularly, so a refund that lowers the allowance can trigger a notice without a new payment. A month with no charge, such as the first partial month, and an agreement with a price of zero still send all three notices, and the finalized notice then states 0 orders billed. No notice is sent for sandbox usage or when your agreement has no allowance limit. The finalized notice also goes to the merchant that is charged, even if that merchant has since left the billing account. A warning on the response tells you about an order past the allowance as you record it.

First partial month#

A month is billed only if it started at or after the exact time the allowance policy was first assigned to your billing account, so the first partial month has no charge:

  • A policy assigned at any time after a New York month started, including a new account's first month, doesn't bill that month, even when the assignment is one second after midnight on the first day. Billing starts with the next month.
  • A policy that takes effect exactly at the start of a New York month, 00:00:00, bills that month in full.
  • Month boundaries are midnight in New York, which is 04:00 or 05:00 UTC depending on daylight saving time.

To list these fees, add type=event_fee and look for event_fee_type external_paid_order_overage. The merchant_billing_itemized_v1 report selects entries by occurred_at. Because that is the first instant of the next month in New York, October's fee is in a November period, not an October one.

An overage fee that stays unpaid follows the usual collection and past-due handling, with one exception: it never holds payouts. If a balance is past due has the details.

List entries#

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-entries?page_size=50" \
  -H "Authorization: Bearer YOUR_API_KEY"

Every entry carries merchant_billing_entry_id, type, occurred_at, created_at, the three effect fields, and a human-readable description. These fields appear only when they apply:

FieldPresent on
event_fee_typeevent_fee entries.
dispute_idA dispute's event fee, and every entry that corrects, credits, collects, reverses, or writes off that event fee.
payment_intent_idA bank verification fee and its collections, reversals, or write-offs. Also set for a failed ACH payment fee or processing fee correction and associated billing entries.
merchant_billing_invoice_idAn invoice entry, and the entries that apply credit to it, collect it, or write it off.
balance_transaction_idcollection and collection_reversal entries: the balance transaction that moved the money.
related_merchant_billing_entry_idThe earlier entry this one corrects, credits, collects, reverses, or writes off.

The list returns the newest occurred_at first. Entries from the same second are ordered with the later step in a chain first: write-offs and collection reversals, then collections, then applied or refunded credit, then issued credit, then corrections, and charges (event_fee, invoice, and custom_domain) last. Entries tied on both are ordered by merchant_billing_entry_id, descending. Page with page_size (1 to 100, default 20) and next_page_token, as described in Pagination.

Filters#

ParameterMatches
typeOne or more entry types, comma-separated or repeated, such as type=event_fee,correction.
currencyOne ISO 4217 code, such as USD.
occurred_after, occurred_beforeAn RFC 3339 window on occurred_at. _after includes the instant and _before excludes it.
created_after, created_beforeThe same window on created_at.
dispute_id, payment_intent_id, merchant_billing_invoice_id, balance_transaction_idEntries that carry exactly that ID. Each takes one value.

Separate filters combine with AND. A next_page_token works only with the query it came from, so decide the filters before you start paging.

Event fees and fee corrections in one currency and month:

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-entries?type=event_fee,correction&currency=USD&occurred_after=2026-10-01T00:00:00Z&occurred_before=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer YOUR_API_KEY"

What a dispute cost you#

A dispute fee deducted directly from your balance is in the dispute balance transaction's fee_money. A card dispute carries an event fee here only when Flint paid the processor's fee. Read the balance transactions as well as merchant billing to account for the cost, and don't count the same fee twice. A won status alone doesn't return a dispute fee. A processor's actual fee return appears as negative fee_money on the reversal or as a separate credit row.

The received event fee, card_dispute, stays charged after a win. On new offers that include it, card_dispute_countered charges the actual countered fee when evidence is submitted. A full win produces one credit_issued entry linked to that countered assessment after the processor returns the fee to Flint. A partial win or loss produces no such credit. Existing offers without the countered rule stay unchanged.

For an event fee, filter by dispute_id to get the fee and everything that happened to it: corrections, credit, collection, reversal, or write-off. This example is an ACH dispute event fee:

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-entries?dispute_id=du_01KWM6WAHG3N9Q8T2V5XRZ7C4G" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "merchant_billing_entry_id": "mbe_01KWM6WAHG3N9Q8T2V5XRZ7C4F",
      "type": "collection",
      "occurred_at": "2026-10-16T13:00:04Z",
      "created_at": "2026-10-16T13:00:09Z",
      "outstanding_effect_money": { "amount": -1500, "currency": "USD" },
      "available_credit_effect_money": { "amount": 0, "currency": "USD" },
      "net_billing_effect_money": { "amount": -1500, "currency": "USD" },
      "description": "Merchant billing collection",
      "dispute_id": "du_01KWM6WAHG3N9Q8T2V5XRZ7C4G",
      "balance_transaction_id": "btxn_01KWM6WAHG3N9Q8T2V5XRZ7C4H",
      "related_merchant_billing_entry_id": "mbe_01KWM6WAHG3N9Q8T2V5XRZ7C4E"
    },
    {
      "merchant_billing_entry_id": "mbe_01KWM6WAHG3N9Q8T2V5XRZ7C4E",
      "type": "event_fee",
      "occurred_at": "2026-10-14T16:02:11Z",
      "created_at": "2026-10-14T16:02:11Z",
      "outstanding_effect_money": { "amount": 1500, "currency": "USD" },
      "available_credit_effect_money": { "amount": 0, "currency": "USD" },
      "net_billing_effect_money": { "amount": 1500, "currency": "USD" },
      "description": "ACH dispute event fee",
      "event_fee_type": "ach_dispute",
      "dispute_id": "du_01KWM6WAHG3N9Q8T2V5XRZ7C4G"
    }
  ],
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4P"
}

The collection's outstanding_effect_money of -1500 cancels the fee's 1500, so nothing is owed for this dispute. Its related_merchant_billing_entry_id points at the fee it paid. In the Dashboard, the dispute's Money panel shows the same fee and how it was paid.

Why Flint took money from your balance#

A collection posts a merchant_billing_collection balance transaction. Pass its ID to find what it paid:

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-entries?balance_transaction_id=btxn_01KWM6WAHG3N9Q8T2V5XRZ7C4H" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the collection entry. Its related_merchant_billing_entry_id is the fee or invoice entry it paid, and its dispute_id, payment_intent_id, or merchant_billing_invoice_id names the source.

Sync new entries#

To keep a copy of your billing activity, read what Flint recorded since your last pass with created_after. Run a pass when a merchant_billing_balance.updated event arrives, or on your own schedule:

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-entries?created_after=2026-10-22T14:30:00Z&page_size=100" \
  -H "Authorization: Bearer YOUR_API_KEY"
  1. Read every page, passing next_page_token as page_token, until the response has no next_page_token.
  2. Store each entry by merchant_billing_entry_id. An entry you already hold comes back unchanged, so storing it again is harmless.
  3. After the last page, move your marker to the largest created_at you saw. Pages are ordered by occurred_at, so that entry can be on any page.
  4. Start the next pass a few minutes before your marker. created_after includes the instant you give it, and entries in the overlap that you already hold come back unchanged.

For the first pass, leave out created_after to read everything.

Don't sync by reading an occurred_after window once. An entry recorded later can occur inside a window you already read, and created_after is what picks it up.

How Flint collects#

Flint collects what you owe out of your Flint balance, and each collection posts a balance transaction:

  • A merchant_billing_collection has a negative amount_money, a zero fee_money, and a net_money equal to amount_money, because Flint charges nothing to collect. Its related_balance_transaction_ids is empty.
  • A merchant_billing_collection_reversal is a collection coming back. Its amount_money is positive, and its related_balance_transaction_ids holds exactly one ID, the collection it reverses.

On both, related_resource points at the source of the amount when there is one: a payment_intent, a dispute, or a merchant_billing_invoice. To find collections against invoices, list GET /v1/balance-transactions?related_resource_type=merchant_billing_invoice.

Both types appear in GET /v1/balance-transactions, in the balance_transactions_itemized_v1 report, and on balance_transaction.created; see Reconciliation. Each also has a matching billing entry, linked both ways:

Balance transactionBilling entryLink
merchant_billing_collectioncollectionThe entry's balance_transaction_id is the collection.
merchant_billing_collection_reversalcollection_reversalThe entry's balance_transaction_id is the reversal, and its related_merchant_billing_entry_id is the collection entry it undoes.

If a balance is past due#

A past-due Flint balance never stops your customers from paying you. Flint keeps trying to collect the amount from your Flint balance, so keep enough in it to cover what you owe.

Flint holds payouts only when what's past due in one currency totals at least 25 units of that currency, such as 25 USD, 25 EUR, or 25 JPY. Each currency counts on its own, without conversion. Below that floor, Flint keeps collecting and still sends past-due notices, but they don't mention a hold or give a hold date.

Once the floor is reached, Flint sets a hold date: 21 days after the due date, or later if your billing terms allow more time, and never less than seven days after the notice that announces it. While the past-due amount stays at or above the floor, the date never moves earlier. It can move later, for example when the oldest amount is paid, and Flint sends a new notice with the new date. If the past-due amount drops below the floor, the hold date is withdrawn, and reaching the floor again starts over with a new date and at least seven days of notice.

On or after the hold date, Flint tries once more to collect what's past due from your Flint balance, and waits for any collection already in progress. If that pays it, payouts aren't held. If the collection fails, for example because your Flint balance doesn't cover the amount, Flint holds your payouts and notifies you.

This timeline applies in live mode. Flint posts each notice as a Dashboard notification and emails it to your account owners, admins, and confirmed notification contacts.

WhenWhat happens
One day after the due dateFlint sends the first past-due notice. If the floor is reached, it gives the hold date.
When Flint sets or moves a hold date laterFlint sends a notice with the date, at least seven days ahead.
Seven days before the hold dateFlint sends a reminder.
One day before the hold dateFlint sends a last reminder.
On or after the hold dateFlint tries once more to collect. If that fails, Flint holds payouts and notifies you.

Amounts Flint has written off don't count toward the floor or a hold.

A past-due orders paid outside Flint fee is collected the same way, but it doesn't count toward the floor, so it never holds payouts, and Flint doesn't send hold notices for it. A correction that increases that fee is treated the same way. Other past-due amounts in the same currency follow the timeline above once they reach the floor on their own.

Each balance says where it stands on this timeline:

  • past_due_money is the amount past its due date and still unpaid.
  • past_due_at is the due date of the oldest unpaid past-due amount.
  • payout_hold_at is 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 while the amount stays at or above the floor it never moves earlier. The hold can start later than this, for example while the last collection attempt is in progress, or not at all if that collection pays the amount. It's left out when no hold is scheduled: when the past-due amount in that currency is below the floor, when the only past-due amount is an orders paid outside Flint fee, or when 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 GET /v1/merchant is what says they are.

Response
{
  "merchant_billing_balance_id": "mbbal_01KWM6WAHG3N9Q8T2V5XRZ7C4D",
  "currency": "USD",
  "outstanding_money": { "amount": 4900, "currency": "USD" },
  "available_credit_money": { "amount": 0, "currency": "USD" },
  "past_due_money": { "amount": 4900, "currency": "USD" },
  "past_due_at": "2026-11-01T04:00:00Z",
  "payout_hold_at": "2026-11-22T04:00:00Z",
  "observed_at": "2026-11-15T16:05:00Z"
}

Read these fields to warn the business in your own product before a hold, the way the Dashboard does: a payout_hold_at in the future is the announced date from which Flint can hold payouts if the amount stays unpaid, and payments aren't affected either way. The date can move later between reads, or disappear when the amount drops below the floor, so show the value you read last. A platform built on Flint can do the same for each of its merchants. Going past due is only time passing, and it changes nothing you owe, so no event fires for it. Read the balances on a schedule, such as daily, and compare past_due_at and payout_hold_at with the current time. merchant_billing_balance.updated fires only when what you owe or the credit you hold changes, so use it to read the amounts again, not to learn that an amount went past due.

While payouts are held:

  • Payments keep working: creating, confirming, and capturing payments, paying orders, saving payment methods, renewing subscriptions, and collecting invoices.
  • Refunds and canceling a payment intent keep working.
  • Creating a payout and changing the payout schedule fail, and the automatic payout schedule waits. What your customers pay stays in your Flint balance, where Flint collects what you owe.
  • HTTP 409
    With details[0].reason billing_suspended, payouts are held for a past-due Flint balance. Retrying the same request fails until the hold ends, when what's past due drops below the floor in every currency, for example because it's paid. Read GET /v1/merchant-billing-balances to see what you owe.

GET /v1/merchant reports readiness.payouts as blocked with status_reason billing_suspended and a settle_flint_balance action in next_actions, and the receive_payouts capability the same way. readiness.payments isn't affected. merchant.readiness_updated fires when the hold starts and when it ends; read GET /v1/merchant when it arrives. Going live covers the readiness fields.

Payouts resume on their own once what's past due is below the floor in every currency, such as when it's paid, and Flint notifies you. You don't send a request. Flint keeps collecting any amount that's still past due, and if it reaches the floor again, Flint announces a new hold date at least seven days ahead. Anything else that holds payouts, such as a Flint review, still applies. To pay another way, ask Flint Help. For a question about a charge, ask about an invoice.

Merchant billing invoices#

Flint invoices your subscription to Flint once per billing period. List invoices, newest first, or filter by status. Unpaid invoices:

cURL
curl "https://api.withflintpay.com/v1/merchant-billing-invoices?status=open" \
  -H "Authorization: Bearer YOUR_API_KEY"

Read one with its line items:

cURL
curl https://api.withflintpay.com/v1/merchant-billing-invoices/msinv_01KWM6WAHG3N9Q8T2V5XRZ7C4J \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": {
    "merchant_billing_invoice_id": "msinv_01KWM6WAHG3N9Q8T2V5XRZ7C4J",
    "invoice_number": "FLINT-1001",
    "status": "paid",
    "period_start_at": "2026-10-01T00:00:00Z",
    "period_end_at": "2026-11-01T00:00:00Z",
    "issued_at": "2026-10-01T00:05:00Z",
    "due_at": "2026-10-08T00:05:00Z",
    "paid_at": "2026-10-08T00:10:12Z",
    "subtotal_money": { "amount": 4900, "currency": "USD" },
    "applied_credit_money": { "amount": 1000, "currency": "USD" },
    "total_money": { "amount": 3900, "currency": "USD" },
    "outstanding_money": { "amount": 0, "currency": "USD" },
    "line_items": [
      {
        "merchant_billing_invoice_line_item_id": "msinvl_01KWM6WAHG3N9Q8T2V5XRZ7C4K",
        "type": "subscription",
        "name": "Flint subscription",
        "quantity": 1,
        "unit_price_money": { "amount": 4900, "currency": "USD" },
        "total_money": { "amount": 4900, "currency": "USD" },
        "created_at": "2026-10-01T00:05:00Z"
      },
      {
        "merchant_billing_invoice_line_item_id": "msinvl_01KWM6WAHG3N9Q8T2V5XRZ7C4M",
        "type": "credit",
        "name": "Processing fee adjustment",
        "quantity": 1,
        "unit_price_money": { "amount": 1000, "currency": "USD" },
        "total_money": { "amount": 1000, "currency": "USD" },
        "created_at": "2026-10-01T00:05:00Z"
      }
    ],
    "created_at": "2026-10-01T00:05:00Z",
    "updated_at": "2026-10-08T00:10:12Z"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4Q"
}

subtotal_money sums the subscription lines, applied_credit_money sums the credit lines, and total_money is the subtotal minus the credit. Line item amounts are unsigned, and type says which way a line moves the invoice. total_money on each line is quantity, a whole number, times unit_price_money. Credit never exceeds the subtotal, and an invoice that credit covers in full is issued as paid. period_start_at is inclusive and period_end_at is exclusive.

status on merchant billing invoice
Final values do not change again
  • open
    Flint issued the invoice and hasn't collected all of it. A reversed collection returns a paid invoice here and removes its paid_at.
  • paid
    Flint collected the invoice. paid_at says when.
  • written_offFinal
    Flint stopped collecting the invoice.

The same invoice appears in your billing entries. Filter by merchant_billing_invoice_id to see it: an invoice entry for the subtotal, a credit_applied entry for the credit, and a collection entry for what Flint collected.

Export a period#

To book a closed period, generate a merchant_billing_itemized_v1 report. It has the same entries as the list, selected by occurred_at, with the same 17 fields as columns, oldest first: the list's order, reversed. CSV timestamps are written in the report's timezone, while the API returns UTC.

The two answer different questions. The list returns what Flint has recorded so far, so use it to follow activity and look things up. The report checks that the interval is complete before it returns rows: generation fails with data_unavailable while billing records are inconsistent, a collection's outcome or balance transaction hasn't arrived, or an entry is invalid. Generate it again later. Reports covers the columns and the generation flow.

Webhooks#

merchant_billing_balance.updated carries the balance, as GET /v1/merchant-billing-balances returns it. The payload is the balance when Flint sends the event. Events carry no previous_attributes, because changes can commit concurrently. The invoice events carry the invoice, as GET /v1/merchant-billing-invoices/{merchant_billing_invoice_id} returns it. merchant_billing_invoice.issued fires once for each invoice, including one that credit pays in full when Flint issues it. merchant_billing_invoice.updated fires when a collection, a reversed collection, or a write-off changes the invoice, and its previous_attributes holds the values the change replaced. No event fires per entry, and the balance event doesn't list the entries behind the change: read them with created_after. See Webhook event payloads.

Errors#

  • HTTP 400
    param names the query parameter. Detail code INVALID_VALUE means a value Flint can't use: a type or status outside the documented values, an ID with the wrong prefix, a timestamp that isn't RFC 3339, a _before earlier than its _after, a page_size outside 1 to 100, or a page_token from a different query. Detail code UNKNOWN_FIELD means the route doesn't take that parameter, such as page_size on the balance list. Sending a single-value parameter twice also returns this code.
  • HTTP 401
    With details[0].reason wrong_credential_type, the request used a partner app token. Use the merchant's own API key.
  • HTTP 403
    The key lacks merchant_billing.read. details[0].missing_scopes lists it.
  • HTTP 404
    No invoice or balance with that ID exists in this environment. param names the path parameter.
  • HTTP 500
    INTERNAL_ERRORRetry the same request
    Flint couldn't read your billing information.

Next steps#

Processing feesThe fee taken out of each payment as it settles, and the event fee amounts.ReconciliationWhat each balance transaction type does to your Flint balance.ReportsGenerate merchant_billing_itemized_v1 and read its columns.Merchant billing API referenceEvery field on balances, entries, and invoices.

Invoice numbers and issue times#

invoice_number is unique; don't parse it. New invoices use FLINT-{account code}-{0001}, sequential per billing account. The account code is the stable billing account ID. Existing invoices keep their numbers. Subscription line names use the plan family, such as "Flint Growth plan", rather than an offer version.

Every published invoice has issued_at. voided_at is removed. The only published statuses are open, paid, and written_off. Legacy collecting and delinquent invoices read as open; draft and void invoices are excluded from this issued-invoice list. Legacy rows without an issue time are excluded until Flint reconciles their issue evidence.

Entry created_at is set at insert, never changes, and is never backdated from a source event timestamp. occurred_at records the event time. Overlap successive created_after passes by a few minutes and deduplicate by merchant_billing_entry_id, including when a transaction commits after a pass finishes. The list has no sync cursor.

Was this helpful?