Generate Device ID
Generates a Device ID in ClearTax.
A new version is available!
You can generate a Device ID, CSID, and PCSID, all in one go with the Register Device API.
Request Method
POST
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
There are no path parameters for this API.
Request Query Params
There are no query parameters for this API.
Request Body
DeviceDetails
Object
NA
Mandatory. Device Details Object
OrganizationDetails
Object
NA
Mandatory. Organization Details Object.
Device Details Object
CommonName
String
Cannot be empty.
Mandatory. Name or Asset Tracking Number used by the taxpayer for the Solution Unit being onboarded.
EgsSerialNumber
String
RegEx: ^1-(?<manufacturer>[a-zA-Z0-9]+)[|]2-(?<model>[a-zA-Z0-9]+)[|]3-(?<serial>[a-zA-Z0-9]+)$
Mandatory. Manufacturer or Solution Provider Name, Model or Version and Serial Number.
Location
String
Cannot be empty.
Mandatory. The address of the Branch or location where the device or solution unit is primarily situated
Industry
String
Cannot be empty.
Mandatory. Industry or sector for which the device or solution will generate invoices.
InvoiceType
String
RegEx: ^(?!0{4})[01]{2}[00]{2}$
Optional. The document type that the Taxpayer’s solution unit will be issuing/generating in “TSXY” format where:
T = Standard Tax Invoice, S = Simplified Tax Invoice, X = Reserved placeholders, Y = Reserved placeholders.
The input for each place above should be using the digits 0 & 1 where: 0 = False/Not supported, 1= True/Supported
(X) and (Y) are for future use and should be set to 0 by default for the time being.
For example: 1000 would mean Solution will be generating Standard Invoices only. 0100 would mean Solution will be generating Simplified invoices only. and 1100 means Solution will be generating both Standard and Simplified invoices.
Default: 1100.
Organization Details Object
Vat
String
15 digits, starting and ending with 3
Mandatory. VAT or Group VAT Registration Number.
OrganizationName
String
Cannot be empty
Mandatory. Taxpayer/Organization Name.
OrganizationUnitName
String
If 11th digit of Vat is not = 1 then free text.
If 11th digit of Vat = 1 then needs to be a 10 digit number.
Mandatory. If Vat is NOT Group Vat, then the branch name of the taxpayer.
If Vat is a Group VAT ID, then the 10-digit TIN of the individual group member.
CountryCode
String
2 letter country code (ISO 3166 Alpha-2)
Mandatory. Country Code.
Sample Request
Response Status Codes
200
For a successful CSR/DeviceId generation.
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
Status
String
Enum:
GENERATED
FAILED
Mandatory. The status of Device ID generation.
GENERATED - Device ID generation was successful.
FAILED - Device ID generation failed with validation errors.
DeviceId
String
MaxLength: 36
UUID. An identifier to exclusively identify the device getting onboarded. On successful Device ID generation, the field value will contain a UUID.
ErrorList
Array
NA
Validation Errors. An array of Error Details Objects. In case there are no errors, this will be an empty Array ([]).
Sample Response
Success - HTTP Status Code - 200
Success with Warning - HTTP Status Code - 200
Error - HTTP Status Code - 400
API Validations
The VAT for which the device is being registered needs to be already present in ClearTax before making this API request.
There can be only one CSR against the
Vat
andEgsSerialNumber
combination. In case of a duplicate request for CSR generation for the sameVat
andEgsSerialNumber
, the API will return the existingDeviceId
along with Error Details. Such an error message may be treated as a warning message.
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