---
title: "Partners: white label and grey label"
description: "Run e-invoicing for many customer companies under your brand: platform keys, managed companies, company keys, sending on a customer's behalf, events, usage and the partner go-live checklist."
canonical: "https://docs.get-flowie.com/guides/partners"
source: "https://docs.get-flowie.com/guides/partners.html"
---

# Partners: white label and grey label

Guides

# Partners: white label and grey label

Put compliant e-invoicing inside your own product and run every customer company through one integration: one platform key, one managed company per customer, the same calls in every country.

For
    Platform — software vendors, accounting firms, marketplaces, banks & fintechs (Sellers, Buyers or both, on behalf of customers)

Time
    ≈ 45 min in sandbox

You need
    A sandbox platform key — step 1 mints one, no signup

Updated
    30 Nov 2026

Is this the right guide?

This page is for companies that serve **other companies**. One company sending its own invoices: start with [Send an invoice](<send-invoice.html>). One group with several legal entities of its own (subsidiaries, countries): read [Groups with several entities](<multi-entity.html>). 

## How it works

  * Your **partner organization** holds a **platform key**.
  * Each customer of yours is a **managed company** , linked under your partner organization when you onboard it.
  * You call the API for a customer either with your platform key plus the `X-Flowie-Organization-Id` header, or with a **company key** minted for that customer alone.



Send and receive compliant e-invoices in 150 countries through Sovos; 47 jurisdictions are documented in depth on this site. The calls are the same for every customer, whatever their country.

## Which model fits you

You are| Usual model| Who calls the API| The calls you lean on  
---|---|---|---  
**Accounting firm** — many small clients, each its own company| Grey label| Your practice software with the platform key and the header. Mint a company key when a client's own tool must call the API.| One onboarding call per client; `GET /v1/platform/usage?groupBy=company` to re-bill each client.  
**Software vendor** (ERP, invoicing, accounting SaaS) — e-invoicing inside your product| White label| Your backend only. Keys never leave your vault; customers never see one.| Onboard at sign-up; one webhook per company, translated into your own notifications; your own domain through a proxy (step 7).  
**Marketplace, bank or fintech** — onboarding many merchants or business clients| White label, at scale| Your backend, with the platform key and the header.| The onboarding call in a loop over your portfolio (it is idempotent, so a retry is safe; there is no bulk endpoint for managed companies); handle the `409` refusals; `GET /v1/platform/events` for reconciliation; release a company when it leaves you.  
  
## White label or grey label

| White label| Grey label  
---|---|---  
**What your customers see**|  Only your brand. They never call the API, never see a key, an error message or this documentation.| Your brand, with the e-invoicing service named as powering it. They may call the API themselves.  
**Who calls the API**|  Your backend only.| Your backend, and your customers' own systems if you hand them their company key.  
**Credentials**|  Your platform key, kept in your vault; or company keys you mint and keep yourself.| Company keys you mint and hand over, each bound to one customer.  
**Support**|  You run first-line support and escalate to the operator.| Shared: you, then the operator.  
**Key type**| `flw_wl_live_…`| `flw_plat_live_…`  
  
Both key types open exactly the same endpoints. The type records which agreement you signed; it does not change what a call does.

The regulated identity is never relabelled

Whatever is on your screens, the accredited operator stays the one on record with the networks and tax authorities. On Peppol, your customers' participant entries point to the operator's access point. In France, the national directory (annuaire) lists the operator's accredited platform (Plateforme Agréée: Flowie SAS, matricule 0064) for each customer you register. Your customers' trading partners and the tax administration see that identity, not yours. Say so in your terms of service. 

## 1 · Get a platform key

Live platform and white-label keys are issued with the partner agreement; they are not self-service. You can rehearse the whole journey today in the sandbox, with no agreement and no real company. This call needs no key:
[code] 
    curl -X POST https://back.flowie.ink/exchange/v1/sandbox/bootstrap \
      -H "Content-Type: application/json" \
      -d '{"label": "partner-rehearsal", "keyType": "platform"}'
[/code]

Expected response (`200`, trimmed):
[code] 
    {
      "organizationId": "org_sbx_…",
      "apiKey": "flw_plat_test_…",
      "keyType": "platform",
      "expiresAt": "2026-12-07T…",
      "nextSteps": ["Save the apiKey now — it will not be shown again.", "…"]
    }
[/code]

Export the key as `FLOWIE_API_KEY`: every call below sends it as `Authorization: Bearer $FLOWIE_API_KEY`. A sandbox platform key (`flw_plat_test_…`) mints only sandbox keys, touches no real company and expires after 7 days. In production, swap the base URL for `https://back.p2p-flowie.com/exchange`.

