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

NameInTypeDescription
Api-Version optionalheaderstringThe 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 optionalqueryintegerThe maximum number of objects to return, from 1 to 100. Minimum 1. Maximum 100. Default 20.
starting_after optionalquerystringA 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

FieldTypeDescription
object requiredlist
data requiredarray of BalanceTransaction
Fields of data
FieldTypeDescription
id requiredstringUnique identifier for the balance transaction. Pattern ^txn_[A-Z2-7]+$.
object requiredbalance_transaction
type requiredstringWhat 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 requiredstringThe balance this entry moves, as GET /v1/balance names it. One of available, pending, dispute_hold, review_hold.
amount requiredMoneyThe gross amount. Negative when money leaves this balance type. It equals net plus fee.
Fields of amount
FieldTypeDescription
amount requiredinteger (int64)The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD.
currency requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
fee requiredMoneyThe fee taken from amount. Non-zero on a payment alone.
Fields of fee
FieldTypeDescription
amount requiredinteger (int64)The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD.
currency requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
net requiredMoneyThe amount this entry adds to the balance type. Negative when it takes.
Fields of net
FieldTypeDescription
amount requiredinteger (int64)The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD.
currency requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
running_balance requiredMoneyThe balance of this balance type and currency after this entry.
Fields of running_balance
FieldTypeDescription
amount requiredinteger (int64)The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD.
currency requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
exchange_rate optionalstringThe rate of a conversion: units of the original currency for one unit of the settlement currency, markup included. Absent on every other type.
source optionalstringThe ID of the object that caused the entry: a payment intent (pi_), a settlement (st_) or a dispute (dp_). Absent on an adjustment.
created requiredstring (date-time)The time the entry was booked.
available_on optionalstring (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 requiredbooleanWhether more objects exist after this page.

Errors

Every error answers with the error object.

StatusWhen
OtherAn 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"