Revenue share
Partners who bring you customers get their share of what was paid — computed, stated and booked by AlphaCount.
A sales partner brought you a school; a developer built a product you sell. Each gets a share of the net revenue that was actually paid for it, by the terms you agreed. You keep partners and agreements in your product and mirror them into AlphaCount; AlphaCount computes every share, issues the statement — a self-billed invoice where the partner agreed to one — and books it.
Partners
PUT /commission-partners/by-ref/{source}/{external_ref}:
{
"name": "lern.link GmbH",
"tax_status": "domestic_regular",
"street": "Allee 1",
"zip": "80331",
"city": "München",
"country_code": "DE",
"vat_id": "DE123456789",
"self_billing_agreed_on": "2026-09-01"
}tax_statusdecides how a statement is taxed:domestic_regular,domestic_small_business,eu_reverse_charge,third_country,private_person. It has no default: a partner created without one readsunknown(version2026-11-17) and is issued nothing until you set it.phone: an XRechnung must name the partner's telephone and e-mail.issue_blockersin the answer lists what is still missing before a statement can be issued — the codes a settlement would refuse with, in the order to fix them. Empty: nothing is in the way.self_billing_agreed_on: the day the partner agreed to self-billing. Without it, AlphaCount issues no self-billed invoice.billing_mode,statement_cadence,min_payout_cents,payout_rail: how and how often the partner is settled.- No bank details. A partner's IBAN is set by a person in the app, and every change notifies the company — a
changed account is how money gets redirected. A field like
ibanis refused.
Each partner is also a supplier in the company's books.
Agreements
PUT /commission-agreements/by-ref/{source}/{external_ref}:
{
"partner_ref": "lernlink",
"start_date": "2026-01-01",
"tiers": [
{ "from_month": 1, "to_month": 12, "percent": 15 },
{ "from_month": 13, "to_month": null, "percent": 5 }
]
}tierscount months from theanchor:attribution_start(the customer was attributed) orfirst_paid_revenue.applies_to:attributed_customers(the customers attributed to this partner) orall_customers— a developer's share on every sale of a product.product_numberslimit the agreement to products.accrue_from: the first day AlphaCount computes shares — for an agreement you move over from your own system, so that nothing is paid twice.
Once created, the terms are fixed: different terms are 409 commission.agreement_terms_frozen. A new deal is a new
agreement.
Attributions
PUT /commission-attributions/by-ref/{source}/{external_ref} puts a customer under an agreement from start_date,
until end_date. Or attribute when you invoice — POST /invoices takes
"attribution": { "partner_ref": "lernlink", "agreement_ref": "lernlink-2026" }Revenue
Revenue from invoices of this API and from a connected Stripe account, AlphaCount sees itself. Revenue it does not see
— paid somewhere else — you report with POST /revenue-events, once per (source, external_ref). A refund is a
negative net_amount with reverses_ref. Reporting revenue AlphaCount already sees counts it twice.
The ledger and the statements
GET /commission-entries— every share, per partner and status (open,statemented,paid,void).GET /commission-partners/by-ref/…— the partner with its balance in cents.GET /commission-statements,/{id},/{id}/pdf,/{id}/xml— the statements issued, AlphaCount's and the ones you registered; the XML is the XRechnung of a statement issued in that format.
The commission_statement.* webhooks tell you when a statement is issued,
sent, cancelled, objected to or paid.
Settling and paying
- Settle now:
POST /commission-statementswith the partner (and anIdempotency-Key) issues a statement over everything open — number, PDF, e-invoice where due, booked — and withsend: truemails it. Nothing open, or less than the partner's minimum, answerscommission.nothing_to_settle. What is missing (an address, the tax status, the self-billing agreement) comes back as409with every code inmissing;issue_blockerstells you beforehand. - Your own Gutschrift: issued and mailed by your product?
PUT /commission-statements/by-ref/{source}/{external_ref}registers it as it is — figures and PDF — and books it. Do not report the same revenue withPOST /revenue-eventsas well: it would be settled twice. - Paid it yourselves — a Stripe Connect transfer, PayPal, cash:
POST /commission-statements/{id}/paymentmarks the statement paid and firescommission_statement.paid; a repeat changes nothing.
The API never moves money: it records a payment you made. A payout from the company's bank account is a person's decision in the app.
Contracts and usage
Products with a price model, contracts that bill per cycle, and the usage your product reports.
Stripe and Stripe Connect
Connect a company's Stripe account; AlphaCount books invoices, charges, payouts, fees, refunds, disputes and — for a platform — partners' money and platform fees.