Skip to content

Reports

Reports turn order, payment, merchant billing, balance, payout, and tax history into versioned CSV files. Generation is asynchronous: create a report, wait for report.succeeded or poll the resource, then download the file with your API key. Each report covers one report type, one currency, and one interval of up to 366 days.

Use a report when you need a whole period as a file: a month of payments for your books, a quarter of payout contents, or a year of tax by jurisdiction. To look up one record or follow activity as it happens, read the API directly. For example, GET /v1/balance-transactions?payout_id=... on money movement lists what one payout carried without generating anything.

The Reports guide has every report's columns, the reasons a report fails, and reconciliation recipes.

Small balances waived on a paid-order edit are merchant adjustments, not collected money. Read the edit's small_balance_adjustment_money and the order's settlement_amounts.written_off_money for those amounts. Removing absorbed value reverses the write-off through a negative edit adjustment. Tax collection exports exclude the absorbed amount.

Access#

RuleDetail
CredentialsAPI keys only. Partner apps can't call report routes or request report scopes, and report events go only to the merchant's own webhook endpoints.
Scopesreports.write creates a report. Listing, reading, and downloading accept reports.read or reports.write.
EnvironmentA report covers the activity of the key's environment. A sandbox key reports on that sandbox, and only keys for the same environment can read or download the report.
Pending limitFive reports can be pending in each environment. A new report returns 409 LIMIT_REACHED with reason pending_reports until one finishes.

Report types#

report_type names the row and the column version. Each type selects rows by its own occurrence time, so two types over the same dates cover different activity. A payout that arrives on February 1 carries January's balance transactions, so payouts_itemized_v1 and balance_transactions_itemized_v1 for February list different rows.

report_typeOne row isThe interval matches
orders_itemized_v1A closed orderWhen the order's collection completed
orders_itemized_v2A closed order, with gift card sales split from merchandiseWhen the order's collection completed
payments_itemized_v1A succeeded payment, with its processing and add-on feesCapture time
balance_transactions_itemized_v1A balance transactionWhen the transaction occurred
payouts_itemized_v1One balance transaction in a paid itemized payout, or one paid manual payout without itemizationThe payout's arrival_date
merchant_billing_itemized_v1One change to what you owe Flint or the credit you holdWhen the change occurred
tax_itemized_v1One tax breakdown on an orderWhen the order's collection completed
tax_summarized_v1One jurisdiction and tax typeCollection time for sales, refund success time for reversals
tax_transactions_itemized_v1One automatic tax calculation or refund reversalCollection time for sales, refund success time for reversals
tax_transactions_itemized_v2One automatic tax collection or refund reversal, or one exempt saleCollection time for sales, refund success time for reversals
tax_transactions_summarized_v2Automatic tax by country, state or province and tax typeThe same collections and reversals as the v2 itemized report
gift_card_liability_v1The whole interval, as one USD rowGift card posting time

Columns lists every type's columns.

Reports that overlap#

Some reports describe the same activity from different sides. Pick by the question you're answering, and don't add their totals together.

  • Sales or cash. Order reports describe what was sold. payments_itemized_v1 describes cash captured, which can include gift card purchases, so don't add payment totals to merchandise as extra sales.
  • Gift card sales. orders_itemized_v2 keeps every orders_itemized_v1 column and adds gift_card_consideration_money, merchandise_subtotal_money, merchandise_net_money, and refunded_credit_adjustment_money. Selling a $25.00 gift card for $22.00 adds $22.00 to gift card consideration and nothing to merchandise. Redeeming the card for goods adds the goods' price to merchandise. These are the original sale amounts. refunded_credit_adjustment_money reports cumulative successful Return credits as of generation, separately from merchandise, shipping, and tax; it does not reduce those sale amounts. Reconcile other refunds separately.
  • Balance or payouts. balance_transactions_itemized_v1 is every movement of your balance in the interval. payouts_itemized_v1 lists the contents of each paid itemized payout and one deposit row for each paid manual payout without itemization. Each payout's net_money.amount values add up to its amount_money.amount.
  • External or automatic tax. tax_itemized_v1 and tax_summarized_v1 cover only external-tax orders, using Flint's authority-level breakdowns. Automatic-tax orders in the same interval are left out. Use tax_transactions_itemized_v2 for automatic-tax detail and tax_transactions_summarized_v2 for collected, refunded and payable totals. US summary rows combine state and local tax; the provider does not supply a local split. Generate both external and automatic exports when you use both modes. tax_transactions_itemized_v2 keeps every v1 column and adds the collection source, any recorded exemption, and post_tax_discount_money. Tax reports record what Flint calculated and collected; they aren't tax returns, nexus decisions, or filing instructions.
  • Fees on payments or on your account. Processing and add-on fees stay on each payment in payments_itemized_v1. Event fees, invoices, credits, and collections are in merchant_billing_itemized_v1, which has the same entries as GET /v1/merchant-billing-entries. See Merchant billing.
  • Receivables aging. receivables_aging_v1 reports unpaid invoice amounts as of a calendar date, split into current, 1 to 30, 31 to 60, 61 to 90, and 91 or more days past due. See Receivables aging for columns and reconciliation.
  • Gift card liability. gift_card_liability_v1 rolls liability at face value from opening_money to closing_money, with its period in UTC. Frozen and reserved value stays in the liability. How to book it is your accountant's decision.