### Scopes

Scope names follow one pattern, `resource.action`. These are the scopes the API checks on the partner calls; ask for them when your live platform key is issued:

Scope| Checked on  
---|---  
`companies.write`| `POST /v1/platform/companies` (onboard), `DELETE /v1/platform/companies/{companyId}` (release)  
`companies.read`| `GET /v1/platform/companies`  
`api_keys.write` · `api_keys.read`| `POST /v1/platform/api-keys` · `GET /v1/platform/api-keys`  
`webhooks.write` · `webhooks.read`| `POST` / `PATCH` / `DELETE /v1/webhooks` · `GET /v1/webhooks`, including the webhook passed at onboarding  
`usage.read`| `GET /v1/platform/usage`  
`events.read`| `GET /v1/platform/events`  
`settings.write`| `PATCH /v1/platform/settings`  
  
Sending documents, reading them and updating their lifecycle are open to every key that acts for a company: a company key is a full credential for that company, so guard it like one. The scopes a key carries are listed by [`GET /v1/me`](<../reference/index.html#get-me>).

## 2 · Onboard a customer

One call per customer company. It is safe to repeat: calling it again for a company you already manage changes nothing and answers the same company.
[code] 
    curl -X POST https://back.flowie.ink/exchange/v1/platform/companies \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "vatNumber": "FR12345678901",
        "name": "Sandbox France SARL",
        "webhook": {
          "url": "https://hooks.your-product.example/einvoicing",
          "events": ["document.received", "document.delivered", "document.failed"]
        }
      }'
[/code]

Expected response (`201`, trimmed):
[code] 
    {
      "company": {
        "id": "comp_sbx_…",
        "vatNumber": "FR12345678901",
        "name": "Sandbox France SARL",
        "country": "FR",
        "status": "active",
        "smpRegistered": true
      },
      "apiKey": null,
      "webhook": {
        "id": "…",
        "url": "https://hooks.your-product.example/einvoicing",
        "events": ["document.received", "document.delivered", "document.failed"],
        "status": "active"
      }
    }
[/code]

That one call:

  1. finds the company from its VAT number, or creates it from the business registers;
  2. links it under your partner organization. That link is what every partner permission reads;
  3. registers the company's webhook, if you pass `webhook`;
  4. mints a key **bound to that company** , if you pass `apiKey` (`{"name", "scopes"}`). The secret is in `apiKey.key`, shown once. Step 3 does the same on its own.



Store `company.id` against your own customer record: it is the value you send in `X-Flowie-Organization-Id` and in `companyId`. Below it is written `{companyId}`; the Node and Python samples read it from the `COMPANY_ID` environment variable.

