Amadis

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Define a new device

This API allows registering a device:

Verb

POST

Resource

/api/datamanagement/v1/SMDevices

Content type

application/json

Body

{

“data”: {

“smrdTerminalId”: “<terminal id>”,

“smrdModel”: <device model>,

“smrdIMEI”: <device IMEI>

}

}

Where:

Field

Description

smrdTerminalId

Device unique terminal Id, assigned by the administrator (max 255 chars).

smdmModel

Device model Id. The device model must exist (see 10.2.1).

smrdIMEI

Device IMEI number (max 15 chars, ‘0000 …’ if none).

The response data is a JSON object with the following structure:

{

Field

Description

“statusCode”: 200,

Request successful

“data”: {

Response data

“smrdId”: <new device Id>

New device Id.

}

}

  • No labels