POST api/Device/CheckDevice

Check if this device is already register or not

Request Information

Body Parameters

CheckDeviceModel
NameDescriptionTypeAdditional information
SerialNumber

device imei

string

None.

UserId

user id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SerialNumber": "sample string 1",
  "UserId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<CheckDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <SerialNumber>sample string 1</SerialNumber>
  <UserId>2</UserId>
</CheckDeviceModel>

Response Information

Resource Description

0:mean
Statestatus codeillustrate:
0. indicates don't success
1000. The user does not exist
1100. device does not exist
1105. The device belongs to itself
1106. You have access to the device
1107. The device has a master number and you can apply for viewing the device
1501. The same request has been submitted
3900. Verify the code validation
4004. The watch hasn't been initialized yet [exclusive status code]
4005. SIM is invalid[exclusive status code]
4006. SIM the card number is known [exclusive status code]
3901. Verification code is needed [exclusive status code]

CheckDeviceResult
NameDescriptionTypeAdditional information
Message

message

string

None.

DeviceId

device id

integer

None.

Model

model

integer

None.

NeedPhone

whether need a user number

boolean

None.

IsActivation

boolean

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "DeviceId": 2,
  "Model": 3,
  "NeedPhone": true,
  "IsActivation": true,
  "State": 6
}

application/xml, text/xml

Sample:
<CheckDeviceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>6</State>
  <DeviceId>2</DeviceId>
  <IsActivation>true</IsActivation>
  <Message>sample string 1</Message>
  <Model>3</Model>
  <NeedPhone>true</NeedPhone>
</CheckDeviceResult>