BalanceTransactions
in package
Balance transactions resource for payment- and refund-sourced merchant balance entries.
Every transaction has type payment or refund. The type describes its semantic
source, not accounting direction, and exactly one matching payment_id or refund_id.
Tags
Table of Contents
Methods
- __construct() : mixed
- lookup() : BalanceTransaction
- Retrieve one transaction with required id, type, order_id, amount, and created_at.
- page() : BalanceTransactionPage
- Retrieve a paginated list of balance transactions.
Methods
__construct()
public
__construct(HttpClient $http) : mixed
Parameters
- $http : HttpClient
lookup()
Retrieve one transaction with required id, type, order_id, amount, and created_at.
public
lookup(string $transactionId) : BalanceTransaction
When type is payment the response has payment_id; when refund it has refund_id.
Parameters
- $transactionId : string
Return values
BalanceTransactionpage()
Retrieve a paginated list of balance transactions.
public
page([array<string|int, mixed> $payload = [] ]) : BalanceTransactionPage
Returns transactions sorted by created_at in descending order (most recent first). Required transaction fields are id, type, order_id, amount, and created_at. Optional payout_id, available_at, claimed_at, and paid_at are included when applicable.
Parameters
- $payload : array<string|int, mixed> = []
-
Pagination parameters (optional)
- page_number: int - 0-based page index (0-10, default: 0)
- page_size: int - Results per page (1-256, default varies)
Tags
Return values
BalanceTransactionPage —Paginated transaction list with page details