wes4m / zatca-xml-js

An implementation of Saudi Arabia ZATCA's E-Invoicing requirements, processes, and standards in TypeScript.
MIT License
69 stars 58 forks source link

Invoice Compliance Check include egs_uuid which is wrong #17

Closed marwan2 closed 1 year ago

marwan2 commented 1 year ago

I'm requesting ZATCA invoice compliance check API with UUID generated for my device, But the invoiceXML is using another generated UUID, So the API return the following error:

"errorMessages": [
      {
        "type": "ERROR",
        "code": "INVOICE_UUID_VALIDATION",
        "category": "MISSING_UUID_IN_INVOICE",
        "message": "UUID provided in the invoice doesn't match UUID in the provided Request",
        "status": "ERROR"
      },

Just a question now: Do we add a unique UUID per each invoice, or it's only 1 UUID per each EGS generating invoices ?

asim009 commented 1 year ago

@marwan2 Every Invoice will have separate UUID

wes4m commented 1 year ago

@marwan2 each EGS has its own UUID. Also, each invoice has its own UUID in this lib case the UUID for the invoice is the invoice counter number which is just an index that increases per invoice. e.g: 1, 2, ..

However, I'm not sure what's causing the error you have without the invoice and request details.