Skip to main content
GET
https://api.alguna.io
/
credit-grants
/
{id}
curl https://api.alguna.io/credit-grants/grant_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "grant_abc123",
  "wallet_id": "wal_def456",
  "amount": "500.00",
  "description": "Annual credit allocation",
  "expires_at": "2024-12-31T23:59:59Z",
  "payment_id": null,
  "status": "active",
  "created_at": "2024-01-20T10:00:00Z",
  "updated_at": "2024-01-20T10:00:00Z"
}
Retrieve a credit grant by its ID.
id
string
required
The credit grant ID.
curl https://api.alguna.io/credit-grants/grant_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "grant_abc123",
  "wallet_id": "wal_def456",
  "amount": "500.00",
  "description": "Annual credit allocation",
  "expires_at": "2024-12-31T23:59:59Z",
  "payment_id": null,
  "status": "active",
  "created_at": "2024-01-20T10:00:00Z",
  "updated_at": "2024-01-20T10:00:00Z"
}
id
string
Unique identifier for the credit grant.
wallet_id
string
The wallet this grant belongs to.
amount
string
Grant amount as a decimal string.
status
string
Grant status: active, approved, pending, exhausted, expired, or voided.
expires_at
string
ISO 8601 expiration date, if set.