Get Bulk Invoice Lite
Last updated
Was this helpful?
Last updated
Was this helpful?
Get the E-Invoice status and error message details in bulk for invoices using unique identifiers of the invoice.
POST
Rate Limit : 10 API requests per minute
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.
There are no path parameters for this API.
There are no query parameters for this API.
Invoices
List
Maximum invoice list can be up to 500
Mandatory. List of Invoice
methodOfGeneration
String
Enum : ONLINE, OFFLINE
Optional: default is both OFFLINE and ONLINE
User has to send either UniqueId or the four invoice parameters (Invoice number, Invoice type, Invoice issue date and VAT) to fetch the details.
uniqueId
String
Should be present if the next 4 parameters are absent
Conditional.
Concat of seller vat + invoice id + invoice type code + issue year. All these entities are separated by underscore.
Either unique id or invoice details are required to fetch the details.
invoiceNumber
String
NA
Conditional. Document Number (Invoice Reference Number).
invoiceType
String
Enum: INV, CRN, DBN
Conditional. INV - Invoice, CRN - Credit Note, DBN - Debit Note
issueDate
String
yyyy-mm-dd
Conditional. Document Date
vat
String
NA
Conditional. VAT Number.
Request Body
(Without MethodOfGeneration)
Request Body
(With MethodOfGeneration)
Method of generation is an optional field but giving this will help in querying and fetching the details of the invoices faster.
200
For successful retrieval
401
If the user is not authenticated for the operation
403
If the user is not authorized for the operation
429
Too many requests
5XX
Unhandled exception
invoiceNumber
String
Cannot be null
Mandatory.
Invoice number (ID) as per the input.
einvoiceStatus
Object
PENDING / REPORTED / NOT_REPORTED / ACCEPTED_WITH_WARNING /
CLEARED /
NOT_CLEARED
For clearance: CLEARED, NOT_CLEARED, ACCEPTED_WITH_WARNING
For reported: REPORTED, NOT_REPORTED, ACCEPTED_WITH_WARNING
errorCode
String
Can be empty in case of no error
This field is not empty in case of any error at the time of reporting/clearance. Gives the error code for the error. Error source maybe ClearTax/ZATCA.
errorMessage
String
Can be empty in case of no error
Human readable error message in case of any error at the time of reporting/clearance. Error source maybe ClearTax/ZATCA.
Success - HTTP Status Code - 200
The uniqueIdentifier passed in request params should be valid and must be present in ClearTax datastore.
Four invoice info fields passed to identify the invoice or the UniqueId passed should belong to the user.
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.
Each customer is allowed to send a limited number of requests per minute to prevent server overload. If the limit is exceeded, the server will respond with a 429 Too Many Requests status code.
The API will accept only 500 invoices in a single request and the API will allow 10 threads running parallel. Hence, data for 5000 invoices can be requested in parallel.
The API works for only those invoices present in the CT data store.
Plan this API call 1 hour after sending the invoice to ClearTax. If the invoice is still in pending status then plan the subsequent calls 2, 4, 8, 16 and 30 hours. The invoice will have a terminal status as โFailedโ max by 30 hours if ZATCA is continuously non-responsive.
If the auth token is valid, but the user does not have the authorization to fetch invoice details, 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.