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
vat
String
Cannot be empty
Mandatory. VAT or Group VAT of the entity.
Request Path Params
ActivityId
String
UUID
Mandatory. The PcsidGenerationActivityId
received in the previous API.
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
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
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.
Request Meta Info Object
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
ResponseMetaData
Object
NA
Optional. ResponseMetaData Object. This will be NULL when activity is IN_PROGRESS
Response Metadata Object
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