VayuDocumentationIntegrationsAPI ReferenceChange Log
SupportGet started now
API EndpointsCredits

Retrieve credit ledger entries for customer.

This endpoint is used to retrieve the credit ledger entries for a specific customer.

GET
/credits

Authorization

BearerAuthorizer
AuthorizationBearer <token>

In: header

Query Parameters

customerId*string
limit?number
cursor?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/credits?customerId=string"
{  "entries": [    {      "id": "string",      "createdAt": "2019-08-24T14:15:22Z",      "type": "Grant",      "amount": 0,      "balanceAfterEntry": 0,      "invoiceId": "string",      "erpId": "string",      "contractId": "string",      "integrationEntities": [        {          "updatedAt": "2019-08-24T14:15:22Z",          "integrationProvider": "Hubspot",          "integrationExternalId": "string",          "syncStatus": "None",          "metadata": {            "property1": null,            "property2": null          },          "rawSyncedData": {            "property1": null,            "property2": null          }        }      ]    }  ]}
{  "type": "invalid_request_error",  "code": "string",  "message": "string",  "param": "string",  "params": [    {      "param": "string",      "message": "string"    }  ]}
{  "type": "authentication_error",  "code": "authentication_failed",  "message": "string"}
{  "type": "rate_limit_error",  "code": "rate_limit_exceeded",  "message": "string"}
{  "type": "api_error",  "code": "internal_error",  "message": "string"}