# Invalid OTP in Simulation

**URL:** <https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102>\
**Category:** Onboarding, renewal and revocation\
**Created:** [September 18, 2024, 10:22am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102 "2024-09-18T10:22:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [September 18, 2024, 10:22am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/1 "2024-09-18T10:22:10Z")

</div>

We generated the otp from simulation portal and we are getting this API response error

{“errors”:[{“code”:“Invalid-OTP”,“message”:“The provided OTP is invalid”}]}

And this is the CSR config

# ------------------------------------------------------------------

# Default section for “req” command options

# ------------------------------------------------------------------

oid\_section = OIDs  
[OIDs]  
certificateTemplateName= 1.3.6.1.4.1.1311.20.2

[req]

# Password for reading in existing private key file

# input\_password = SET\_PRIVATE\_KEY\_PASS

# Prompt for DN field values and CSR attributes in ASCII

prompt = no  
utf8 = no

# Section pointer for DN field options

distinguished\_name = my\_req\_dn\_prompt

# Extensions

req\_extensions = v3\_req

[v3\_req]  
#basicConstraints=CA:FALSE  
#keyUsage = digitalSignature, keyEncipherment

# Production or Testing Template (ASN1:UTF8String:TSTZATCA-Code-Signing - ASN1:UTF8String:ZATCA-Code-Signing)

certificateTemplateName = ASN1:PRINTABLESTRING:PREZATCA-Code-Signing  
subjectAltName=dirName:dir\_sect

[dir\_sect]

# EGS Serial number (1-SolutionName|2-ModelOrVersion|3-serialNumber)

SN = 1-Report Organization|2-WEB|3-352f3b639

# VAT Registration number of TaxPayer (Organization identifier [15 digits begins with 3 and ends with 3])

UID = 311#######00003

# Invoice type (TSCZ)(1 = supported, 0 not supported) (Tax, Simplified, future use, future use)

title = 0100

# Location (branch address or website)

registeredAddress = 0000 King Fahahd st, Khobar

# Industry (industry sector name)

businessCategory = Other

# ------------------------------------------------------------------

# Section for prompting DN field values to create “subject”

# ------------------------------------------------------------------

[my\_req\_dn\_prompt]

# Common name (EGS TaxPayer PROVIDED ID [FREE TEXT])

commonName = INV60

# Organization Unit (Branch name)

organizationalUnitName = Main Branch

# Organization name (Tax payer name)

organizationName = Report

# ISO2 country code is required with US as default

countryName = SA

---

<div class="post-metadata">

**Author:** ![lalomar](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lalomar](https://zatca1.discourse.group/u/lalomar)\
**Post date:** [September 18, 2024, 11:15am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/2 "2024-09-18T11:15:27Z")

</div>

from the config file it appears that you are using a simulation environment, did you obtain the OTP from the simulation environment in Fatoora portal?

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [September 22, 2024, 8:11am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/3 "2024-09-22T08:11:55Z")

</div>

Yes, we did and we still keep getting same response @lalomar

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [September 22, 2024, 8:22am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/4 "2024-09-22T08:22:26Z")

</div>

Yes, we did and we still keep getting same response

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [September 22, 2024, 9:39am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/5 "2024-09-22T09:39:16Z")

</div>

Dear @emyr

Thanks for reaching out,

Can I kindly ask you to send your full concerns with your .cnf file and the steps you are following with screens to API response to the below SP support email. To take a look and get back to you ASAP, and schedule meeting if needed.

SP email: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa).

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [September 26, 2024, 7:43am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/6 "2024-09-26T07:43:32Z")

</div>

We have sent an email and we are still waiting for a reply @idaoud @lalomar

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [September 30, 2024, 8:27am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/7 "2024-09-30T08:27:15Z")

</div>

Hello @idaoud @lalomar

Any update on the issue we sent ? We are still waiting for a reply, the email title is the same title as the post.

Thank you

---

<div class="post-metadata">

**Author:** ![saalotaibi](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@saalotaibi](https://zatca1.discourse.group/u/saalotaibi)\
**Post date:** [September 30, 2024, 10:20am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/8 "2024-09-30T10:20:59Z")

</div>

Dear @emyr

Thank you for reaching out, kindly have you sent the details to the below emails?

sp\_support@zatca.gov.sa  
E-invoicing@zatca.gov.sa

And the team will get back to your concerns as soon as possible.

Thank you.

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [October 7, 2024, 3:22pm UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/9 "2024-10-07T15:22:33Z")

</div>

Hello,

We are still waiting for a reply ?

---

<div class="post-metadata">

**Author:** ![emyr](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@emyr](https://zatca1.discourse.group/u/emyr)\
**Post date:** [October 7, 2024, 3:37pm UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/10 "2024-10-07T15:37:42Z")

</div>

It’s been 2 weeks now and we still haven’t received a reply, we are being delayed a lot due to this, as we are pass our internal deadline for this, also the problem is that when we post to community it takes 2 days for approval and then another 2 days for someone to reply and then again 2 days for approval of our reply and so on, this way it will take us weeks to resolve any issue / question we might have, and it’s been a week since we sent the issue to both emails and still no reply.@saalotaibi @idaoud @lalomar

Please reply ASAP

Thank you in advance

---

<div class="post-metadata">

**Author:** ![James](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@James](https://zatca1.discourse.group/u/James)\
**Post date:** [November 26, 2024, 9:53am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/12 "2024-11-26T09:53:06Z")

</div>

Did you get solution to this? we are so stuck. Facing same error

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [November 26, 2024, 9:59am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/13 "2024-11-26T09:59:13Z")

</div>

Dear @emyr

Can I kindly ask you to shear your email that you reached to SP mail from?

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![James](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@James](https://zatca1.discourse.group/u/James)\
**Post date:** [November 27, 2024, 8:21am UTC](https://zatca1.discourse.group/t/invalid-otp-in-simulation/3102/15 "2024-11-27T08:21:13Z")

</div>

Do we have an issue with the portal? We have tried several times.  
When I try, First am getting : invalid OTP error - ( 2 mins after generating OTP)  
On trying with another OTP, I am getting error 409 (conflict) : Compliance transaction was submitted/generated before.