Interval, time zone, and currency#

interval_start_at is inclusive and interval_end_at is exclusive, so a month runs from its first instant up to the next month's first instant. Send RFC 3339 instants with any offset. Flint returns them in UTC and drops fractional seconds.

  • interval_end_at must be after interval_start_at, can't be in the future, and can be no later than the same local time 366 calendar days after the start, in the report's timezone. A calendar quarter or a calendar year, including a leap year, fits in one report.
  • timezone is an IANA name such as America/New_York. It defaults to the merchant's timezone, or UTC when the merchant has none. It sets how timestamp columns are written, and it places each payout's arrival_date for payouts_itemized_v1: a payout belongs to the interval when the start of its arrival date in this time zone falls inside the interval. It doesn't move the interval itself.
  • Set currency to USD when creating a report. Each report covers one currency and never converts amounts.

A long interval on a busy account can cross a generation limit. Split it into smaller reports, such as one per month.

Create a report#

This request asks for the third quarter of 2026 in New York time:

cURL
curl -X POST https://api.withflintpay.com/v1/reports \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: payouts-2026-q3" \
  -d '{
    "report_type": "payouts_itemized_v1",
    "interval_start_at": "2026-07-01T00:00:00-04:00",
    "interval_end_at": "2026-10-01T00:00:00-04:00",
    "timezone": "America/New_York",
    "currency": "USD"
  }'
Response
{
  "data": {
    "report_id": "rep_01KB4R7Q2M8XN3B5V6T0R1C2DE",
    "report_type": "payouts_itemized_v1",
    "status": "pending",
    "interval_start_at": "2026-07-01T04:00:00Z",
    "interval_end_at": "2026-10-01T04:00:00Z",
    "timezone": "America/New_York",
    "currency": "USD",
    "created_at": "2026-10-28T15:04:05Z"
  },
  "request_id": "req_01KB4R7Q2M8XN3B5V6T0R1C2DF"
}

Idempotency-Key is optional. Without one, every request creates a new report. Sending the same key and body again returns the original report as it is now, which may already be succeeded or failed, so read status from the response. See Idempotency.

invoices_itemized_v1 uses the interval request above, matched on issued_at. It excludes drafts and exports one row per invoice in currency, ordered by issued_at and invoice_id. Amounts and status reflect the invoice at generation time. Each attempt reads one consistent snapshot; retries or later reports can include subsequent payments and adjustments. See Invoice columns for the complete CSV, including credited_money (the same amount as Invoice.settlement_amounts.credited_money).

Status and webhooks#

A report starts pending and ends succeeded or failed. Flint retries transient failures and data that hasn't landed yet before it fails a report, so a report can stay pending for a while, about 15 to 20 minutes for a balance, payout, or merchant billing report whose interval just ended. Wait for the report to finish has the details. Wait for the result instead of creating a duplicate.

status on report
Final values do not change again
  • pending
    Flint is generating the file. The report has no download and no failure_reason.
  • succeededFinal
    The CSV is ready, and download has report_download_id, url, and expires_at. The status stays succeeded after the download expires.
  • failedFinal
    No file was produced, and failure_reason says why.
