Saleh7 / php-zatca-xml

this package handle the stage 2 of zatca for integration the tax and simpilified tax invoices.
MIT License
12 stars 11 forks source link

Wrong X509IssuerName,X509SerialNumber error while using pcsid certificate from simulation API #2

Open ajaybalachandran opened 9 months ago

ajaybalachandran commented 9 months ago

Hello sir, I got a production certificate(through simulation API not from Core API)-->https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids . I signed an xml through zatca sdk using that certificate. Then i tried to validate the signed xml in zatca developer portal website (Web Based Validator for Non-Technical Users). at that time i got two errors -->

  1. category : SIGNATURE_ERROR; code :X509IssuerName; message : wrong X509IssuerName
  2. category : SIGNATURE_ERROR; code :X509SerialNumber; message : wrong X509SerialNumber

Can you pleasse explain why this is happenning. Does this problem will be solved when i use certificate from the core API(https://gw-fatoora.zatca.gov.sa/e-invoicing/core/production/csids) ? . The IssuerName, SerialNumber i got is given below:

  1. CN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local
  2. 523714212568733975663820536758723156753584848

Please help me to solve this issue.

TareqAlzomor commented 7 months ago

I get same error message but I don't know if you can resolve it ?

TareqAlzomor commented 7 months ago

Hello sir, I got a production certificate(through simulation API not from Core API)-->https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids . I signed an xml through zatca sdk using that certificate. Then i tried to validate the signed xml in zatca developer portal website (Web Based Validator for Non-Technical Users). at that time i got two errors -->

  1. category : SIGNATURE_ERROR; code :X509IssuerName; message : wrong X509IssuerName
  2. category : SIGNATURE_ERROR; code :X509SerialNumber; message : wrong X509SerialNumber

Can you pleasse explain why this is happenning. Does this problem will be solved when i use certificate from the core API(https://gw-fatoora.zatca.gov.sa/e-invoicing/core/production/csids) ? . The IssuerName, SerialNumber i got is given below:

  1. ds:X509IssuerNameCN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
  2. ds:X509SerialNumber523714212568733975663820536758723156753584848</ds:X509SerialNumber>

Please help me to solve this issue.

I get same error message but I don't know if you can resolve it ?

ajaybalachandran commented 5 months ago

I get same error message but I don't know if you can resolve it ?

No it's not solved. Still this error exists. Have you solved it?

nihal-infiniarc commented 4 months ago

any solution? same issue when try to validate xml

huzaifausmannebras commented 4 months ago

I am facing same issue, if you guys solved then just let me know please

nihal-infiniarc commented 4 months ago

if you are facing the issue while validating the "INDIVIDUAL" customer(private customer/ B2C) invoice then its not error. Because according to the guidelines provided by ZATCA (available on their website) we are not required to validate the xml of individual customers(B2C customers). It is only required for company users(B2B).

huzaifausmannebras commented 4 months ago

Hi Nihal , Appreciate your reply , I know it's not required while are going with the b2c , but what if is the thing that will be the output in any form for the invoice will it be pdf or just qr . i mean i want to know that don't we need to send invoice pdf while in B2C ?   


From: nihal-infiniarc @.> Sent: Tuesday, May 14, 2024 12:52 AM To: Saleh7/php-zatca-xml @.> Cc: huzaifausmannebras @.>; Comment @.> Subject: Re: [Saleh7/php-zatca-xml] Wrong X509IssuerName,X509SerialNumber error while using pcsid certificate from simulation API (Issue #2)

if you are facing the issue while validating the "INDIVIDUAL" customer(private customer/ B2C) invoice then its not error. Because according to the guidelines provided by ZATCA (available on their website) we are not required to validate the xml of individual customers(B2C customers). It is only required for company users(B2B).

— Reply to this email directly, view it on GitHubhttps://github.com/Saleh7/php-zatca-xml/issues/2#issuecomment-2109515515, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDA42WS6QKHPJ46QWQ6IM2TZCG7EZAVCNFSM6AAAAABAFNMMYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZGUYTKNJRGU. You are receiving this because you commented.Message ID: @.***>

huzaifausmannebras commented 4 months ago

I got the solution , the error was because my CSR was not same for the details that i mentioned in my invoice as me . so when i add the real details of mine that was associated with the CSR the error goes resolve

AlyAbdullah commented 2 months ago

Hi [huzaifausmannebras] Can you provide where the errors in details you meen ?

5855056077 Eastern Ring Branch Road 3609 3609 Refrigerator market Khamis Mushait 62461 SA 310823755500003 VAT Fakeeh company which part you found error ?
AlyAbdullah commented 2 months ago

I got the solution , the error was because my CSR was not same for the details that i mentioned in my invoice as me . so when i add the real details of mine that was associated with the CSR the error goes resolve

Hi [huzaifausmannebras] Can you provide where the errors in details you meen ? cac:AccountingSupplierParty cac:Party cac:PartyIdentification

5855056077 cac:PostalAddress cbc:StreetNameEastern Ring Branch Road cbc:BuildingNumber3609 cbc:PlotIdentification3609 cbc:CitySubdivisionNameRefrigerator market cbc:CityNameKhamis Mushait cbc:PostalZone62461 cac:Country cbc:IdentificationCodeSA cac:PartyTaxScheme cbc:CompanyID310823755500003 cac:TaxScheme cbc:IDVAT cac:PartyLegalEntity cbc:RegistrationNameFakeeh company which part you found error ?