Skip to main content
GET
/
v1
/
credit-pools
/
by-customer
List customer credit pools
curl --request GET \
  --url https://api.useaira.com/v1/credit-pools/by-customer \
  --header 'X-API-KEY: <api-key>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "currencyUnitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "startDate": "2023-12-25",
      "renewalCreditAmount": "<string>",
      "availableAmount": "<string>",
      "scheduleRenewalDate": "2023-12-25",
      "topUpSettings": {
        "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "creditPackageAmount": "<string>",
        "price": 2
      },
      "currencyUnit": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "code": "<string>"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.useaira.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Query Parameters

customerId
string<uuid>
required

The unique identifier of the customer.

Response

Default Response

items
object[]
required

A list of items.