Reports, earnings and payouts
Advertiser reports
GET /reports
Scope reports:read. The same numbers as the dashboard's Analytics screen (verified views, valid results, the money really charged).
| Query | Notes |
|---|---|
from, to | YYYY-MM-DD; default the last 7 days; at most 92 days |
groupBy | day (default), platform or country |
campaignId | One campaign; required for groupBy=country (goal campaigns) |
goal | Which result to count: messages, orders, brand, video (default: the account's main goal) |
curl "https://api.halaladz.com/api/v1/reports?from=2026-11-01&to=2026-11-07&groupBy=day" \
-H "Authorization: Bearer $HZ_KEY"
{
"from": "2026-11-01", "to": "2026-11-07", "groupBy": "day", "currency": "BDT", "goal": "orders",
"rows": [{"key": "2026-11-01", "results": "12", "views": "800", "spendMicros": "200000000"}],
"totals": {"results": "16", "views": "1100", "spendMicros": "300000000"}
}
curl "https://api.halaladz.com/api/v1/reports?groupBy=platform&from=2026-11-01&to=2026-11-07" -H "Authorization: Bearer $HZ_KEY"
curl "https://api.halaladz.com/api/v1/reports?groupBy=country&campaignId=123" -H "Authorization: Bearer $HZ_KEY"
Platform rows also carry costPerResultMicros. Country rows: key is the country code, results the counted units, spendMicros the money charged there.
Publisher earnings
GET /earnings
Scope earnings:read (publisher keys). Query from, to (at most 92 days) and groupBy = day (default) or property. Rows and totals are exactly the dashboard earnings report; money is listed per currency and never summed across currencies.
curl "https://api.halaladz.com/api/v1/earnings?from=2026-11-01&to=2026-11-07&groupBy=property" \
-H "Authorization: Bearer $HZ_KEY"
Payouts
GET /payouts
Your payout requests, newest first (limit, cursor): id, amount in micros (BDT, taken from your balance), status and dates. A payout sent in another currency (bank SWIFT or Payoneer outside Bangladesh) also has payoutCurrency (e.g. "GBP"), payoutAmountMicros (the amount sent, in micros of that currency) and fxRateE12 (the rate used, fixed when you asked); these are null for payouts in BDT.
curl "https://api.halaladz.com/api/v1/payouts?limit=50" -H "Authorization: Bearer $HZ_KEY"
In the sandbox
Test keys get the same shapes with zeros ("sandbox": true): there is no sandbox traffic, so no numbers are made up.