Partner quickstart
This guide is for a partner: a platform reading the books of the providers in its partner relationship with a partner API key. If you are a provider reading your own books, you hold a provider key instead — start at Provider quickstart.
What your key reaches
Section titled “What your key reaches”A partner key is scoped to your partner relationship. It reads the books of every provider in that relationship and nothing else.
There is no per-provider authorization step. You hold the credential rather than each
provider, so a provider joining your relationship simply appears in GET /providers and
GET /business_entities, with nothing for you or them to approve.
It reaches the discovery endpoints and the income statement. Six operations in all. The
balance sheet and cash flow families are provider-key only, and a partner key
calling one gets 403 ENDPOINT_NOT_AVAILABLE. See
which endpoints each key reaches for
the full table.
API access follows your enrollment. If your partner organization is not enrolled in the
API, every call is refused with 403 PARTNER_API_NOT_ENABLED. This is checked fresh on
every request, so enrollment takes effect on your next call. It is an account state:
retrying will not clear it, and neither will rotating the key.
Get your key
Section titled “Get your key”You create your own keys in your Flychain partner dashboard, under API Keys in the sidebar.
The tab appears once your partner organization is enrolled in the API. If you don’t see it, contact us to be enrolled.

When you create a key you give it a label and an expiry, and the key value is shown only once. See Authentication for how to store, rotate and revoke keys.
A partner key is the only kind you can create. A provider’s own keys are created by members of that provider’s organization, and a partner cannot see or create them, including when viewing that provider through the partner relationship.
From your first call to a report
Section titled “From your first call to a report”Reports are produced per business entity, the legal entity whose books we keep, under a provider, the business that is a client of Flychain. Every report path names both:
/external/v1/provider/{provider_id}/business_entity/{business_entity_id}/financial_reports/...1. List the providers in your relationship
Section titled “1. List the providers in your relationship”curl https://api.flychain.us/external/v1/providers \ -H "Authorization: Bearer $FLYCHAIN_API_KEY"Every provider in your partner relationship, ordered by legal_name. Each record carries
the provider_id a report path takes.
2. List their business entities
Section titled “2. List their business entities”curl https://api.flychain.us/external/v1/business_entities \ -H "Authorization: Bearer $FLYCHAIN_API_KEY"Every business entity under those providers, each carrying its parent provider_id, so the
two ids together address every report. This is the endpoint to poll from then on. Before
pulling a report, read:
reporting_available—falsefor an entity still onboarding or one that has been deactivated. Skip these rather than recording a zero; a report request for one returns409 BOOKS_NOT_AVAILABLE.books_start_date— the earliest date its books cover. Requested ranges are clamped to it.books_closed_through— the most recent date a Flychain bookkeeper has finalized the books through. It is the value behind theis_closedflag on every report.accounting_basis—CASHorACCRUAL, a property of the entity rather than a request parameter.
Data semantics covers what each of these does to a figure. Read it before you trust a number.
3. Pull an income statement
Section titled “3. Pull an income statement”The income statement takes start_date and end_date (both required, both inclusive,
YYYY-MM-DD):
curl "https://api.flychain.us/external/v1/provider/$PROVIDER_ID\/business_entity/$BUSINESS_ENTITY_ID/financial_reports/income_statement/summary\?start_date=2026-07-01&end_date=2026-07-31" \ -H "Authorization: Bearer $FLYCHAIN_API_KEY"It comes in four endpoints: a single range and a monthly series, each as summary
(totals only, the one to point a recurring pull at) or the full statement with
per-account detail. Every report echoes back the effective range it actually reported
on, which is not always the one you asked for. See Data semantics §1.
When something is refused
Section titled “When something is refused”Match on the code, not on the status: several different situations arrive as 403.
403 PROVIDER_NOT_IN_PARTNER_SCOPE/BUSINESS_ENTITY_NOT_IN_PARTNER_SCOPE— the id existed but is no longer in your relationship. Stop querying it and flag it.404— the id is wrong; it never existed.403 PARTNER_API_NOT_ENABLED— your own enrollment, as above. Every id you hold is still valid; do not treat this as your providers leaving.403 ENDPOINT_NOT_AVAILABLE— a balance sheet or cash flow endpoint, which a partner key does not reach. The entity and your URL are fine.409 BOOKS_NOT_AVAILABLE— the entity is yours but has no reportable books. It is listed withreporting_available: false.
Data semantics §6 covers these in full, and Authentication covers the credential failures.
Where to go next
Section titled “Where to go next”- Data semantics — what the values mean, and the places a successful request can still give you a figure you did not intend to use. Read this before trusting a number.
- Migrating from the QuickBooks P&L — the field-by-field mapping, if you are replacing a QuickBooks pull.
- Versioning — what may change within
v1and what may not.