Help Center
All API resources

Balances and payments

Read buyer account balances and payment history, and the seller balance and payout history.

List account balances

POST/buyers/balance

Returns every buyer account you own, blocked ones included, with its balance, credit limit and low-balance alert settings, sorted by name. An account that spends another account's balance (use_balance greater than 0) also carries parent_name and parent_balance. Free.

Send pager and off in the form body; they are ignored in the query string. Balances are unrounded decimal strings.

Parameters

  • pagerintegerform fieldOptional

    Maximum number of accounts to return.

    Default30
  • offintegerform fieldOptional

    Number of accounts to skip, for paging.

    Default0
POST/buyers/balance
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
  "https://apiv2.telecomsxchange.com/buyers/balance" \
  -d pager=30 \
  -d off=0
Response
{
  "status": "success",
  "accounts": [
    {
      "i_account": "1855",
      "name": "A2P-Traffic",
      "ip_address": "",
      "currency": "USD",
      "balance": "0",
      "use_balance": "1022",
      "credit_limit": "0",
      "i_customer": "1014",
      "blocked": "0",
      "notification_balance": null,
      "last_notification_status": "1",
      "smpp": "1",
      "parent_name": "Northwind",
      "parent_balance": "4106.060233818736"
    },
    {
      "i_account": "1022",
      "name": "Northwind",
      "ip_address": "203.0.113.15",
      "currency": "USD",
      "balance": "4106.060233818736",
      "use_balance": "0",
      "credit_limit": "60000",
      "i_customer": "1014",
      "blocked": "0",
      "notification_balance": "1000",
      "last_notification_status": "0",
      "smpp": "0"
    }
  ]
}

List payment history

POST/buyers/payhistory

Returns the payments and charges posted to all of your buyer accounts between date_from and date_to, newest first: top-ups, bank-wire credits, DID monthly fees and other balance adjustments. Each row names the account and the payment method. Free.

amount is a formatted string with a thousands separator, such as "10,000.00". status is new, confirmed or declined. Send download=1 to get every matching transaction in one response, without paging.

Parameters

  • date_fromstringform fieldRequired

    Start of the range, inclusive, as YYYY-MM-DD HH:MM:SS.

    Example2026-01-01 00:00:00
  • date_tostringform fieldRequired

    End of the range, inclusive, as YYYY-MM-DD HH:MM:SS.

    Example2026-09-30 23:59:59
  • i_payment_systemintegerform fieldOptional

    Only return transactions from this payment method: 1 for manual payments such as bank wire, 2 for PayPal. 0 returns all.

    Default0
  • amountstringform fieldOptional

    Only return transactions of exactly this amount, for example -1.00.

  • notesstringform fieldOptional

    Only return transactions whose note contains this text, for example DID.

  • pagerintegerform fieldOptional

    Maximum number of transactions to return.

    Default50
  • offintegerform fieldOptional

    Number of transactions to skip, for paging.

    Default0

Errors

MessageWhen
"Wrong date_from format, expected YYYY-MM-DD HH:MM:SS"date_from is missing or is not a YYYY-MM-DD HH:MM:SS timestamp
"Wrong date_to format, expected YYYY-MM-DD HH:MM:SS"date_to is missing or is not a YYYY-MM-DD HH:MM:SS timestamp
POST/buyers/payhistory
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
  "https://apiv2.telecomsxchange.com/buyers/payhistory" \
  -d date_from='2026-01-01 00:00:00' \
  -d date_to='2026-09-30 23:59:59' \
  -d i_payment_system=0 \
  -d pager=50 \
  -d off=0
Response
{
  "status": "success",
  "transactions": [
    {
      "i_transaction": "48213",
      "i_account": "1022",
      "i_payment_system": "1",
      "currency": "USD",
      "amount": "-1.00",
      "status": "confirmed",
      "ts": "2026-09-06 12:00:01",
      "notepad": "Monthly charge for DID 15550104411",
      "account_name": "Northwind",
      "ps_name": "Manual Payment"
    },
    {
      "i_transaction": "47702",
      "i_account": "1022",
      "i_payment_system": "1",
      "currency": "USD",
      "amount": "10,000.00",
      "status": "confirmed",
      "ts": "2026-08-23 10:53:02",
      "notepad": "BANK WIRE",
      "account_name": "Northwind",
      "ps_name": "Manual Payment"
    }
  ]
}

Get seller balance

POST/sellers/balance

Returns your seller balance: the earnings available for payout, in USD. Authenticate with your seller login and seller API key. Free.

Use your seller credentials; buyer credentials are rejected.

Parameters

No parameters.

POST/sellers/balance
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
  "https://apiv2.telecomsxchange.com/sellers/balance"
Response
{
  "status": "success",
  "balance": "22631.2636213539752"
}

List payout history

POST/sellers/payhistory

Returns the payouts TCXC has sent you as a seller, such as bank wires and PayPal transfers, between date_from and date_to, newest first. Authenticate with your seller login and seller API key. Free.

Send download=1 to get every matching payout in one response, without paging.

Parameters

  • date_fromstringform fieldRequired

    Start of the range, inclusive, as YYYY-MM-DD HH:MM:SS.

    Example2026-01-01 00:00:00
  • date_tostringform fieldRequired

    End of the range, inclusive, as YYYY-MM-DD HH:MM:SS.

    Example2026-09-30 23:59:59
  • amountstringform fieldOptional

    Only return payouts of exactly this amount.

  • notesstringform fieldOptional

    Only return payouts whose note contains this text, for example wire.

  • pagerintegerform fieldOptional

    Maximum number of payouts to return.

    Default50
  • offintegerform fieldOptional

    Number of payouts to skip, for paging.

    Default0

Errors

MessageWhen
"Wrong date_from format, expected YYYY-MM-DD HH:MM:SS"date_from is missing or is not a YYYY-MM-DD HH:MM:SS timestamp
"Wrong date_to format, expected YYYY-MM-DD HH:MM:SS"date_to is missing or is not a YYYY-MM-DD HH:MM:SS timestamp
POST/sellers/payhistory
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
  "https://apiv2.telecomsxchange.com/sellers/payhistory" \
  -d date_from='2026-01-01 00:00:00' \
  -d date_to='2026-09-30 23:59:59' \
  -d pager=50 \
  -d off=0
Response
{
  "status": "success",
  "transactions": [
    {
      "i_payout": "2873",
      "i_vendor": "287",
      "amount": "500",
      "i_admin": "0",
      "ts": "2026-08-24 22:14:41",
      "notepad": "Bank Wire"
    },
    {
      "i_payout": "2865",
      "i_vendor": "287",
      "amount": "23000",
      "i_admin": "0",
      "ts": "2026-07-22 15:24:58",
      "notepad": "Bank Wire"
    }
  ]
}