Money: the split, tax, invoices, refunds, payouts
All amounts are integers in the currency's minor unit.
The split of a payment
Payment fees come off first; then the store takes its commission (15 %, or the seller's partner level's rate); the rest goes to the seller, together with the tax, which the seller remits.
base = gross - tax - fee
commission = round(base x rate)
seller_net = base - commission + taxExample (EXP MCP, USD 99.00 a year, buyer in the US, no tax, Stripe fee 2.9 % + 0.30 = 3.17): base 95.83, commission 14.37, seller 81.46. Check: 3.17 + 14.37 + 81.46 = 99.00.
Example with tax (buyer in Germany, the seller's rule DE 19 %): gross 117.81, tax 18.81, fee 3.72: base 95.28, commission 14.29, seller 80.99 + 18.81 = 99.80. Check: 3.72 + 14.29 + 99.80 = 117.81.
Tax
The seller enters rules per country ({"DE": {"rate": 19, "label": "USt."}, "EU": {"rate": 0, "label": "Reverse charge", "business_only": true}, "*": {"rate": 0}}). The buyer's country picks the rule, then the EU group, then *;
business_only applies only with a VAT id; inclusive when the price contains the tax. The tax is added at checkout
and printed on the invoice.
Invoices
Every payment gets an invoice in the seller's name (the seller's own number series <prefix>-<year>-<00001>, the
seller's legal name, address and tax id, the buyer, the line, the discount, the tax, the total, the guarantees of the
purchase). Issuer, recipient and lines are frozen in the invoice. With each payout the store issues its commission
invoice to the seller (C-<year>-<payout id>).
Refunds
Paid back the way they were paid. The seller gives back their share; the commission goes back proportionally; the provider's fee of the original payment is not returned by the providers and stays with the seller's share. A full refund revokes the license.
Payouts
./console ext:exp_app_market:payouts <YYYY-MM> per seller and currency: gross, fees, tax, commission, refunds (the
seller's share given back in that month), net, the holdback (10 %, held 30 days after the month), holdbacks of earlier
months that became due (released), payable. A negative month pays 0. A payout is open while the month runs, ready
after it (with the commission invoice), paid through the seller's method (--pay or the admin page), settled once
its holdback is released with a later payout.