Use this endpoint to get the products consumptions by the customer id.
curl --request GET \ --url https://connect.withvayu.com/customers/products-consumptions/{customerId} \ --header 'Authorization: Bearer <token>'
{ "productsConsumptions": [ { "productId": "<string>", "productName": "Vayu Product", "provisionedAmount": 10, "consumedAmount": 10, "usagePercentage": 1, "hasAccess": true, "remainingAmount": 10, "exceededAmount": 10 } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
response contains the products consumptions by the customer id
The response is of type object.
object