failure_reason on report
  • data_unavailable
    Flint can't show that the interval is complete, so it wrote no file rather than one with gaps. Create the report again later. The causes depend on the report type.
  • limit_exceeded
    The report crossed a generation limit. Split the interval into smaller reports.
  • generation_failed
    Generation failed for another reason after Flint's retries. Create the report again, and contact Flint support with the report_id if it keeps failing.

failure_reason can gain values. Treat an unknown value like generation_failed.

  • report.succeeded
    The report finished. data.object is the report, with its download.
  • report.failed
    The report failed. data.object is the report, with its failure_reason.

Download the file#

A succeeded report carries its download link:

cURL
curl https://api.withflintpay.com/v1/reports/rep_01KB4R7Q2M8XN3B5V6T0R1C2DE \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": {
    "report_id": "rep_01KB4R7Q2M8XN3B5V6T0R1C2DE",
    "report_type": "payouts_itemized_v1",
    "status": "succeeded",
    "interval_start_at": "2026-07-01T04:00:00Z",
    "interval_end_at": "2026-10-01T04:00:00Z",
    "timezone": "America/New_York",
    "currency": "USD",
    "created_at": "2026-10-28T15:04:05Z",
    "download": {
      "report_download_id": "rdl_01KB4R9W3N5P7Q8R2S4T6V8X0Y",
      "url": "https://api.withflintpay.com/v1/report-downloads/rdl_01KB4R9W3N5P7Q8R2S4T6V8X0Y",
      "expires_at": "2026-10-29T15:06:12Z"
    }
  },
  "request_id": "req_01KB4R8T4P6Q8S0V2X4Z6B8D0F"
}

download.url is a Flint API route. Call it with the same API key and follow the redirect: Flint answers 307 with a private file URL that lasts at most five minutes. Don't send your API key to the file URL, and don't store or share it. Request download.url again each time you need the file.

The link expires 24 hours after the report succeeds, at download.expires_at. After that, the download route returns 409 ACTION_NOT_ALLOWED, while the report keeps status: succeeded and its download object, so compare expires_at with the current time before you download. For a fresh file, create the report again with a new Idempotency-Key or none; replaying the original key returns the original report and its expired link.

Reading the CSV#

  • Money is two columns, an amount in minor units and a currency, such as captured_money.amount and captured_money.currency. Negative amounts have a leading minus sign. See Money & currency.
  • Timestamps are RFC 3339 instants in the report's timezone. gift_card_liability_v1 writes its period in UTC.
  • Formula-like text gets a leading single quote. A text value that starts with =, +, -, or @, after any leading spaces, tabs, or line breaks, is written with ' before it, so spreadsheets don't run it as a formula. This applies only to the columns that Text that looks like a formula lists; IDs, timestamps, enum values, and money columns are never changed.

Errors#

POST /v1/reports rejects an invalid request with 400 INVALID_REQUEST before it creates anything, and param names the field to fix. The Reports guide's Errors section maps each cause to its param.

  • HTTP 400
    A field breaks a rule above, such as an interval longer than 366 days, an end in the future, an unknown timezone, or a currency other than USD. On GET /v1/reports, a filter value is empty or unknown, or page_token was issued for different filters, page_size, or environment.
  • HTTP 409
    The key was already used for a different report. See Replay, conflict, or in progress.
  • HTTP 409
    Reason pending_reports: five reports are already pending in this environment, with limit 5 and the pending reports in blocking_resources. Wait for one to finish, then create the report again as a new request.
  • HTTP 409
    The download is past download.expires_at. Create the report again with a new key.
  • HTTP 404
    No report or download has that ID in this environment. Check that the key belongs to the environment that created the report.
ReportsColumns for every report type, failure causes, limits, and reconciliation recipes.PayoutsPayout schedules, destinations, and the balance transactions in each payout.ReconciliationMatch a deposit to the orders and payments that funded it.Sales taxHow Flint calculates the tax these reports export.

Aging date#

For receivables_aging_v1, send as_of_date (YYYY-MM-DD) and currency, with an optional IANA timezone. It defaults to the merchant's timezone, or UTC when the merchant has none. Omit the interval timestamps. A future date returns 400 INVALID_REQUEST with detail INVALID_VALUE. An interval field on this branch, or as_of_date on an interval report, returns 400 INVALID_REQUEST with detail NOT_ALLOWED.

