Skip to main content
GET
https://api.alguna.io
/
wallets
/
{id}
/
credit-grants
curl https://api.alguna.io/wallets/wal_def456/credit-grants \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "id": "grant_abc123",
      "wallet_id": "wal_def456",
      "amount": "500.00",
      "description": "Annual credit allocation",
      "expires_at": "2024-12-31T23:59:59Z",
      "status": "active",
      "created_at": "2024-01-20T10:00:00Z"
    },
    {
      "id": "grant_def456",
      "wallet_id": "wal_def456",
      "amount": "100.00",
      "description": "Promotional credits",
      "expires_at": "2024-03-31T23:59:59Z",
      "status": "exhausted",
      "created_at": "2024-01-15T08:00:00Z"
    }
  ]
}
List all credit grants for a specific wallet.
id
string
required
The wallet ID.
curl https://api.alguna.io/wallets/wal_def456/credit-grants \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "id": "grant_abc123",
      "wallet_id": "wal_def456",
      "amount": "500.00",
      "description": "Annual credit allocation",
      "expires_at": "2024-12-31T23:59:59Z",
      "status": "active",
      "created_at": "2024-01-20T10:00:00Z"
    },
    {
      "id": "grant_def456",
      "wallet_id": "wal_def456",
      "amount": "100.00",
      "description": "Promotional credits",
      "expires_at": "2024-03-31T23:59:59Z",
      "status": "exhausted",
      "created_at": "2024-01-15T08:00:00Z"
    }
  ]
}
items
array
Array of credit grant objects belonging to the wallet.
Grants are returned in order of creation, with the most recent first. Use this endpoint to track all credit sources for a wallet.