When i use Clearance-Status as 1 or 0 in api

Hi @idaoud

When using reporting and clearing api, the header include clearing-status 1 or 0

What mean by it.

Dear @Shameem

Thanks for reaching out,

Your concerns is not clear, can I kindly ask you to elaborate more with more details to provide the usual comprehensive support?

Thanks,
Ibrahem Daoud.

Dear @idaoud

-H 'Clearance-Status: 1' 

This header is required in clearing , reporting api.

how to decide the clearing-status is enabled or desabled

Dear @Shameem

There is nothing as what you mentioned in ZATCA APIs header, Please find the required Headers for both clearance & Reporting APIs:

key: accept-language                 value: en 
Key: Accept-Version                     value: V2

Thanks,
Ibrahem Daoud.

Dear @idaoud

I am referring

https://sandbox.zatca.gov.sa/IntegrationSandbox

in this page

API Documentation guide > Clearance API

in this doc

Clearance-Status *
string
(header)
	

Specifies the clearance status, while "0" when clearance is disabled and "1" when clearance is enabled

and the example api is like

curl -X 'POST' \
  'https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/invoices/clearance/single' \
  -H 'accept: application/json' \
  -H 'accept-language: en' \
  -H 'Clearance-Status: 1' \
  -H 'Accept-Version: V2' \
  -H 'Authorization: Basic VFVsSlJETnFRME5CTkZOblFYZEpRa0ZuU1ZSRlVVRkJUMEZRUmprd1FXcHpMM2hqV0hkQlFrRkJRVFJCZWtGTFFtZG5jV2hyYWs5UVVWRkVRV3BDYVUxU1ZYZEZkMWxMUTFwSmJXbGFVSGxNUjFGQ1IxSlpSbUpIT1dwWlYzZDRSWHBCVWtKbmIwcHJhV0ZLYXk5SmMxcEJSVnBHWjA1dVlqTlplRVo2UVZaQ1oyOUthMmxoU21zdlNYTmFRVVZhUm1ka2JHVklVbTVaV0hBd1RWSnpkMGRSV1VSV1VWRkVSWGhLVVZWc2NFWlRWVFZYVkRCc1JGSldUa1JSVkZGMFVUQkZkMGhvWTA1TmFsRjNUVlJGZUUxRWEzaFBWRTEzVjJoalRrMXFhM2ROVkVFMVRVUnJlRTlVVFhkWGFrSXhUVkZ6ZDBOUldVUldVVkZIUlhkS1ZGRlVSVzFOUT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YzBkRFEzTkhRVkZWUmtKM1JVSkNSemgzWWxSQ2NrSm5aM0pDWjBWR1FsRmpkMEZ2V21aaFNGSXdZMFJ2ZGt3eVJuQlpWRkYxWlcxR01Ga3lSWFZhTWpreVRHNU9hRXd3VG14amJsSkdZbTVLZG1KSGQzWlZSa3BoVWxWc2RXUnRPWEJaTWxaVVVUQkZNRXh0VmpSa1IyUm9aVzVSZFZveU9USk1iWGgyV1RKR2MxZ3hRbE5YYTFaS1ZHeGFVRk5WVGtaVk1FNUNUa014UkZGVFozaExVelZxWTI1UmQwUm5XVVJXVWpCUVFWRklMMEpCVVVSQloyVkJUVVIzUjBOVGMwZEJVVkZDWjJwalZrSjNVWFpOUXpCSFNsTnpSMEZSVVVKbmFtTldRMGxIUjNGQ01rVXdVSE5UYUhVeVpFcEpaazhyZUc1VWQwWldiV2d2Y1d4YVdWaGFhRVEwUTBGWFVVTkJVa2wzU0ZGWlJGWlNNR3hDUWxsM1JrRlpTVXQzV1VKQ1VWVklRWGROUjBORGMwZEJVVlZHUW5kTlEwMURZMGREVTNOSFFWRlJRbWRxWTFaRFoxRmhUVUpuZDBObldVbExkMWxDUWxGVlNFRjNUWGREWjFsSlMzZFpRa0pSVlVoQmQwbDNRMmRaU1V0dldrbDZhakJGUVhkSlJGTkJRWGRTVVVsb1FVeEZMMmxqYUcxdVYxaERWVXRWWW1OaE0zbGphVGh2Y1hkaFRIWkdaRWhXYWxGeWRtVkpPWFZ4UVdKQmFVRTVhRU0wVFRocVowMUNRVVJRVTNwdFpESjFhVkJLUVRablMxSXpURVV3TTFVM05XVnhZa012Y2xoQlBUMD06Q2tZc0VYZlY4YzFnRkhBdEZXb1p2NzNwR012aC9ReW80THpLTTJoLzhIZz0=' \
  -H 'Content-Type: application/json' \
  -d '{.......

Dear @Shameem

Please note that the sandbox is only to clarify the onboarding process steps, you can’t successfully integrate with ZATCA during Sandbox as it contains a static certificate, However our recommendation is to start with Simulation environment to avoid any issues when proceeding to production environment, As I mentioned previously only (accept-language: en) and (Accept-Version: V2).

I hope it is clear enough now, for any further support, do not hesitate to reach out to our support team via below mail:

SP mail: sp_support@zatca.gov.sa

Thanks,
Ibrahem Daoud.

Thanks you @idaoud

Please help me for below queries

1 .When i completed the clearing api, in response it contains the invoice, did i want to extract it and find the qr code , is that qr append in printing invoice .

  1. Currently my client is printing invoice in their own style, did i want to change to the pdf format as mentioned in sdk or i use the qr in our own pdf.

@Shameem

  1. for Tax Invoices, You need to extract and use the QR value from clearance response API Invoice xml to display it in Invoice pdf
  2. There are no pdf invoice style limitations. However, Invoice should contain the Mandatory fields as mandated by ZATCA. You can refer the E-Invoice guide lines / data dictionary for list of fields and their format
1 Like