curl -s -X POST http://localhost:8081/api/v1/invoices/validate \
-H "Authorization: Bearer ip_sandbox_demo" \
-H "Content-Type: application/json" \
-d '{
"format": "factur-x",
"buyer": { "siren": "552100554", "legal_name": "ACME SAS" },
"seller": { "siren": "512345678", "legal_name": "Dupont Conseil" },
"operation_category": "SERVICES",
"issue_date": "2026-07-17",
"service_date": "2026-07-17",
"lines": [
{
"description": "Conseil",
"quantity": 1,
"unit_price_ht": 100,
"vat_rate": 20
}
]
}'