Register New Device
This is an API for registration of the new device.
Request Method
POST
Request URL
{{BASE_URL}}/api/onboarding/register-deviceRequest Authorization
Bearer Token
String
Mandatory
Request Body
DeviceDetails
Object
Mandatory. Device Details Object
OrganizationDetails
Object
Mandatory. Organization Details Object.
Device Details Object
CommonName
String
Mandatory. Name or Asset Tracking Number used by the taxpayer for the Solution Unit being onboarded.
EgsSerialNumber
String
Mandatory. Manufacturer or Solution Provider Name, Model or Version and Serial Number.
Location
String
Mandatory. The address of the Branch or location where the device or solution unit is primarily situated
Industry
String
Mandatory. Industry or sector for which the device or solution will generate invoices.
InvoiceType
String
Mandatory. 1000 for B2B, 0100 for B2C, 1100 for Both.
Otp
String
Mandatory. The one time password generated by the user on the ZATCA. OTP once generated is valid only for 1 hour.
Organization Details Object
OrganizationIdentifier
String
Mandatory. OrganizationIdentifier Registration Number. 15 digits, starting and ending with 3
OrganizationName
String
Mandatory. Taxpayer/Organization Name.
OrganizationUnitName
String
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
Mandatory. Country Code.
Sample Request
Response Status Codes
200
For a successful Device Id 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
Mandatory
DeviceId
String
Mandatory
ErrorList
Array
optional
ErrorList.ErrorCode
String
optional
ErrorList.ErrorMessage
String
optional
ErrorList.ErrorSource
String
optional
Sample Response
Success - HTTP Status Code - 200
Error - HTTP Status Code - 400
Error - HTTP Status Code - 401
API Validations
The VAT for which the device is being registered needs to be already present in Evs Engine before making this API request.
API Constraints
This API needs to be authenticated with a valid user name or vat number and password. If it is not present or is invalid, the API will return HTTP Status Code 401.
If the user name and password is valid, but the user does not have the authorization to generate Invoice, 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