A company that is not yours to take is refused, and nothing is changed — see [Errors you may hit](<#errors>). [`GET /v1/platform/companies`](<../reference/index.html#platform-companies>) lists every company you manage, with its country and VAT number, including any subsidiary placed under one of them:
[code] 
    curl https://back.flowie.ink/exchange/v1/platform/companies \
      -H "Authorization: Bearer $FLOWIE_API_KEY"
[/code]

When a customer leaves you, [`DELETE /v1/platform/companies/{companyId}`](<../reference/index.html#platform-company-release>) releases it: the link under your organization is removed and every key you issued for it is revoked. The company, its documents and any key its own users created are untouched, and another provider can then onboard it. Delete the webhooks you registered for it first, with `DELETE /v1/webhooks/{id}` and the company header.

## 3 · Mint a key for the customer

You need a company key in grey label (the customer's own system calls the API), or in white label if you prefer one secret per customer over a single platform key. The key acts as that company and nothing else.
[code] 
    curl -X POST https://back.flowie.ink/exchange/v1/platform/api-keys \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "companyId": "{companyId}",
        "name": "Sandbox France SARL - production",
        "scopes": ["documents.read", "documents.write", "webhooks.read", "webhooks.write"]
      }'
[/code]

Expected response (`201`):
[code] 
    {
      "id": "key_…",
      "key": "flw_test_…",
      "keyPrefix": "flw_test_…",
      "name": "Sandbox France SARL - production",
      "scopes": ["documents.read", "documents.write", "webhooks.read", "webhooks.write"],
      "companyId": "comp_sbx_…",
      "createdAt": "2026-11-30T…",
      "expiresAt": null
    }
[/code]

`key` is shown once: store it in your vault now. A company key's scopes can never exceed your platform key's (`403 scope_escalation`); leave `scopes` out and it inherits your platform key's. Add `expiresAt` (ISO 8601, in the future) for a key that expires on its own.

Call| Does  
---|---  
[`GET /v1/platform/api-keys?companyId={companyId}`](<../reference/index.html#platform-api-keys>)| Lists the live keys of all your companies, or of one. Secrets are never returned again.  
[`DELETE /v1/platform/api-keys/{id}`](<../reference/index.html#platform-api-key-revoke>)| Revokes it immediately: the next call with it answers `401`.  
  
To rotate without downtime: mint the new key, deploy it, then revoke the old one.

## 4 · Send on the customer's behalf

Every endpoint of the API (send, receive, documents, lifecycle, partners, directory, payments, webhooks) works for a managed company in one of two ways.

Pattern| How| Trade-off  
---|---|---  
**Platform key + header**| `Authorization: Bearer $FLOWIE_API_KEY` (your platform key) and `X-Flowie-Organization-Id: {companyId}`| One secret to guard. If it leaks, every customer is exposed. Best for white label.  
**Company key**| `Authorization: Bearer` the company's key, no header| A leak exposes one customer. You rotate one key per customer. Required when customers call the API themselves (grey label).  
  
Here the platform key sends an invoice as the customer onboarded in step 2. `from` names the sender company — its VAT number here; `org:{companyId}` or its Peppol id work too.
[code] 
    curl -X POST https://back.flowie.ink/exchange/v1/documents/send \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "X-Flowie-Organization-Id: {companyId}" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "invoice",
        "from": "vat:FR12345678901",
        "to": "0208:TEST_OK",
        "document": {
          "number": "INV-2026-1130",
          "issueDate": "2026-11-30",
          "currency": "EUR",
          "lines": [
            {"description": "Bookkeeping, November 2026", "quantity": 1, "unitPrice": 450.00, "vatRate": 20}
          ]
        }
      }'
[/code]

Expected response (`201`, trimmed):
[code] 
    {
      "id": "doc_…",
      "status": "sent",
      "type": "INVOICE",
      "number": "INV-2026-1130",
      "from": {"peppolId": "0009:…", "name": "Sandbox France SARL", "companyId": "comp_sbx_…"},
      "to": {"peppolId": "0208:TEST_OK", "name": "…"},
      "totals": {"net": 450.0, "vat": 90.0, "gross": 540.0, "currency": "EUR"},
      "deliveryStatus": "delivered",
      "sentAt": "2026-11-30T…"
    }
[/code]

`status: "sent"` means Flowie accepted the document. `deliveryStatus` is the network state: `pending` on live Peppol until the recipient's access point confirms, then `delivered` or `failed` (`stored` for a file kept without routing). The sandbox answers synchronously with `delivered`.

The header rules are strict:

  * a header naming an organization you do not manage answers `403`. It never falls back to your partner organization;
  * a company key always acts as its company, and ignores the header;
  * a company key cannot reach your partner organization, another customer, or the `/v1/platform/*` endpoints.



Check your wiring with [`GET /v1/me`](<../reference/index.html#get-me>): `organizationId` is the company the credential acts for.
[code] 
    curl https://back.flowie.ink/exchange/v1/me \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "X-Flowie-Organization-Id: {companyId}"
[/code]
[code] 
    {
      "authMethod": "api_key",
      "keyType": "platform",
      "organizationId": "comp_sbx_…",
      "isTestMode": true,
      "…": "…"
    }
[/code]

Reading works the same way: the documents your customer received, and nothing else.
[code] 
    curl "https://back.flowie.ink/exchange/v1/documents?direction=incoming" \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "X-Flowie-Organization-Id: {companyId}"
[/code]

## 5 · Webhooks and events

Each company has its own webhooks: register them at onboarding, or later with `POST /v1/webhooks` sent with the platform key and the company header. Deliveries carry `X-Flowie-Signature: t=<unix>,v1=<hex>`, `X-Flowie-Event` and `X-Flowie-Event-Id`; verify the signature on your server as described in [Webhooks](<../reference/webhooks.html#signing>). In white label, translate the event into your own notification. Never forward the raw delivery to a customer.

If your receiver was down, [`GET /v1/platform/events`](<../reference/index.html#platform-events>) returns the unacknowledged events of all your companies, oldest first, each with `data.companyId`. Add `companyId={companyId}` for one company, and page with `limit` and `cursor`. Acknowledge each event with `POST /v1/events/{event_id}/ack`, sent with the company header.
[code] 
    curl "https://back.flowie.ink/exchange/v1/platform/events?limit=100" \
      -H "Authorization: Bearer $FLOWIE_API_KEY"
[/code]

## 6 · Usage and re-billing
[code] 
    curl "https://back.flowie.ink/exchange/v1/platform/usage?period=2026-11&groupBy=company" \
      -H "Authorization: Bearer $FLOWIE_API_KEY"
[/code]

One row per company and credential: `companyId`, `apiKeyId` (the platform key acting for the company, or the company's own key), `documentsSent`, `documentsReceived`, `documentsFailed`, `apiCalls`. Add up a company's rows to bill it.

## 7 · Your brand and your domain

[`PATCH /v1/platform/settings`](<../reference/index.html#platform-settings>) stores `branding` (logo, colors, sender name), `defaults` and `customDomain` as a record for your integration. The API itself does not answer on your domain and does not brand anything with those values. To expose the service under your own name:

  * put it behind your own API gateway or reverse proxy (`einvoicing.your-product.example` forwarding to `https://back.p2p-flowie.com/exchange`), and keep the keys on that side;
  * re-word errors before showing them: messages are in English and some name the identifiers below;
  * know what stays in server-to-server traffic: the `flw_` key prefixes, the `X-Flowie-*` headers, the webhook signature headers.



## 8 · One portfolio, many countries

The calls are the same for a customer in France, Belgium, Germany, Italy, Spain or the Netherlands. The company's VAT number decides which country rules apply (identifiers, formats, the tax authority exchange). The [country pages](<../compliance/index.html>) list what each mandate needs from you. Rehearse a mixed portfolio in the sandbox with the documented [test companies](<../sandbox/index.html#test-vats>):

Country| `vatNumber`| Sandbox company  
---|---|---  
France| `FR12345678901`| Sandbox France SARL  
Belgium| `BE0000000001`| Sandbox Test BVBA  
Germany| `DE000000001`| Sandbox Deutschland GmbH  
Italy| `IT00000000010`| Sandbox Italia SRL  
Spain| `ES00000000C`| sandbox test company  
Netherlands| `NL000000001B01`| sandbox test company  
  
Onboard each one with your sandbox platform key, list them, then call `GET /v1/me` with each `X-Flowie-Organization-Id`: every answer must name the company you asked for.

## Errors you may hit

Status · code| What it means| Fix  
---|---|---  
`403` · `forbidden_key_type`| A `/v1/platform/*` call made with a key that is not a platform or white-label key (a company key, for instance).| Call it with the platform key.  
`403` · `Missing required scope: …`| Your platform key does not carry the scope the call checks.| See [Scopes](<#scopes>); ask for the scope on your live key.  
`403` · `This platform key does not manage organization …`| The `X-Flowie-Organization-Id` header names a company you have not onboarded.| Check the id you stored, or onboard the company first.  
`403` · `company_unmanaged`| `companyId` in `POST /v1/platform/api-keys` is not one of your managed companies.| Onboard it first; use `company.id` from the onboarding answer.  
`403` · `scope_escalation`| The company key asks for a scope your platform key does not hold.| Drop that scope, or have it added to your platform key.  
`409` · `company_managed_elsewhere`| Another organization already manages this company.| The company asks its current provider to release it, then you onboard it.  
`409` · `company_has_users`| The company already has users of its own on the network.| Its administrator grants your organization access; contact support with the company's written consent.  
`409` · `company_unverified`| Its users could not be checked; nothing was changed.| Retry later.  
`400` · `cannot_onboard_self`| The VAT number is your own organization's.| Onboard your customers, not yourself.  
`401`| Missing, revoked or expired key.| Sandbox keys expire after 7 days: mint a new one.  
`429` · `rate_limited`| Too many requests for your key.| Wait for `Retry-After` seconds, then retry.  
  
Every error code, with its fix: [Errors](<../reference/errors.html>).

## 9 · Partner go-live checklist

✓| Item  
---|---  
☐| Partner agreement signed, live platform key received with the scopes you need, stored in a vault.  
☐| Each customer record stores its `company.id`; every customer call sends it.  
☐| The `409` onboarding refusals are handled in your sign-up flow.  
☐| Your terms of service name the accredited operator and the regulated identity.  
☐| Webhook signatures verified; events translated before your customers see them; `GET /v1/platform/events` wired as a fallback.  
☐| Company keys minted with the smallest scopes that work; a rotation runbook exists.  
☐| Monthly usage export wired into your billing.  
☐| The general [go-live checklist](<index.html#go-live>) is done too.  
  
## Next steps

  * [Platform endpoints](<../reference/index.html#platform>) — every partner call, with Try it.
  * [Receive invoices](<receive-invoices.html>) — webhooks or polling, per company.
  * [Webhooks](<../reference/webhooks.html>) — payloads, signatures and the retry schedule.
  * [Compliance](<../compliance/index.html>) — what each country requires.
  * [Groups with several entities](<multi-entity.html>) — when one customer has many legal entities.
