GET
/
customers
/
products-consumptions
/
{customerId}
curl --request GET \
  --url https://connect.withvayu.com/customers/products-consumptions/{customerId} \
  --header 'Authorization: Bearer <token>'
{
  "productsConsumptions": [
    {
      "productId": "<string>",
      "productName": "<string>",
      "commitment": 10,
      "consumption": 10,
      "ratio": 1.5
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
string
required

Response

200
application/json
response contains the products consumptions by the customer id
productsConsumptions
object[]
required