Get Balance

How much of the campaign deposit is left, how much is reserved and spent, and the full ledger of top-ups, spend and refunds.

curl --request GET \
  --url 'https://api.aiclicks.io/api/v1/outreach/campaigns/5e7a1c2d-8b4f-4a6e-9d3c-1f2e3a4b5c6d/balance?size=2' \
  --header 'Authorization: Bearer ak_live_xxx'
{
  "data": {
    "campaign_id": "5e7a1c2d-8b4f-4a6e-9d3c-1f2e3a4b5c6d",
    "currency": "USD",
    "deposited_cents": 500000,
    "balance_cents": 320000,
    "reserved_cents": 60000,
    "spent_cents": 120000,
    "budget_cents": 500000,
    "budget_remaining_cents": 320000,
    "low_balance_threshold_cents": 50000,
    "transactions": {
      "items": [
        {
          "id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
          "type": "spend",
          "status": "settled",
          "amount_cents": -35000,
          "currency": "USD",
          "opportunity_id": "0b9c8d7e-6f5a-4b3c-8d2e-1a0b9c8d7e6f",
          "note": "Live link: techradar.com",
          "created_at": "2026-12-03T15:20:11.000Z"
        },
        {
          "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
          "type": "top_up",
          "status": "settled",
          "amount_cents": 500000,
          "currency": "USD",
          "opportunity_id": null,
          "note": "Card payment",
          "created_at": "2026-12-01T09:20:00.000Z"
        }
      ],
      "total": 6,
      "page": 1,
      "size": 2,
      "total_pages": 3
    }
  },
  "generated_at": "2026-12-04T09:31:40.551Z"
}

Returns the deposit of one campaign and its ledger. Every money movement is one transaction. The ledger is append-only: AIclicks never edits a transaction. A correction is a new refund, reversal or adjustment row.

The balance changes in these steps:

  1. Top-up — you pay the Stripe payment link or bank transfer that AIclicks sent you. When the payment settles, AIclicks records a top_up transaction and balance_cents goes up.
  2. Reserve — you approve an opportunity. Its estimated price moves from balance_cents to reserved_cents. No ledger row is written for a reservation.
  3. Spend — the link goes live. A spend transaction is written for the final price, and the reservation ends. If the final price is lower than the estimate, the difference stays in balance_cents.
  4. Release — the placement fails. The reservation ends and the money is free again in balance_cents.

When balance_cents is below low_balance_threshold_cents after a settled transaction, AIclicks sends the campaign.balance_low webhook.

Path parameters

path
campaign_idstring
Required

UUID of the campaign.

Query parameters

query
pageinteger

Page of the transaction list. Default 1.

query
sizeinteger

Transactions per page, newest first. Default 50, max 500.

Response

data.deposited_centsinteger
Required

The total of all settled top-ups, minus refunds paid back to you.

data.balance_centsinteger
Required

Money that is free to use for new approvals.

data.reserved_centsinteger
Required

Money held for approved opportunities that are not live yet.

data.spent_centsinteger
Required

Money spent on live links.

data.budget_remaining_centsinteger

budget_cents - spent_cents - reserved_cents. null when the campaign has no planned budget.

data.transactions.items[].typestring
Required

top_up, spend, refund, reversal or adjustment.

data.transactions.items[].statusstring
Required

pending (for example, a bank transfer that has not arrived) or settled. Only settled rows count in balance_cents.

data.transactions.items[].amount_centsinteger
Required

Positive for money in, negative for money out.