GET
/
credits
Retrieve credit ledger entries for customer.
curl --request GET \
  --url https://connect.withvayu.com/credits \
  --header 'Authorization: Bearer <token>'
{
  "entries": [
    {
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "type": "Grant",
      "amount": 123,
      "balanceAfterEntry": 123,
      "invoiceId": "<string>",
      "erpId": "<string>",
      "contractId": "<string>",
      "integrationEntities": [
        {
          "updatedAt": "2023-11-07T05:31:56Z",
          "integrationProvider": "Hubspot",
          "integrationExternalId": "<string>",
          "syncStatus": "None",
          "metadata": {},
          "rawSyncedData": {}
        }
      ]
    }
  ]
}

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

The response is of type object.