Quote the tax of a sale
What a sale would be taxed at — before checkout or before the invoice — by the same engine that issues every invoice: German VAT at 19 or 7 %, reverse charge to an EU business (reported in the EC sales list), an export, an OSS sale at the rate of the customer's member state once the threshold of § 3c UStG is crossed, or no VAT for a small business. Name a customer you created, or a buyer for a checkout without one; say per line what is sold (service, electronic, goods).
Nothing is stored or booked. invoice_note is the wording the invoice will print; review lists what a person should look at (an unknown VAT id, a missing OSS registration). A VAT id the BZSt or VIES reported as not valid on the day of the sale counts as none — German VAT, no reverse charge. Send the same lines to POST /invoices and the invoice carries the same amounts. Scope partner:invoices:read.
apiKey partner:invoices:readAuthorizationBearer <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:invoices:read
AlphaCount-Version?stringThe API version to use. Default: the current one.
application/json- body
buyer?|nullcustomer?|nulldate?Datelines*array<>1 <= items <= 200OK
application/json- response
invoice_note*|The wording the invoice prints for this case, if any.
lines*array<>reported_in*|Where the sale is declared: VAT return, EC sales list, or OSS return.
review*array<string>Warning codes a person should look at; empty when the case is clear.
taxed_in*|Country whose VAT applies (ISO 3166-1 alpha-2), if any.
total_gross*Total Grosstotal_net*Total Nettotal_tax*Total Taxtreatment*TreatmentHow the sale is taxed.
"standard""reverse_charge_13b_1""reverse_charge_13b_2""intra_community_acquisition""intra_community_supply""eu_b2b_service_out""export_third_country""small_business""tax_exempt""reverse_charge_13b_out""not_taxable""oss"vat_category*Vat CategoryEN 16931 VAT category (S, AE, K, G, E, O).
curl -X POST 'https://app.alphacount.ai/api/partner/v1/tax/quote' \ -H 'Authorization: Bearer ab_...' \ -H 'Content-Type: application/json' \ -d '{ "buyer": { "country_code": "AT", "type": "private" }, "lines": [ { "description": "Online-Kurs Excel", "kind": "electronic", "quantity": 1, "unit_price_net": "200.00" } ]}'{ "invoice_note": null, "lines": [ { "description": "Online-Kurs Excel", "gross": "240.00", "net": "200.00", "tax": "40.00", "vat_rate": 20 } ], "reported_in": "oss", "review": [], "taxed_in": "AT", "total_gross": "240.00", "total_net": "200.00", "total_tax": "40.00", "treatment": "oss", "vat_category": "S"}