Get PCSID Generation Status
Gets status of the PCSID generation activity.
Request Method
GET
Request URL
Replace the {{BASE_URL}}
with the one mentioned here based on whether you are using sandbox or production.
Request Headers
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
x-cleartax-auth-token | String | Cannot be empty. | Mandatory. User auth token. |
vat | String | Cannot be empty | Mandatory. VAT or Group VAT of the entity. |
Request Path Params
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
ActivityId | String | UUID | Mandatory. The |
Request Query Params
There are no query parameters for this API.
Request Body
There is no request body for this API.
Sample Request
Response Status Codes
HTTP Status Code | Description |
---|---|
200 | For a successful status retrieval. |
400 | For any kind of validation issues. |
401 | If the user is not authenticated for the operation. |
403 | If the user is not authorized for the operation. |
Response Schema
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
ActivityType | String | NA | Mandatory. Activity type of the async activity. This will always be ZATCA_COMPLIANCE_INVOICE. |
Status | String | Enum: IN_PROGRESS, SUCCEEDED, FAILED | Mandatory. The status of the entire asnc activity. IN_PROGRESS - PCSID generation is in progress. SUCCEEDED - PCSID generation is complete. FAILED - PCSID generation failed. |
CreatedAt | String | Timestamp (UTC) | Mandatory. When the async activity was created. |
UpdatedAt | String | Timestamp (UTC) | Mandatory. When the async activity was last updated. |
CompletedAt | String | Timestamp (UTC) | Mandatory. When the async activity was completed. If the state is IN_PROGRESS, the value will be null. |
RequestMetaInfo | Object | NA | Request Meta Info Object. |
ResponseInfo | Object | NA | Response Info Object. |
ErrorList | Array | NA | Optional. Array of Error Details objects. |
Request Meta Info Object
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
TotalCount | Number | NA | Mandatory. Always 6. 6 indicates the number of compliance checks done. |
SuccessCount | Number | Will be less than or equal to TotalCount | Mandatory. Number of compliance checks, mentioned above, that passed. This will be updated only after the entire activity is completed. |
FailureCount | Number | Will be less than or equal to TotalCount | Mandatory. Number of compliance checks, mentioned above, that failed. This deals with all errors (zatca/CT server 5xx failure + compliance checks or 4xx failures). This will be updated only after the entire activity is completed. |
Response Info Object
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
ResponseMetaData | Object | NA | Optional. ResponseMetaData Object. This will be NULL when activity is IN_PROGRESS |
Response Metadata Object
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
PcsidGenerated | String | Enum: GENERATED, FAILED | Mandatory. Final PCSID generation status. This is dependent on the 6 compliance checks listed below. |
StandardTaxInvoice | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Standard Tax Invoice. |
StandardTaxInvoiceCredit | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Standard Tax Invoice - Credit Note. |
StandardTaxInvoiceDebit | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Standard Tax Invoice - Debit Note. |
SimplifiedTaxInvoice | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Simplified Tax Invoic |
SimplifiedTaxInvoiceCredit | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Simplified Tax Invoice - Credit Note. |
SimplifiedTaxInvoiceDebit | String | SUCCEEDED/ comma separated error messages | Optional. State of compliance check for Simplified Tax Invoice - Debit Note. |
Sample Response
In Progress State - HTTP Status Code - 200
Succeeded State - HTTP Status Code - 200
Failed state - HTTP Status Code - 500
Error - HTTP Status Code - 400
API Validations
The
ActivityId
should be valid and must be related to PCSID generation only.
API Constraints
This API needs to be authenticated with a valid user authentication token. If the auth token is not present or is invalid, the API will return HTTP Status Code 401.
If the auth token is valid, but the user does not have the authorization to generate device ID, then the API will return HTTP Status Code 403. The user, whose auth token is used, should have an Admin role for the particular VAT used in the request.
Last updated