Developers
Guides

Run a marketplace

A recipe for a platform with own sales, hosting fees, partner sales through Stripe Connect, monthly payouts and fee statements.

A platform sells its own products, charges partners for hosting, and passes partners' sales through Stripe Connect, keeping a fee. AlphaCount keeps the platform's books; the partners keep their own.

Own sales

Checkout through Stripe (with Stripe Tax) or POST /invoices for invoices paid by transfer or direct debit — ask POST /tax/quote first for a checkout of your own. Stripe sales are booked from Stripe; invoices of the API from the API.

Hosting fees

A separate invoice per partner, best as a contract (PUT /contracts/by-ref/…) billed every cycle. Paid by direct debit or transfer, matched on the bank account, dunned when late — never netted with the partner's sales.

Partner sales

Set the company to stripe_platform.seller = "connected_account" (Stripe). A partner's sale is then Fremdgeld on the platform's balance until it is transferred; only the fee is revenue — 19 % German VAT for a partner in Germany, booked with the payout. Refunds and reversed transfers move the Fremdgeld; Stripe fees are the platform's. Monthly payouts to partners are plain transfers — nothing to report.

Fee statements

At the end of each month, POST /fee-statements per partner with the partner as a customer and its connected account:

{ "customer": { "source": "myapp", "external_ref": "partner-17" }, "stripe_account": "acct_1Partner", "period": "2027-01" }

The invoice lists every fee of the month (fees given back reduce it) and is paid on issue by retention. For a partner in Germany it books nothing again — the revenue stands since its payout. For a partner abroad (with stripe_platform.fee_statements on) it is reverse charge to an EU business with its VAT id, reported in the EC sales list, and booked with the statement. Create the partner as a customer with its country and VAT id.

Commissions you pay out

Sales or trainer commissions your product computes go to AlphaCount as they are: PUT /commission-statements/by-ref/… registers a Gutschrift you issued, or AlphaCount issues it from the agreement; a payout made through Stripe is recorded with POST /commission-statements/{id}/payment (Revenue share).

Checks before going live

In a test company: an own B2C sale, a B2B sale to an EU business, a hosting invoice with dunning, a partner sale with payout and statement, a refund and a dispute, an imported old invoice, three companies side by side, a timeout repeated with the same key, and a full export.

On this page