Skip to content

Balance transactions

Trace the payments and refunds behind your Inttegro balance.

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 paymentId; a refund transaction includes its refundId. A finalized payout debit includes payoutId and does not include an order.

amount.value is always a non-negative value in the currency’s smallest unit. Check type 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

TypeScript SDK responseBalanceTransactionv15.0.0

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

TypeScript SDK requestLookupBalanceTransactionRequestv15.0.0
  • #transactionIdstringrequired

    Balance transaction ID returned by Inttegro, beginning with bt_.

Request

POST/balance_transactions/lookup
cURLbash
curl https://api.inttegro.com/balance_transactions/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_id": "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD"
}'
TypeScripttypescript
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",
})
Gogo
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
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.balance_transactions.lookup("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->balanceTransactions->lookup("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.balance_transactions.lookup(transaction_id: "bt_0123456789abcdefghijklmnopqrstuvwxyzABCD")
Javajava
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");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.BalanceTransactions.LookupAsync("bt_0123456789abcdefghijklmnopqrstuvwxyzABCD");
Responsejson
{
  "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

TypeScript SDK requestPageBalanceTransactionsRequestv15.0.0

Request

POST/balance_transactions/page
cURLbash
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
}'
TypeScripttypescript
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,
})
Gogo
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
}
Pythonpython
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,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->balanceTransactions->page([
  'page_number' => 1,
  'page_size' => 2,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.balance_transactions.page(
  page_number: 1,
  page_size: 2
)
Javajava
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);
  }
}
C#csharp
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,
});
Responsejson
{
  "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"
      }
    ]
  }
}

Type to search…

↑↓ navigate↵ selectEsc close