Builds a UBL-TR e-Invoice or e-Archive XML document from plain JSON, computing every total and validating the parties.
Selling into Türkiye means issuing a UBL-TR document whose element order is fixed by schema and whose totals must agree to the kuruş, or the integrator rejects it. This endpoint takes the invoice as ordinary JSON and returns the XML. Totals you send are ignored on purpose — line amounts, per-rate VAT subtotals and the payable amount are all recomputed here, because a rounding difference of one kuruş is the most common rejection. VKN and TCKN checksums are verified, and the amount is written out in Turkish words as invoices require. It does not sign the document and does not transmit it: the financial seal and the submission to the tax authority belong to your certificate and your integrator. What comes back is a document ready to enter that step.
Credits per call: 3 · Operation id: tr_invoice_build
Request
- Base URL: https://api.temsor.com
- URL: https://api.temsor.com/v1/tr/invoice/build
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.