Principal and installment due dates retain their calendar date in the invoice's timezone, exactly as the buyer saw them. Days past due count from that date to as_of_date; amounts due on or after as_of_date are current. The report timezone determines the ledger cutoff and late-fee assessment dates, and never shifts an invoice due date.

The cutoff is the earlier of the end of that local date and report creation. The report includes as_of_date; its required interval_start_at and interval_end_at describe the start of the date and the cutoff. Each attempt uses one consistent snapshot. Retrying generation or creating another report can include later-recorded entries whose effective time precedes the cutoff. For historical reports, payment application time determines the balance, even when a payment has an older payment date.

Use the aging columns and reconciliation rules to compare today's outstanding totals with invoice and customer receivables in the same currency.

The Report object#

A report generated from the merchant's activity.

Returned by GET /v1/reports/{report_id} and carried by the endpoints below.

Attributes

One of these shapes

A report generated from the merchant's activity.

as_of_datestring

Present only for receivables_aging_v1. The calendar date in timezone whose receivables are reported.

created_atstringRequired

When the report was requested.

currencystringRequired

Currency the report covers. A report never combines currencies. Uses ISO 4217 currency codes.

interval_end_atstringRequired

Exclusive interval end instant. Each report type matches its own occurrence time.

interval_start_atstringRequired

Inclusive interval start instant. Each report type matches its own occurrence time.

report_idstringRequired

Stable identifier of the report.

report_typeenumRequired

The report's type and column version. See the Reports guide for its columns.

  • receivables_aging_v1
  • invoices_itemized_v1
  • gift_card_liability_v1
  • orders_itemized_v1
  • orders_itemized_v2
  • payments_itemized_v1
  • balance_transactions_itemized_v1
  • payouts_itemized_v1
  • tax_itemized_v1
  • tax_summarized_v1
  • merchant_billing_itemized_v1
  • tax_transactions_itemized_v1
  • tax_transactions_itemized_v2
  • tax_transactions_summarized_v2
statusenumRequired

pending while Flint generates the report, then succeeded with a download or failed with a failure_reason. Flint sends report.succeeded or report.failed when it finishes.

  • pending
timezonestringRequired

IANA timezone used for timestamps and date bucketing. A payout occurs at the start of its arrival_date in this timezone.

JSON
{
  "created_at": "2026-08-02T16:00:00Z",
  "currency": "USD",
  "interval_end_at": "2026-07-01T00:00:00Z",
  "interval_start_at": "2026-06-01T00:00:00Z",
  "report_id": "rep_01J00000000000000000000000",
  "report_type": "payments_itemized_v1",
  "status": "pending",
  "timezone": "UTC"
}

Download a report#

GET/v1/report-downloads/{report_download_id}

Requires scope reports.read or reports.write

Rate limit: read

Authorizes the stable Flint download URL and redirects to a short-lived private file URL.

Path parameters

report_download_idstringRequired

Flint report download ID. Must be a valid ID with prefix rdl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 307

Temporary redirect to the generated CSV.

  • Location: URL of the requested resource.
curl https://api.withflintpay.com/v1/report-downloads/rdl_01KEZF7C003GGGDW1N5QT46JDZ \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Temporary redirect to the generated CSV.

Redirects to the URL in the Location header.

List reports#

GET/v1/reports

Requires scope reports.read or reports.write

Rate limit: read

Lists reports using opaque pagination. Default order: created_at descending, then report_id descending.

Query parameters

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.

report_typearray of enum

Return reports with any of these report types. 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.

  • receivables_aging_v1
  • invoices_itemized_v1
  • gift_card_liability_v1
  • orders_itemized_v1
  • orders_itemized_v2
  • payments_itemized_v1
  • balance_transactions_itemized_v1
  • payouts_itemized_v1
  • tax_itemized_v1
  • tax_summarized_v1
  • merchant_billing_itemized_v1
  • tax_transactions_itemized_v1
  • tax_transactions_itemized_v2
  • tax_transactions_summarized_v2
statusarray of enum

Return reports in any of these 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.

  • pending
  • succeeded
  • failed

Response · 200

Reports for the authenticated merchant.

