i try to test invoice by send it to https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices , using BinarySecurityToken and secret key and certificate generated by final csid , in other words i take invoice already sent to zatca and accepted by send to
https://gw-fatoora.zatca.gov.sa/e-invoicing/core/invoices/reporting/single and reported successfully , but when send same invoice to test environment it return unauthorized , how to test invoices , and i have only final certificate and final requestid and secret key .
three environment , one environment pcsid (BinarySecurityToken ) not work with another environment see below link
=> developer ,
==> simulation(test) ,
===> production (Core)
yes i know , so if i generated RequestId, Secret , final certificate for production , and client sync invoices successfully , i have these information only for production , so if i want to test invoice on simulation . can i use same csid and certificate and test , and run https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/invoices/reporting/single . it return unauthorized
hi @saeed can i use same csid and certificate and test
- NO
- Get your invoice data ready.
- Change the invoice into the format recommended by ZATCA (UBL format).
- Secure the invoice by using your environment-specific CSID/certificate on the updated file from Step 2 (this is just for easier understanding).
- Test the invoice within the ZATCA environment.
Repeat these steps whenever you switch the ZATCA environment, such as between production, simulation, or sandbox
thanks for your support , I got it . and I have 2 questions
about refund of last invoice that have prepayments invoices ,
1-should I need to make credit note for all prepayments invoices individually or make credit note only for last invoice , and if no
2 - Should I set Adjustment of prepayments that used in original invoice in credit note