Get PCSID Generation Status
Last updated
Last updated
Gets status of the PCSID generation activity.
GET
Replace the {{BASE_URL}}
with the one mentioned here based on whether you are using sandbox or production.
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
There are no query parameters for this API.
There is no request body for this API.
In Progress State - HTTP Status Code - 200
Succeeded State - HTTP Status Code - 200
Failed state - HTTP Status Code - 500
Error - HTTP Status Code - 400
The ActivityId
should be valid and must be related to PCSID generation only.
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.
HTTP Status Code | Description |
---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
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.
ActivityId
String
UUID
Mandatory. The PcsidGenerationActivityId
received in the previous API.
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.
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.
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.
ResponseMetaData
Object
NA
Optional. ResponseMetaData Object. This will be NULL when activity is IN_PROGRESS
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.