Balance Transactions#

Balance Transactions represent individual changes to your CasaPay balance. Every charge, refund, payout, and fee creates a balance transaction.

The Balance Transaction object#

AttributeTypeDescription
idstringUnique identifier with txn_ prefix
objectstringAlways "balance_transaction"
amountintegerNet transaction amount
currencystringISO 4217 currency code
typeenumcharge, refund, payout, payout_cancel, payout_failure, adjustment, fee
statusenumavailable, pending
descriptionstringTransaction description
feeintegerFee amount
netintegerNet amount after fee
sourcestringSource object ID
available_ontimestampWhen funds become available
createdtimestampTime at which the object was created
{
  "id": "txn_abc123",
  "object": "balance_transaction",
  "amount": 120000,
  "currency": "eur",
  "type": "charge",
  "status": "available",
  "description": "Rent payment — Unit 4B",
  "fee": 3480,
  "net": 116520,
  "source": "ch_abc123",
  "available_on": 1706572800,
  "created": 1706140800
}

Retrieve a Balance Transaction#

GET /v1/balance_transactions/:id

curl https://api.casapay.com/v1/balance_transactions/txn_abc123 \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

List Balance Transactions#

GET /v1/balance_transactions

ParameterTypeDescription
typestringFilter by type
sourcestringFilter by source
available_on[gte]timestampAvailable on or after
created[gte]timestampCreated on or after
limitintegerNumber of objects (1–100)
curl "https://api.casapay.com/v1/balance_transactions?type=charge&limit=25" \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"