Developers
ApiPlatform fees

State a partner's platform fees for a month

POST
/fee-statements

For a Stripe Connect platform: the invoice over the fees Stripe kept from one partner's sales in a month (period, YYYY-MM) — application fees of direct charges and the part of destination charges the platform did not pass on, fees given back as negative lines. The fees are revenue already, booked with their VAT when their payout came in; the statement books nothing again and is paid on issue (by retention): no payment request, no dunning. Each fee is on one statement only; a second call for the same month states only what came since.

A partner in Germany: 19 % German VAT, booked with the payout — the statement books nothing again. A partner abroad (with stripe_platform.fee_statements on): the fee waited without VAT; the statement takes the tax from the partner as a customer — reverse charge to an EU business with its VAT id, reported in the EC sales list; not taxable for one outside the EU — and books it.

customer is the partner as you created it (PUT /customers/by-ref, with country and VAT id), stripe_account its connected account. Requires an Idempotency-Key. Scope partner:fees:write.

Authorization

apiKey partner:fees:write
headerAuthorizationBearer <ab_…>

An API key from Integrations → Connect AI assistants (MCP) → New access, bound to exactly one company. Each operation names the scope the key must carry.

Scope: partner:fees:write

Header Parameters

Idempotency-Key*string

Your key for this request — a UUID, for example. The same key with the same body answers with the first answer; with another body it is refused.

Length1 <= length <= 255
AlphaCount-Version?string

The API version to use. Default: the current one.

Request Body

application/json
  1. body
customer*
period*Period
Match^\d{4}-(0[1-9]|1[0-2])$
send?Send
Defaultfalse
stripe_account*Stripe Account
Match^acct_[A-Za-z0-9]{1,64}$

Response Body

OK

application/json
  1. response
amount_paid*Amount Paid
cancelled_by*|null
cancels_invoice*|null
contract_external_ref*|

The contract that billed it, if any.

currency*Currency
customer_external_ref*string|null
due_date*|null
dunning_level*|

Highest dunning level sent (0 = payment reminder).

external_ref*string|null
external_source*string|null
id*Id
issue_date*|null
number*|

Invoice number; null while a draft.

overdue*Overdue
paid_at*|

Paid in full, UTC.

sent_at*|

First mail, UTC.

service_period*
status*Status
Value in"draft""issued""sent""partially_paid""paid""cancelled"
total_gross*Total Gross
total_net*Total Net
total_tax*Total Tax
type*Type

A cancellation invoice (Stornorechnung) is type storno with negative amounts.

Value in"invoice""storno"
Example Request
curl -X POST 'https://app.alphacount.ai/api/partner/v1/fee-statements' \  -H 'Authorization: Bearer ab_...' \  -H 'Idempotency-Key: 8e0b3c5e-2f7a-4f6e-9a51-0c2d6f0e1a77' \  -H 'Content-Type: application/json' \  -d '{  "customer": {    "external_ref": "partner-17",    "source": "explentor"  },  "period": "2027-01",  "send": true,  "stripe_account": "acct_1PartnerAkademie"}'
Example Response
{  "amount_paid": "100.00",  "cancelled_by": null,  "cancels_invoice": null,  "contract_external_ref": null,  "currency": "EUR",  "customer_external_ref": "partner-17",  "due_date": "2027-02-01",  "dunning_level": null,  "external_ref": "acct_1PartnerAkademie-2027-01",  "external_source": "fees",  "id": "1b3d5f7a-9c2e-4a6b-8d0f-3e5a7c9b1d42",  "issue_date": "2027-02-01",  "number": "RE-2027-0012",  "overdue": false,  "paid_at": "2027-02-01T07:00:01Z",  "sent_at": "2027-02-01T07:00:02Z",  "service_period": {    "end": "2027-01-31",    "start": "2027-01-01"  },  "status": "paid",  "total_gross": "100.00",  "total_net": "84.03",  "total_tax": "15.97",  "type": "invoice"}