GET
/
credits
curl --request GET \
  --url https://connect.withvayu.com/credits \
  --header 'Authorization: Bearer <token>'
{
  "entries": [
    {
      "type": "Grant",
      "amount": 123,
      "invoiceId": "<string>",
      "balanceAfterEntry": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

customerId
string
required
limit
number
default:10
Required range: x <= 1000
cursor
string

Response

200
application/json
RequestSuccess
entries
object[]
required

The credit ledger entries for the customer.