Credit activity feed
GET
https://emails.routeon.io/api/v1/billing/activity
Aggregated debits (campaigns over the whole period, transactional and OTP per day) interleaved with accruals. meta.totals is present only on the first page of a period.
Parameters
from
string<date-time>
required
query
to
string<date-time>
required
query
Exclusive.
cursor
string
query
Opaque pagination cursor.
per_page
integer
query
Responses
200
OK
403
The caller has no tenant context.
422
Invalid period, cursor or per_page
Example response · 200
{
"status": "success",
"http_code": 200,
"payload": [
{
"kind": "send",
"group_key": "string",
"sort_at": "2024-01-01T00:00:00Z",
"title": "string",
"subtitle_kind": "blast",
"first_at": "2024-01-01T00:00:00Z",
"last_at": "2024-01-01T00:00:00Z",
"day": "2024-01-01",
"source_type": "blast",
"source_id": "string",
"messages": 0,
"refunded_messages": 0,
"credits": 0,
"ledger_entry_id": "00000000-0000-0000-0000-000000000000",
"memo": "string",
"actor": {
"kind": "user",
"email": "string"
}
}
],
"meta": {
"per_page": 0,
"cursor": "string",
"totals": {
"opening_balance": 0,
"closing_balance": 0,
"credits_spent": 0,
"credits_received": 0,
"messages": 0
}
}
}