Skip to content

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 correction entry.

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#

ResourceID prefixWhat it holds
Balancembbal_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.
Entrymbe_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.
Invoicemsinv_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_money is the change to what you owe.
  • available_credit_effect_money is the change to your credit.
  • net_billing_effect_money is the first minus the second. It's zero for credit_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:

An invoice in your billing entries
  • Invoice issuedoutstanding_effect_money
    invoice, the subtotal_money
    $49.00
  • Credit appliedoutstanding_effect_money
    credit_applied
    −$10.00
  • Collected from your Flint balanceoutstanding_effect_money
    collection
    −$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#

Merchant billing invoice statusFinal
  • 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 invoice
Final values do not change again
  • open
    Flint issued the invoice and hasn't collected all of it. outstanding_money is what's left. A reversed collection returns a paid invoice here and removes its paid_at.
  • paid
    Flint collected the invoice, and paid_at says when. An invoice that credit covers in full is issued as paid.
  • written_offFinal
    Flint 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 typeAmountBilling entry
merchant_billing_collectionNegative, with a fee_money of 0collection
merchant_billing_collection_reversalPositive. 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:

  1. Run a pass when merchant_billing_balance.updated arrives, or on your own schedule.
  2. List entries with created_after set a few minutes before the latest created_at you stored, and read every page.
  3. 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:

FieldMeaning
past_due_moneyThe amount past its due date and still unpaid. Zero when nothing is past due.
past_due_atThe due date of the oldest unpaid past-due amount. Left out when nothing is past due.
payout_hold_atThe 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#

No event fires per entry, and the balance event doesn't list the entries behind the change. Read them with created_after.

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_moneyobjectRequired

Credit applied to the invoice: the sum of its credit line items. Never more than subtotal_money.

created_atstringRequired

When Flint created the invoice.

due_atstringRequired

When payment of the invoice is due.

invoice_numberstringRequired

Unique invoice number; don't parse it. New numbers use FLINT-{account code}-{0001}, sequential per billing account; existing numbers are retained.

issued_atstringRequired

When Flint issued the invoice.

line_itemsarray of objectRequired

Invoice-owned line items. Subscription totals sum to subtotal_money; credit totals sum to applied_credit_money.

merchant_billing_invoice_idstringRequired

Stable identifier of the invoice.

outstanding_moneyobjectRequired

Part of total_money Flint still has to collect.

paid_atstring

When the invoice was paid. Removed if a reversed collection reopens it.

period_end_atstringRequired

Exclusive invoice billing period end as an RFC 3339 UTC instant.

period_start_atstringRequired

Inclusive invoice billing period start as an RFC 3339 UTC instant.

statusenumRequired

Collection 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.

  • open
  • paid
  • written_off
subtotal_moneyobjectRequired

Sum of the subscription line items, before credit.

total_moneyobjectRequired

What the invoice charges: subtotal_money minus applied_credit_money.

updated_atstringRequired

When the invoice last changed.

JSON
{
  "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_moneyobjectRequired

Account credit Flint holds for you that hasn't been applied yet, unsigned. Each application lowers both amounts and records a credit_applied entry.

currencystringRequired

ISO 4217 currency code.

merchant_billing_balance_idstringRequired

Stable identifier for this billing account and currency balance projection.

observed_atstringRequired

RFC3339 timestamp for the balance snapshot.

outstanding_moneyobjectRequired

What 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_atstring

Due date of the oldest unpaid past-due amount, as an RFC 3339 UTC timestamp. Omitted when nothing is past due.

past_due_moneyobjectRequired

Amount that is past its due date and still unpaid. Zero when nothing is past due.

payout_hold_atstring

Time 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.

JSON
{
  "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#

GET/v1/merchant-billing-balances

Requires 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

GET/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_idstringRequired

Flint 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.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

GET/v1/merchant-billing-entries

Requires 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 enum

Filter 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_fee
  • invoice
  • custom_domain
  • custom_domain_collection
  • correction
  • credit_issued
  • credit_applied
  • credit_refunded
  • collection
  • collection_reversal
  • write_off
currencystring

Filter by currency. Currency is normalized to uppercase.

occurred_afterstring

Inclusive lower bound on occurred_at.

occurred_beforestring

Exclusive upper bound on occurred_at.

created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

payment_intent_idstring

Filter by Flint payment intent ID.

dispute_idstring

Filter by Flint dispute ID.

merchant_billing_invoice_idstring

Filter by Flint merchant billing invoice ID.

balance_transaction_idstring

Filter by Flint balance transaction ID.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

GET/v1/merchant-billing-invoices

Requires 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 enum

Filter 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.

  • open
  • paid
  • written_off
page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

GET/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_idstringRequired

Flint 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.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier 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.

JSON
{
  "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?