curl --location --request POST 'https://api.xinvoice.net/v1/invoices/validate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_number": "RE-2026-VAL-001",
"issue_date": "2026-04-07T00:00:00.000Z",
"due_date": "2026-04-21T00:00:00.000Z",
"delivery_date": "2026-04-07T00:00:00.000Z",
"buyer_reference": "04011000-12345-03",
"invoice_note": "Projektphase April 2026",
"order_reference": "PO-2026-001",
"payment_means_code": "58",
"payment_terms_note": "Zahlbar bis 2026-04-21 ohne Abzug.",
"currency": "EUR",
"invoice_type_code": "380",
"seller": {
"name": "Muster GmbH",
"vat_id": "DE123456789",
"street": "Musterstr. 1",
"postal_code": "12345",
"city": "Berlin",
"country_code": "DE",
"email": "seller@example.com",
"contact_name": "Max Muster",
"contact_email": "seller@example.com",
"phone": "+49 30 1234567",
"iban": "DE75512108001245126199"
},
"buyer": {
"name": "Kunde GmbH",
"street": "Hauptstr. 5",
"postal_code": "54321",
"city": "Hamburg",
"country_code": "DE",
"email": "buyer@example.com"
},
"items": [
{
"name": "Webentwicklung",
"description": "Implementierung und Review",
"quantity": 10,
"unit_code": "HUR",
"price": 100,
"tax_rate": 19
}
]
}'