Register a Gutschrift you issued yourself
For a self-billed invoice (Gutschrift) you issued and mailed yourself: number, figures and PDF are taken as they are and booked like a statement of AlphaCount's own — an incoming document, at the issue date against the partner's creditor where the company keeps balance sheets. No number is drawn, nothing is rendered or mailed, and no revenue is needed: never report the same revenue with POST /revenue-events as well, it would be settled a second time.
Frozen once registered: the same request again answers 200 unchanged, another body under the same reference is refused. Report its payment with POST /commission-statements/{id}/payment. No commission_statement.issued webhook fires. The PDF may be 25 MB at most (413 documents.file_too_large); a full storage answers 403 billing.storage_limit_reached. Scope partner:commissions:write.
apiKey partner:commissions:writeAuthorizationBearer <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:commissions:write
source*Source^[a-z0-9][a-z0-9_-]{0,49}$external_ref*External Ref^[A-Za-z0-9][A-Za-z0-9._:@+-]{0,254}$AlphaCount-Version?stringThe API version to use. Default: the current one.
application/json- body
PUT /commission-statements/by-ref/{source}/{ref} — a Gutschrift
another product of ours issued and mailed itself.
gross_amount*Gross Amount^-?\d{1,9}(\.\d{1,2})?$issue_date*Issue Datedatelines*array<>1 <= itemsnet_amount*Net Amount^-?\d{1,9}(\.\d{1,2})?$number*Number1 <= length <= 50partner_ref*Partner Ref^[A-Za-z0-9][A-Za-z0-9._:@+-]{0,254}$pdf_base64*Pdf Base641 <= lengthpdf_sha256*Pdf Sha256^[0-9a-f]{64}$period_end*Period Enddatevat_amount*Vat Amount^-?\d{1,9}(\.\d{1,2})?$OK
application/json- response
cancelled_by_id*string|nullcancels_statement_id*string|nulldocument_id*string|nulle_invoice_format*string|nullexternal_ref?|Your reference, on a statement you issued yourself and registered here.
gross_cents*Gross Centshas_pdf*Has Pdfhas_xml*Has Xmlid*Idissue_date*|nullkind*Kindself_billing is a Gutschrift (self-billed invoice, VAT law); settlement a statement for a private person; partner_invoice asks the partner to invoice.
"self_billing""settlement""partner_invoice"lines*array<>net_cents*Net Centsnumber*string|nullobjected_at*|nullpaid_at*|nullpartner_id*Partner Idpartner_name*string|nullperiod_end*Period Enddatesend_error?|Set when send was requested on create and the mail failed; the statement exists either way. code is one of commission.partner_email_missing (the partner has no address), commission.no_mailbox (the company has none to send from), commission.send_failed (the mail server refused), commission.statement_not_sendable, or — only in the answer replayed for an Idempotency-Key whose first request never finished — commission.send_not_confirmed.
sent_at*|nullsent_to*string|nullstatus*Status"draft""issued""sent""cancelled""objected"stripe_transfer_ids?array<string>|The Stripe Connect transfers reported as its payment.
tax_note*Tax Note"regular""small_business""reverse_charge""private_person"vat_cents*Vat Centsvat_rate*Vat Ratecurl -X PUT 'https://app.alphacount.ai/api/partner/v1/commission-statements/by-ref/string/string' \ -H 'Authorization: Bearer ab_...' \ -H 'Content-Type: application/json' \ -d '{ "gross_amount": "71.40", "issue_date": "2026-06-02", "lines": [ { "amount": "60.00", "basis_amount": "400.00", "contract_month": 5, "customer": "Zwölfte Schule", "paid_at": "2026-05-02", "percent": 15, "service_period_start": "2026-05-01" } ], "net_amount": "60.00", "number": "GS-2026-0007", "partner_ref": "lernlink", "pdf_base64": "JVBERi0xLjcgR3V0c2NocmlmdCB2b24gYWxwaGFsZWFybg==", "pdf_sha256": "b7f2a79238f0bd69e20b7ebccc3a59741a65b1e5b1fd3b58765b27779dff64a2", "period_end": "2026-06-01", "vat_amount": "11.40"}'{ "cancelled_by_id": null, "cancels_statement_id": null, "document_id": "00000000-0000-4000-8000-000000000003", "e_invoice_format": "none", "external_ref": "st-7", "gross_cents": 7140, "has_pdf": true, "has_xml": false, "id": "00000000-0000-4000-8000-000000000001", "issue_date": "2026-06-02", "kind": "self_billing", "lines": [ { "amount_cents": 6000, "basis_cents": 40000, "contract_month": 5, "customer": "Zwölfte Schule", "entry_id": "external:1", "paid_at": "2026-05-02", "percent": 15, "service_period_start": "2026-05-01" } ], "net_cents": 6000, "number": "GS-2026-0007", "objected_at": null, "paid_at": null, "partner_id": "00000000-0000-4000-8000-000000000002", "partner_name": "lern.link GmbH", "period_end": "2026-06-01", "sent_at": null, "sent_to": null, "status": "issued", "stripe_transfer_ids": null, "tax_note": "regular", "vat_cents": 1140, "vat_rate": 19}