Exercise 5: Checking Used Count

Authorization: administration token or client token

Endpoint information: Get a list of line items 

If you call the /provisioning/api/v1.0/instances/{instanceId}/line-items endpoint again, you will notice in the response that the "used" count has been incremented (because 44 tokens have been charged in the previous step, Exercise 4: Running an Access Request):

[

  {

    "activationId": "ACT01-Elastic",

    "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9"

    "start": 1695772800000,

    "end": 1790380800000,

    "quantity": 1000,

    "used": 44,

    "attributes": {

      "elastic": true,

      "rateTableSeries": "PublicationApps"

    }

  }

]

Important:We do not recommend use this method of checking used counts other than in development, or troubleshooting particular situations. Do not send the request frequently or in rapid succession. It will have an impact on the system's ability to respond to access requests, which are its highest priority. Instead, you should use the Data Warehouse for tracking usage.

See also