E-Invoice API
ApiMustang

Invoice class to XML. Input must be JSON.

POST
/e-invoice/invoice2XML

Authorization

AuthorizationBearer <token>

Your API key as a bearer token: Authorization: Bearer of_live_…. An of_test_ key reaches the sandbox instead of the live service — same URL, no other change.

In: header

Query Parameters

format*string
profile*string
version*integer
Formatint32

Header Parameters

USERNAME?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/xml

application/xml

application/json

application/json

curl -X POST "https://example.com/e-invoice/invoice2XML?format=fx&profile=EN16931&version=2" \  -H "Content-Type: application/json" \  -d '{}'
"string"