View serial numbers of an existing subscription

The view serial numbers of an existing subscription request allows the client application to retrieve the list of device serial numbers present in a particular subscription by using the subscription ID.

View serial numbers of an existing subscription describes the API structure for viewing serial numbers for an existing subscription.

Table 1. View serial numbers of an existing subscription
Title View serial numbers of an existing subscription
URL http://<impact_url>/m2m/subscriptions/{SubscriptionID}/serialNumbers
Method GET
Content-Type application/json
URL Params

subscriptionId:[string]: Specifies the subscription ID for which serial number list required.

Data Params
{
  "subscriptionId": "string",
  "msg": "string", "Code": 1000
}

serialNumbers:[array]: Specifies the list of serial numbers in the subscription.

Msg:[String]: info/warning/error message

Success Code
Response Code: 200
Error Code
401 : Unauthorized 
403 : Forbidden 
404 : Not Found
Sample Call

Curl:

curl -X GET --header 'Accept: application/json'  --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/subscriptions/d7588da6-cd36-455f-8af5-3376e886a3e3/serialNumbers'
Response Body:
{
  "serialNumbers": [
    "010920163",
    "222222",
    "111111"
  ]
}
Notes None