Raw schema
{
"type": "object",
"properties": {
"invoice": {
"description": "The invoice to turn into a ZUGFeRD / Factur-X document.",
"type": "object",
"properties": {
"number": {
"type": "string"
},
"issueDate": {
"type": "string",
"format": "date"
},
"dueDate": {
"type": "string",
"format": "date"
},
"currency": {
"type": "string"
},
"taxRate": {
"type": "number"
},
"taxCategoryCode": {
"type": "string"
},
"seller": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contactName": {
"type": [
"string",
"null"
],
"default": null
},
"phone": {
"type": [
"string",
"null"
],
"default": null
},
"email": {
"type": [
"string",
"null"
],
"default": null
},
"addressLine": {
"type": [
"string",
"null"
],
"default": null
},
"postalCode": {
"type": [
"string",
"null"
],
"default": null
},
"city": {
"type": [
"string",
"null"
],
"default": null
},
"country": {
"type": [
"string",
"null"
],
"default": null
},
"taxNumber": {
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"name"
]
},
"buyer": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contactName": {
"type": [
"string",
"null"
],
"default": null
},
"phone": {
"type": [
"string",
"null"
],
"default": null
},
"email": {
"type": [
"string",
"null"
],
"default": null
},
"addressLine": {
"type": [
"string",
"null"
],
"default": null
},
"postalCode": {
"type": [
"string",
"null"
],
"default": null
},
"city": {
"type": [
"string",
"null"
],
"default": null
},
"country": {
"type": [
"string",
"null"
],
"default": null
},
"taxNumber": {
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"name"
]
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unitPrice": {
"type": "number"
}
},
"required": [
"description",
"quantity",
"unitPrice"
]
}
},
"taxExemptionReason": {
"type": [
"string",
"null"
],
"default": null
},
"reference": {
"type": [
"string",
"null"
],
"default": null
},
"buyerReference": {
"type": [
"string",
"null"
],
"default": null
},
"notes": {
"type": [
"string",
"null"
],
"default": null
},
"bankName": {
"type": [
"string",
"null"
],
"default": null
},
"iban": {
"type": [
"string",
"null"
],
"default": null
},
"bic": {
"type": [
"string",
"null"
],
"default": null
},
"deliveryDate": {
"type": [
"string",
"null"
],
"format": "date",
"default": null
}
},
"required": [
"number",
"issueDate",
"dueDate",
"currency",
"taxRate",
"taxCategoryCode",
"seller",
"buyer",
"lines"
]
}
},
"required": [
"invoice"
]
}