fuadhasni / zatca-xml-js

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

Missing-ComplianceSteps issueProductionCertificate #6

Open almamlaka opened 1 year ago

almamlaka commented 1 year ago

using sandbox issueProductionCertificate is ok but if I use simulation or production api it return this:

{
      code: 'Missing-ComplianceSteps',
      message: 'The compliance certificate is not done with the following compliance steps yet [simplified-credit-note-compliant, simplified-debit-note-compliant]'
}

do you know what is wrong ?

fuadhasni commented 10 months ago

After creating compliance certificate you'll have to call /complinace/invoices endpoint with changes in payload for credit note and debit note.

fuadhasni commented 10 months ago

See export enum ZATCAInvoiceTypes{ INVOICE="388", DEBIT_NOTE="383", CREDIT_NOTE="381" }