Service Name     Register Device
Service Method  POST
Service URL  /handhelds/register

Request Header Fields
Content-Type = application/json

Request Body Data (JSON)
{
"name": "<device name>",
"mac_address": "<device macaddress>",
"version": "<app version>",
"build": "<app build number>",
"model_number": "<device model number>",
"public_ip": "<device public ip address>",
"local_ip": "<device local ip address>",
"serial_number": "<device serial number>"

}

Response Data (JSON)
{
"id": <register unique id>,
"device_name": "<device name generated by server>",
"api_key": "<your api-key need to login to server>",
"expiration_date": "<license expiration date>",
"license_type": "<license type>",
"company_name": "<company or tenant name>"

}

 

Example
POST: http://app.senitron.net/api/v1/handhelds/register
{
"name": "UHF Handheld Terminal",
"mac_address": "6C:EC:A1:FF:0B:8E",
"build": "1003",
"model_number": "CL7206D2 (SNHN01)",
"public_ip": "104.51.32.179",
"local_ip": "192.168.22.43",
"version": "1.0.0",
"serial_number": "K3A01A0819070037"

}

Response Data (JSON)
{
"id": 51,
"device_name": "HH-51",
"api_key": "5uXPY38jsk02+jNxNPdybwaSCgv",
"expiration_date": "7-13-2020",
"license_type": "Demo",
"company_name": "Senitron Company"

}