Query Multiple Subscriptions
The following example shows a successful query for usage consumption data for two subscriptions.
0-1-5-1
and 0-1-5-2
. Both subscriptions already exist in the Subscriber
database.Note: You can query usage consumption data for up to 10 subscriptions in one request.
- Method
- POST
- Headers
"Accept":"application/json;charset=utf-8"
- URL
- /tmf-api/usageConsumption/v4/queryUsageConsumption
- Request Body
-
{ "searchCriteria": { "service": [ { "id": "0-1-5-1" }, { "id": "0-1-5-2" } ] } }
- Response Code
200
- Response Body
-
{ "searchCriteria": { "service": [ { "id": "0-1-5-1" }, { "id": "0-1-5-2" } ] }, "usageConsumption": [ { "bucketRefOrValue": [ { "isShared": true, "name": "flexdata", "remainingValueName": "0.0 megabytes", "product": [ { "id": "1" } ], "remainingValue": { "amount": 0.0, "units": "megabytes" }, "reservedValue": { "amount": 0.0, "units": "megabytes" } } ], "service": [ { "id": "0-1-5-1" } ] }, { "bucketRefOrValue": [ { "isShared": true, "name": "flexdata", "remainingValueName": "0.0 megabytes", "product": [ { "id": "1" } ], "remainingValue": { "amount": 0.0, "units": "megabytes" }, "reservedValue": { "amount": 0.0, "units": "megabytes" } } ], "service": [ { "id": "0-1-5-2" } ] } ] }