docs

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.

{
  "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"
}