Balance transactions
Every request goes to https://api.lemak.cash. About the reference.
List balance transactions
GET /v1/balance_transactions
Returns every movement of money in your balance in the mode of the API key, newest first. Each entry moves one balance type in one currency: a payment credited net of its fee, a conversion to your settlement currency, a release from pending to available, a settlement, a dispute hold, release or loss, or an adjustment.
Authentication
Bearer key. Your secret API key, which starts with sk_test_ or sk_live_. Send it as Authorization: Bearer <key>. A test key works as soon as your account exists. A production key returns 403 live_not_enabled until your account is activated.
Parameters
| Name | In | Type | Description |
Api-Version optional | header | string | The API version for this request, as a date in YYYY-MM-DD format. When omitted, your account's version applies, which is set to the latest version on your first request. An unknown version returns 400 invalid_api_version. Pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
limit optional | query | integer | The maximum number of objects to return, from 1 to 100. Minimum 1. Maximum 100. Default 20. |
starting_after optional | query | string | A pagination cursor. Pass the ID of the last object on the previous page to get the next page. |
Responses
200
A list of balance transactions.
application/json
BalanceTransactionList
| Field | Type | Description |
object required | list | |
data required | array of BalanceTransaction | Fields of data| Field | Type | Description |
id required | string | Unique identifier for the balance transaction. Pattern ^txn_[A-Z2-7]+$. |
object required | balance_transaction | |
type required | string | What moved the money. payment credits a payment net of its fee. conversion is the exchange to your settlement currency, one entry per currency. release moves funds to the next balance type, such as pending to available. settlement takes available funds into a settlement. dispute_hold, dispute_release and dispute_loss are the stages of a dispute, and dispute_fee is the fee a lost dispute costs. adjustment is every other movement. One of payment, conversion, release, settlement, dispute_hold, dispute_release, dispute_loss, dispute_fee, adjustment. |
balance_type required | string | The balance this entry moves, as GET /v1/balance names it. One of available, pending, dispute_hold, review_hold. |
amount required | Money | The gross amount. Negative when money leaves this balance type. It equals net plus fee.Fields of amount| Field | Type | Description |
amount required | integer (int64) | The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD. |
currency required | string | A currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$. |
|
fee required | Money | The fee taken from amount. Non-zero on a payment alone.Fields of fee| Field | Type | Description |
amount required | integer (int64) | The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD. |
currency required | string | A currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$. |
|
net required | Money | The amount this entry adds to the balance type. Negative when it takes.Fields of net| Field | Type | Description |
amount required | integer (int64) | The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD. |
currency required | string | A currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$. |
|
running_balance required | Money | The balance of this balance type and currency after this entry.Fields of running_balance| Field | Type | Description |
amount required | integer (int64) | The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD. |
currency required | string | A currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$. |
|
exchange_rate optional | string | The rate of a conversion: units of the original currency for one unit of the settlement currency, markup included. Absent on every other type. |
source optional | string | The ID of the object that caused the entry: a payment intent (pi_), a settlement (st_) or a dispute (dp_). Absent on an adjustment. |
created required | string (date-time) | The time the entry was booked. |
available_on optional | string (date-time) | When the funds become available. Present on the available balance, and on a pending entry of a payment once its release time is known. |
|
has_more required | boolean | Whether more objects exist after this page. |
Errors
Every error answers with the error object.
| Status | When |
| Other | An error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second. |
Example
curl https://api.lemak.cash/v1/balance_transactions \
-H "Authorization: Bearer sk_test_..." \
-H "Api-Version: 2026-12-01"