Balance Transaction
A Balance Transaction records every movement of money in or out of your xpay balance: successful charges, refunds, payouts, processing fees, and adjustments. Each Balance Transaction links back to its `source` (the Charge, Refund, or Payout that produced it) and breaks down `gross`, `fee`, and `net` amounts. Use Balance Transactions to reconcile what was paid into your account against what was settled to your bank.
A Balance Transaction records every movement of money in or out of your xpay balance: successful charges, refunds, payouts, processing fees, and adjustments. Each Balance Transaction links back to its source (the Charge, Refund, or Payout that produced it) and breaks down gross, fee, and net amounts. Use Balance Transactions to reconcile what was paid into your account against what was settled to your bank.
{
"id": "txn_abc123",
"object": "balance_transaction",
"amount": 22604,
"availableOn": "string",
"createdAt": "string",
"currency": "EGP",
"description": "string",
"fee": 912,
"net": 21692,
"feeDetails": [
{
"amount": 0,
"currency": "EGP",
"description": "string",
"type": "string",
"application": "string"
}
],
"status": "AVAILABLE",
"type": "CHARGE",
"reportingCategory": "string",
"exchangeRate": 0,
"source": "string",
"payoutBatch": {
"id": "pb_xxx",
"object": "payout_batch",
"amount": 0,
"currency": "EGP",
"status": "paid",
"arrivalDate": "string",
"createdAt": "string",
"updatedAt": "string"
},
"paymentIntentId": "string",
"merchantId": "string"
}Get refund by ID GET
Retrieves a refund with all details including ledger info.
Charge
A Charge represents a single attempt to move money from a customer's payment method to your account. It records what was paid, by whom, through which processor, and the final outcome: `succeeded`, `failed`, or `refunded`. A single PaymentIntent may produce multiple Charges if earlier attempts fail; only the most recent successful Charge actually moves funds, and any subsequent Refunds reference it directly.