Skip to content

Search the docs

Jump to any page or section

REST API v3

Balance and transactions

Your balance, what’s committed to running orders, your wholesale tier and the full ledger.

The balance object

Your balance, what's committed to running orders, and your wholesale tier.

Orders are paid up front, so balance is already net of everything running. in_flight shows how much of that is still in delivery — any part that isn’t delivered comes back as a refund.

objectstring
Always balance.
Valuebalance
balancedecimal string
Available balance in USD.
currencystring
Always USD.
ValueUSD
in_flightdecimal string
Net charges of orders that are still pending, processing or in_progress. Already deducted from balance; any undelivered part comes back as a refund.
low_balance_thresholddecimal string or null
Your low-balance alert threshold, or null if alerts are off.
tierobject
Your wholesale tier, set by net spend over the trailing 30 days.
Show 5 child fields
idstring
Tier ID.
One ofstartersellerresellerwholesalesource
namestring
Tier name.
discount_percentnumber
Discount applied to every service rate.
spend_30ddecimal string
Charges minus refunds over the last 30 days.
nextobject or null
The next tier, or null at the top tier.
Show 4 child fields
idstring
Tier ID.
namestring
Tier name.
discount_percentnumber
Its discount.
spend_neededdecimal string
Additional 30-day spend needed to reach it.
Example
{
  "object": "balance",
  "balance": "442.51035",
  "currency": "USD",
  "in_flight": "86.02460",
  "low_balance_threshold": "150.00000",
  "tier": {
    "id": "reseller",
    "name": "Reseller",
    "discount_percent": 15,
    "spend_30d": "1057.48965",
    "next": {
      "id": "wholesale",
      "name": "Wholesale",
      "discount_percent": 25,
      "spend_needed": "3942.51035"
    }
  }
}

The transaction object

One ledger row. Every change to your balance has one, with the balance after it.

Each balance change is one row with the balance after it, so a running total always reconciles. A partial order has two rows: the charge when it was placed and the refund when it stopped (see Charges and refunds).

idstring
Transaction ID, txn_…. Use it as starting_after.
objectstring
Always transaction.
Valuetransaction
typestring
What moved the balance.
One ofdepositchargerefundadjustment
amountdecimal string
Signed amount in USD: negative for charges, positive for deposits and refunds.
balance_afterdecimal string
Your balance right after this transaction.
orderinteger or null
The order, for charges and refunds.
refillinteger or null
The refill, if any.
paymentstring or null
The payment, for deposits.
descriptionstring
What happened, in words.
created_atISO 8601 string
When it was posted.
Example
{
  "id": "txn_lgWDr5M6xpGd6V",
  "object": "transaction",
  "type": "refund",
  "amount": "3.19862",
  "balance_after": "444.71835",
  "order": 184520,
  "refill": null,
  "payment": null,
  "description": "Refund for order #184520: 3,029 not delivered",
  "created_at": "2026-11-12T11:46:25.994Z"
}

Retrieve your balance

GET/api/v3/balance

Your available balance, what’s committed to running orders, and your wholesale tier with the spend needed for the next one.

Needs the balance:read scope (read balance). About scopes

Request

curl https://ultrasmm.io/api/v3/balance \
  -H 'Authorization: Bearer tk_live_your_key_here'

Response

200 with the balance object.

Response200OK
{
  "object": "balance",
  "balance": "442.51035",
  "currency": "USD",
  "in_flight": "86.02460",
  "low_balance_threshold": "150.00000",
  "tier": {
    "id": "reseller",
    "name": "Reseller",
    "discount_percent": 15,
    "spend_30d": "1057.48965",
    "next": {
      "id": "wholesale",
      "name": "Wholesale",
      "discount_percent": 25,
      "spend_needed": "3942.51035"
    }
  }
}

Errors

Only the errors every endpoint can return: invalid_api_key, ip_not_allowed, account_suspended, rate_limited, insufficient_scope, internal_error.

List transactions

GET/api/v3/transactions

Your ledger, newest first: every deposit, order charge, refund and adjustment with the balance after it.

Needs the balance:read scope (read balance). About scopes

Query parameters

limitinteger
Optional
Page size, 1–100. Out-of-range values are clamped.
Default 251–100
starting_afterstring
Optional
The next_cursor (a txn_… ID) from the previous page.

Request

curl "https://ultrasmm.io/api/v3/transactions?limit=2" \
  -H 'Authorization: Bearer tk_live_your_key_here'

Response

200 with a list of transaction objects.

Response200OK
{
  "object": "list",
  "data": [
    {
      "id": "txn_QozK1kIjNfYBxs",
      "object": "transaction",
      "type": "charge",
      "amount": "-2.20800",
      "balance_after": "442.51035",
      "order": 184610,
      "refill": null,
      "payment": null,
      "description": "Order #184610: 1,000 × Followers — Premium, 30-day refill",
      "created_at": "2026-11-15T10:14:03.532Z"
    },
    {
      "id": "txn_lgWDr5M6xpGd6V",
      "object": "transaction",
      "type": "refund",
      "amount": "3.19862",
      "balance_after": "444.71835",
      "order": 184520,
      "refill": null,
      "payment": null,
      "description": "Refund for order #184520: 3,029 not delivered",
      "created_at": "2026-11-12T11:46:25.994Z"
    }
  ],
  "has_more": true,
  "next_cursor": "txn_lgWDr5M6xpGd6V"
}

Errors

Only the errors every endpoint can return: invalid_api_key, ip_not_allowed, account_suspended, rate_limited, insufficient_scope, internal_error.

Something unclear or out of date? Write to [email protected] and quote the page.