# Getting error on production simulation

**URL:** <https://zatca1.discourse.group/t/getting-error-on-production-simulation/865>\
**Category:** FATOORA portal and Simulation portal\
**Created:** [October 18, 2023, 7:01am UTC](https://zatca1.discourse.group/t/getting-error-on-production-simulation/865 "2023-10-18T07:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danishali](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@danishali](https://zatca1.discourse.group/u/danishali)\
**Post date:** [October 18, 2023, 7:01am UTC](https://zatca1.discourse.group/t/getting-error-on-production-simulation/865/1 "2023-10-18T07:01:49Z")

</div>

Dear Zatca,

I am getting error “You are not authorized to use this API endpoint” when i am reporting to simulation production.Is it necessary to first complete all compliance then move to simulation production? or error is something else?

Regards  
Danish Ali

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [October 25, 2023, 6:51am UTC](https://zatca1.discourse.group/t/getting-error-on-production-simulation/865/2 "2023-10-25T06:51:30Z")

</div>

Dear @danishali ,

please note that you need to send the CCSID and secret returned from first API.  
with the request to Production CSID API in authorization tab.

after you get the PCSID and its secret you should use them instead as credentials in authorization tab with both APIs (reporting, clearance).

Regards,
