slovak-egov/einvoice

Infer invoice type from XML

Closed this issue · 0 comments

User should upload only invoice XML and system should infer

  • UBL invoice vs UBL CreditNote vs D16B invoice
  • partiesType (check supplier/customer country)
  • separate endpoint for test invoices POST /invoices/test
  • Drop lang attribute, invoice validator should return only rule IDs, on frontend we can just generate link to documentation

In the end POST /invoices will accept body in application/xml format