Skip to content

Generate Cross-Industry Invoice

POST
/generate/cii

Generate a Cross-Industry Invoice XML file from structured data.

Parameters

Query Parameters

skipValidation
Typeboolean
defaultfalse

Request Body

JSON
{
"exchangedDocumentContext": {
"businessProcessSpecifiedDocumentContextParameterId": "string",
"guidelineSpecifiedDocumentContextParameterId": "string"
},
"exchangedDocument": {
"id": "string",
"typeCode": "string",
"issueDateTime": "string",
"issueDateTimeFormat": "string"
},
"supplyChainTradeTransaction": {
"applicableHeaderTradeAgreement": {
"buyerReference": "string",
"sellerTradeParty": {
"name": "string",
"specifiedLegalOrganization": {
"id": "string",
"idSchemeId": "string"
},
"postalTradeAddress": {
"countryId": "string"
},
"specifiedTaxRegistration": {
"id": "string",
"idSchemeId": "string"
}
},
"buyerTradeParty": {
"name": "string",
"specifiedLegalOrganization": {
"id": "string",
"idSchemeId": "string"
}
},
"buyerOrderReferencedDocument": {
"issuerAssignedId": "string"
}
},
"applicableHeaderTradeDelivery": {
},
"applicableHeaderTradeSettlement": {
"invoiceCurrencyCode": "string",
"specifiedTradeSettlementHeaderMonetarySummation": {
"taxBasisTotalAmount": 0,
"taxTotalAmount": 0,
"taxTotalAmountCurrencyId": "string",
"grandTotalAmount": 0,
"duePayableAmount": 0
}
}
}
}

Responses

OK
text/xml
JSON
"<?xml version="1.0"?> "

Playground

Variables
Key
Value
Body
JSON

Samples

cURL
JavaScript
PHP
Python

The tools are open source and released under the MIT License, feel free to use, modify, and share.