Device Mapping:


Request Method :: POST
Description: This API is used to map a device to a user through VPA ID, device serial number and device type.
URL: /common/tmsInventory/api/deviceMapping

Headers


Content-Type: application/JSON
Authorization:  The token used for JWT (JSON Web Token) authentication in the Authorization header.

Request Body Parameters

Parameters Parameter description (with examples) Data type Mandatory/Optional
tid Serial no of device.
E.g- 121876567212
String Mandatory
mid Merchant id.
E.g- isuupvtltd@induss
string Mandatory
status Status as active or inactive.
E.g. ACTIVE
string Mandatory
qr_string Qr string string Optional
is_default Is_default value can be false or true.
E.g- true
Boolean Mandatory
mqtt_details MQTT Details.
E.g- mqtt_35.200.193.157
string Mandatory

Sample Request Body


Response Body Parameters

Parameters Parameter description(with examples) Data type
status Status of API failed or success string
statusDesc Description of status string

Sample Response Body


SUCCESS:

 

FAILED: