Balance transactions are the itemized record of money added to or returned from your Inttegro balance. Each entry connects an amount to its order and payment or refund, giving finance and support teams a clear trail for reconciliation.
Use Balances to see current totals. Use balance transactions to explain those totals, trace money back to a sale or refund, and build exports for your accounting system.
The balance transaction object
Payment and refund balance transactions belong to an order. A payment
transaction includes its PaymentIdtransaction.payment_idPaymentIDpaymentIdpaymentIdpayment_idpayment_idpaymentId; a refund
transaction includes its RefundIdtransaction.refund_idRefundIDrefundIdrefundIdrefund_idrefund_idrefundId. A
finalized payout debit includes PayoutIdtransaction.payout_idPayoutIDpayoutIdpayoutIdpayout_idpayout_idpayoutId and
does not include an order.
Amount.Valuetransaction.amount.valueAmount.Valueamount.valueamount.valueamount.valueamount.valueamount.value is always a non-negative value in the
currency’s smallest unit. Check Typetransaction.typeTypetypetypetypetypetype to determine whether
the entry records a payment, refund, or payout. Payment entries include all current
allocations plus available, pending, and spent amount summaries. Released
allocations are omitted.
Properties
BalanceTransactionv13.1.0Go SDK responseBalanceTransactionv14.0.0Java SDK responseBalanceTransactionv11.1.0PHP SDK responseBalanceTransactionv15.0.0Python SDK responseBalanceTransactionv15.0.0Ruby SDK responseBalanceTransactionv13.0.0TypeScript SDK responseBalanceTransactionv15.0.0#
AmountamountAmountamountamountamountamountamountAmountobjectAmountAmountBalanceTransaction\AmountBalanceTransactionAmountBalanceTransaction::AmountAmountAmount of the payment or refund in the currency's smallest unit.Click or tap to expand- #
AllocationsallocationsAllocationsallocationsallocationsallocationsallocationsallocationsIReadOnlyList<BalanceTransactionAllocation>?array[]AllocationList<BalanceTransactionAllocation>arraylist[BalanceTransactionAllocation] | NoneT.nilable(T::Array[T.any(BalanceTransaction::RefundAllocation, BalanceTransaction::PayoutAllocation)])BalanceTransactionAllocation[]All current pending and completed allocations of this payment transaction. Each item includes a stable
bta_…ID, arefundorpayoutdiscriminator, public status and timestamps, and a matching nested object containing the consumer ID and exact allocated amount. Omitted from refund transactions. - #
AvailableAtavailable_atAvailableAtavailableAtavailableAtavailable_atavailable_atavailableAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen payment funds are scheduled to become eligible for payout. This can be a future timestamp. Omitted when the entry does not follow the payment availability lifecycle.
- #
ClaimedAtclaimed_atClaimedAtclaimedAtclaimedAtclaimed_atclaimed_atclaimedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateDeprecated legacy whole-transaction payout timestamp. New integrations should inspect
Allocationstransaction.allocationsAllocationsallocationsallocationsallocationsallocationsallocations. - #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the balance transaction was recorded. Transaction pages are ordered by this timestamp from newest to oldest.
- #
PaymentIdpayment_idPaymentIDpaymentIdpaymentIdpayment_idpayment_idpaymentIdstring?stringstringString?stringstr | NoneT.nilable(String)stringPayment that created the balance transaction. Present when
Typetransaction.typeTypetypetypetypetypetypeisInttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.Payment. - #
PayoutIdpayout_idPayoutIDpayoutIdpayoutIdpayout_idpayout_idpayoutIdstring?stringstringString?stringstr | NoneT.nilable(String)stringPayout that created a finalized payout debit. On legacy payment transactions this can instead be the deprecated whole-transaction payout relationship; new integrations should inspect allocations on payment entries.
#
PendingAmountpending_amountPendingAmountpendingAmountpendingAmountpending_amountpending_amountpendingAmountAmount?object*AmountAmount?BalanceTransaction\AmountBalanceTransactionAmount | NoneT.nilable(BalanceTransaction::PendingAmount)AmountClick or tap to expandAmount reserved by unresolved refund and payout allocations. Present only on payment transactions.
- #
RefundIdrefund_idRefundIDrefundIdrefundIdrefund_idrefund_idrefundIdstring?stringstringString?stringstr | NoneT.nilable(String)stringRefund that created the balance transaction. Present when
Typetransaction.typeTypetypetypetypetypetypeisInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.Refund. #
SpentAmountspent_amountSpentAmountspentAmountspentAmountspent_amountspent_amountspentAmountAmount?object*AmountAmount?BalanceTransaction\AmountBalanceTransactionAmount | NoneT.nilable(BalanceTransaction::SpentAmount)AmountClick or tap to expandAmount permanently consumed by completed refund and payout allocations. Present only on payment transactions.
- #
TypetypeTypetypetypetypetypetypeBalanceTransactionTypeenumTypeBalanceTransactionTypestringLiteral['payment', 'refund', 'payout']BalanceTransaction::TypeBalanceTransactionType | 'payment' | BalanceTransactionType | 'refund' | BalanceTransactionType | 'payout'requiredWhy the transaction exists:
Inttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.PaymentorInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.RefundorInttegro.BalanceTransactionType.Payout"payout"balancetransaction.TypePayoutBalanceTransactionType.PAYOUT\Inttegro\BalanceTransaction\Type::Payoutinttegro.balance_transaction.Type.PAYOUTInttegro::BalanceTransaction::Type::PAYOUTInttegro.BalanceTransactionTypes.Payout.
Look up a balance transaction POST /balance_transactions/lookup
Retrieve one balance transaction by its ID. Use this when you already have a
bt_… identifier from an order, payout, dashboard, or
previous list response and need the complete record.
Request attributes
BalanceTransaction::LookupRequestv13.0.0TypeScript SDK requestLookupBalanceTransactionRequestv15.0.0- #
TransactionIdtransaction_idTransactionIDtransactionIdtransactionIdtransaction_idtransaction_idtransactionIdstringstringstringStringstringstrStringstringrequiredBalance transaction ID returned by Inttegro, beginning with
bt_.
Request
curl https://api.inttegro.com/balance_transactions/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_id": "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.balanceTransactions.lookup({
transactionId: "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
result, err := client.BalanceTransactions.Lookup(ctx, "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.balance_transactions.lookup("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->balanceTransactions->lookup("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.balance_transactions.lookup(transaction_id: "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD")import com.inttegro.Client;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var result = client.balanceTransactions().lookup("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.BalanceTransactions.LookupAsync("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD");{
"transaction": {
"amount": {
"currency": "ghs",
"value": 22000
},
"allocations": [
{
"id": "bta_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"type": "payout",
"status": "pending",
"payout": {
"id": "po_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
"amount": {
"currency": "ghs",
"value": 12000
}
},
"created_at": "2025-04-17T10:00:00.000Z",
"updated_at": "2025-04-17T10:00:00.000Z"
}
],
"available_amount": {
"currency": "ghs",
"value": 10000
},
"available_at": "2025-04-10T12:03:17.000Z",
"created_at": "2025-04-10T12:02:45.000Z",
"id": "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"order_id": "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"pending_amount": {
"currency": "ghs",
"value": 12000
},
"payment_id": "py_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
"spent_amount": {
"currency": "ghs",
"value": 0
},
"type": "payment"
}
}Page through balance transactions POST /balance_transactions/page
Browse balance activity from newest to oldest. Start with page 1, then request later pages until the response contains no transactions.
Request attributes
PageParamsv14.0.0Java SDK requestBalanceTransactionPageParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestBalanceTransaction::PageRequestv13.0.0TypeScript SDK requestPageBalanceTransactionsRequestv15.0.0- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberlongintegerintIntegerintintIntegernumberrequired1-based page number to retrieve. Supported pages are
1through10.
Request
curl https://api.inttegro.com/balance_transactions/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page_number": 1,
"page_size": 2
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.balanceTransactions.page({
pageNumber: 1,
pageSize: 2,
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/balancetransaction"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := balancetransaction.PageParams{
PageNumber: 1,
PageSize: 2,
}
result, err := client.BalanceTransactions.Page(ctx, params)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.balance_transactions.page(inttegro.balance_transaction.PageRequest(
page_number=1,
page_size=2,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->balanceTransactions->page([
'page_number' => 1,
'page_size' => 2,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.balance_transactions.page(
page_number: 1,
page_size: 2
)import com.inttegro.Client;
import com.inttegro.balances.BalanceTransactionPageParams;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = BalanceTransactionPageParams.builder()
.pageNumber(1)
.pageSize(2)
.build();
var result = client.balanceTransactions().page(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.BalanceTransactions.PageAsync(new {
page_number = 1,
page_size = 2,
});{
"page": {
"number": 1,
"size": 2,
"transactions": [
{
"amount": {
"currency": "ghs",
"value": 12200
},
"allocations": [
{
"id": "bta_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
"type": "payout",
"status": "completed",
"payout": {
"id": "po_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
"amount": {
"currency": "ghs",
"value": 10000
}
},
"created_at": "2025-04-18T09:59:45.000Z",
"updated_at": "2025-04-18T10:00:15.000Z",
"completed_at": "2025-04-18T10:00:15.000Z"
}
],
"available_amount": {
"currency": "ghs",
"value": 2200
},
"available_at": "2025-04-11T09:35:02.000Z",
"created_at": "2025-04-11T09:34:40.000Z",
"id": "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"order_id": "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"pending_amount": {
"currency": "ghs",
"value": 0
},
"payment_id": "py_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
"spent_amount": {
"currency": "ghs",
"value": 10000
},
"type": "payment"
},
{
"amount": {
"currency": "ghs",
"value": 8800
},
"created_at": "2025-04-10T21:17:05.000Z",
"id": "bt_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
"order_id": "or_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
"refund_id": "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
"type": "refund"
}
]
}
}