Skip to main content
GET
Get a billing transaction
One row of your billing statement, by the id a row of the list carries. It is the same row the list returns, plus timezone, the clock its date is on (the workspace’s, unless you send timezone).
A top-up’s payment is what you match it to a card statement or an invoice with: total_charged_cents is what the card was charged, VAT included, and invoice_number is the number on the invoice when there is one. A field the payment record does not hold is null — see Matching a top-up. A gift reads Credits from Yappr.

Errors

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Path Parameters

id
string<uuid>
required

The row's id from GET /billing/transactions. Not a UUID is 404 RESOURCE_ID_INVALID.

Query Parameters

timezone
string

The clock date is read on, as an IANA name. Defaults to the workspace's clock, as the list does. Not a timezone name is 400 TRANSACTIONS_QUERY_INVALID.

Example:

"Asia/Jerusalem"

Response

The row

One row of GET /billing/transactions. A usage row folds one day (on the statement's clock) of one product's charges (id and description null, count the number of charges); a starting_balance row is the balance no ledger entry records (id and description null); every other row is one ledger entry (count 1).

id
string<uuid> | null
required

The entry's id — the one GET /billing/transactions/{id} reads. Null on a usage row and a starting balance.

type
enum<string>
required

top_up — credits you paid for. gift — credits Yappr added with no payment behind them. usage — calls and Agent Eval runs, one row per day per product. refund — a top-up that was refunded or disputed, taking its credits back out. adjustment — a manual correction by Yappr, in either direction. phone_number — a number's first charge or monthly renewal, paid by card. starting_balance — a balance Yappr set with no ledger entry behind it, dated when the credit account was opened (the ledger does not say when it was set); before it the balance is 0. other — anything newer than this list.

Available options:
top_up,
gift,
usage,
refund,
adjustment,
phone_number,
starting_balance,
other
product
enum<string> | null
required

On a usage row, what was charged. Null on every other row.

Available options:
voice_call,
eval_run
date
string<date>
required

The day of the entry on the statement's clock (range.timezone), or of the charges a usage row folds.

Example:

"2026-09-23"

created_at
string<date-time>
required

When the entry was recorded. On a usage row, the day's last charge.

description
string | null
required

The entry's own description. Null on a usage row. A gift row always reads Credits from Yappr.

count
integer
required

How many ledger entries the row stands for. 1 except on usage rows, where it is the number of charges: a call that cost nothing has no entry, so a day's count can be lower than the number of calls Call Logs shows for it.

status
enum<string>
required

Usage rows count completed charges only. The row for today (on the statement's clock) is in_progress: the day is still running and its amount can still grow. Every earlier usage row is completed.

Available options:
completed,
in_progress,
pending,
failed,
refunded
amount_cents
integer
required

Signed for the account holder — positive put credits in, negative took them out (or, for a phone number, was charged to the card).

affects_balance
boolean
required

True when the row moved the credit balance. False for phone numbers (paid by card) and for a row that did not complete.

payment
object | null
required

On a top_up row, what the payment record holds to match it to a card statement or an invoice. Null on every other row.

timezone
string
required

The clock date was read on.

Example:

"Asia/Jerusalem"