Skip to content

Transaction History

View your credit usage history via the API or dashboard.

Via Dashboard

The easiest way — log in to dashboard.yebolink.com and go to Credits to see your full transaction history.

Via API

Endpoint

GET /api/v1/billing/transactions

Requires JWT token authentication.

bash
curl https://api.yebolink.com/api/v1/billing/transactions \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
javascript
const response = await fetch('https://api.yebolink.com/api/v1/billing/transactions', {
  headers: { 'Authorization': `Bearer ${jwtToken}` }
});

const data = await response.json();
console.log(data.data.transactions);
python
import requests

response = requests.get(
    'https://api.yebolink.com/api/v1/billing/transactions',
    headers={'Authorization': f'Bearer {jwt_token}'}
)

transactions = response.json()['data']['transactions']
for txn in transactions:
    print(f"{txn['type']}: {txn['description']}")

Response

json
{
  "success": true,
  "data": {
    "transactions": [
      {
        "id": "txn_1234567890",
        "type": "adjustment",
        "credits": 715,
        "description": "Credit top-up — Business Pack",
        "status": "completed",
        "created_at": "2026-02-27T10:00:00Z"
      },
      {
        "id": "txn_0987654321",
        "type": "usage",
        "credits": -1,
        "description": "SMS sent to +26878422613",
        "status": "completed",
        "created_at": "2026-02-27T11:30:00Z"
      }
    ]
  }
}

Transaction Types

TypeDescription
adjustmentCredits added by YeboLink team
usageCredits deducted for sent messages
refundCredits returned for failed messages

Built with VitePress