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'
import httpx, os
resp = httpx.get(
"https://api.aiclicks.io/api/v1/outreach/campaigns/5e7a1c2d-8b4f-4a6e-9d3c-1f2e3a4b5c6d/balance",
headers={"Authorization": f"Bearer {os.environ['AICLICKS_API_KEY']}"},
)
resp.raise_for_status()
balance = resp.json()["data"]
print(f"${balance['balance_cents'] / 100:.2f} left")
const resp = await fetch(
"https://api.aiclicks.io/api/v1/outreach/campaigns/5e7a1c2d-8b4f-4a6e-9d3c-1f2e3a4b5c6d/balance",
{ headers: { Authorization: `Bearer ${process.env.AICLICKS_API_KEY}` } },
);
const { data } = await resp.json();
console.log(`$${(data.balance_cents / 100).toFixed(2)} left`);
{
"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:
- Top-up — you pay the Stripe payment link or bank transfer that AIclicks sent you. When the payment settles, AIclicks records a
top_uptransaction andbalance_centsgoes up. - Reserve — you approve an opportunity. Its estimated price moves from
balance_centstoreserved_cents. No ledger row is written for a reservation. - Spend — the link goes live. A
spendtransaction is written for the final price, and the reservation ends. If the final price is lower than the estimate, the difference stays inbalance_cents. - 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
UUID of the campaign.
Query parameters
Page of the transaction list. Default 1.
Transactions per page, newest first. Default 50, max 500.
Response
The total of all settled top-ups, minus refunds paid back to you.
Money that is free to use for new approvals.
Money held for approved opportunities that are not live yet.
Money spent on live links.
budget_cents - spent_cents - reserved_cents. null when the campaign has no planned budget.
top_up, spend, refund, reversal or adjustment.
pending (for example, a bank transfer that has not arrived) or settled. Only settled rows count in balance_cents.
Positive for money in, negative for money out.