dataarray of one ofRequired

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/reports \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Reports for the authenticated merchant.

JSON
{
  "data": [
    {
      "created_at": "2026-08-02T16:00:00Z",
      "currency": "USD",
      "interval_end_at": "2026-07-01T00:00:00Z",
      "interval_start_at": "2026-06-01T00:00:00Z",
      "report_id": "rep_01J00000000000000000000000",
      "report_type": "payments_itemized_v1",
      "status": "pending",
      "timezone": "UTC"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Create a report#

POST/v1/reportsIdempotent

Requires scope reports.write

Rate limit: write

Creates an idempotent asynchronous CSV report. receivables_aging_v1 takes as_of_date instead of interval timestamps, with a cutoff at the earlier of the end of that local day and report creation. For interval reports, interval_end_at may be at most the same local time 366 calendar days after interval_start_at in timezone, and must not be in the future. Poll the returned report until it succeeds or fails.

Request body

Send exactly one of these

The `balance_transactions_itemized_v1` variant of `CreateReportRequest`. The `gift_card_liability_v1` variant of `CreateReportRequest`. The `invoices_itemized_v1` variant of `CreateReportRequest`. The `merchant_billing_itemized_v1` variant of `CreateReportRequest`. The `orders_itemized_v1` variant of `CreateReportRequest`. The `orders_itemized_v2` variant of `CreateReportRequest`. The `payments_itemized_v1` variant of `CreateReportRequest`. The `payouts_itemized_v1` variant of `CreateReportRequest`. The `tax_itemized_v1` variant of `CreateReportRequest`. The `tax_summarized_v1` variant of `CreateReportRequest`. The `tax_transactions_itemized_v1` variant of `CreateReportRequest`. The `tax_transactions_itemized_v2` variant of `CreateReportRequest`. The `tax_transactions_summarized_v2` variant of `CreateReportRequest`.

currencystringRequired

The currency to include in the report. Use USD, the supported currency for new reports. Uses ISO 4217 currency codes.

interval_end_atstringRequired

Exclusive report interval end instant. Each report type matches its own occurrence time. At most the same local time 366 calendar days after interval_start_at in timezone. Must not be in the future.

interval_start_atstringRequired

Inclusive report interval start instant. Each report type matches its own occurrence time.

report_typeenumRequired

Which report to generate. The value names the row and the column version, such as payments_itemized_v1. The Reports guide lists each type's rows, interval matching, and columns.

  • invoices_itemized_v1
  • gift_card_liability_v1
  • orders_itemized_v1
  • orders_itemized_v2
  • payments_itemized_v1
  • balance_transactions_itemized_v1
  • payouts_itemized_v1
  • tax_itemized_v1
  • tax_summarized_v1
  • merchant_billing_itemized_v1
  • tax_transactions_itemized_v1
  • tax_transactions_itemized_v2
  • tax_transactions_summarized_v2
timezonestring

IANA timezone used for timestamps and date bucketing. A payout occurs at the start of its arrival_date in this timezone. Defaults to the merchant's timezone, then UTC, and is saved on the report at creation.

Response · 201

The pending or idempotently replayed report.

dataone ofRequired

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 -X POST https://api.withflintpay.com/v1/reports \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "currency": "USD",
    "interval_end_at": "2026-07-01T00:00:00Z",
    "interval_start_at": "2026-06-01T00:00:00Z",
    "report_type": "payments_itemized_v1",
    "timezone": "UTC"
  }'

Get a report#

GET/v1/reports/{report_id}

Requires scope reports.read or reports.write

Rate limit: read

Returns one report and its terminal download or failure details when available.

Path parameters

report_idstringRequired

Flint report ID. Must be a valid ID with prefix rep_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

The requested report.

Same response as Create a report.

curl https://api.withflintpay.com/v1/reports/rep_01KEZF7C00M947R0GYFMT8VXKJ \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The requested report.

JSON
{
  "data": {
    "created_at": "2026-08-02T16:00:00Z",
    "currency": "USD",
    "interval_end_at": "2026-07-01T00:00:00Z",
    "interval_start_at": "2026-06-01T00:00:00Z",
    "report_id": "rep_01J00000000000000000000000",
    "report_type": "payments_itemized_v1",
    "status": "pending",
    "timezone": "UTC"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Was this helpful?