Reconcile balances and ledger entries
Balance endpoints expose funds available to this merchant and environment. Ledger entries explain every balance movement.
GET
https://lirpay.org/api/v2/integration/balancesList every initialized currency balance.
API key requiredbalances:read
{
"balances": [
{
"currency_code": "USDT",
"available_minor": 125050,
"available": "1250.50",
"pending_minor": 3000,
"pending": "30.00",
"reserved_minor": 3000,
"reserved": "30.00",
"decimals": 2
}
],
"mode": "live"
}GET
https://lirpay.org/api/v2/integration/balances/{currency}Read one initialized currency balance.
API key requiredbalances:read
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| currency | string | path | yes | Uppercase currency code such as USDT. |
GET
https://lirpay.org/api/v2/integration/ledger-entriesList balance movements with currency, type, and date filters.
API key requiredbalances:read
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| currency | string | query | no | Filter by currency code. |
| type | string | query | no | Filter by credit, debit, fee, swap_in, swap_out, or manual_adjustment. |
| created_from | RFC3339 | query | no | Include records created at or after this timestamp. |
| created_to | RFC3339 | query | no | Include records created at or before this timestamp. |
| page | integer | query | no | Page number. Defaults to 1. |
| limit | integer | query | no | Items per page. Maximum 100. |
GET
https://lirpay.org/api/v2/integration/ledger-entries/{id}Read one ledger movement.
API key requiredbalances:read
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | uuid | path | yes | Resource identifier returned by a list or create operation. |
{
"ledger_entry": {
"id": "8aa67dbe-2c64-4bb0-a963-cf502619c20e",
"internal_txid": "LDG07A52D047339",
"currency_code": "USDT",
"type": "debit",
"amount_minor": 5000,
"amount": "50.00",
"fee_minor": 300,
"fee": "3.00",
"decimals": 2,
"status": "completed"
}
}