curl --request GET \
--url https://api.goyappr.com/billing/transactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/billing/transactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/billing/transactions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/billing/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/billing/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/billing/transactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/billing/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "4b1d7c3e-0c1a-4e5f-9a2b-6c7d8e9f0a1b",
"type": "top_up",
"product": null,
"date": "2026-09-21",
"created_at": "2026-09-21T08:03:44.120+00:00",
"description": "Credits top-up",
"count": 1,
"status": "completed",
"amount_cents": 5000,
"affects_balance": true,
"payment": {
"channel": "checkout",
"invoice_number": null,
"receipt_number": null,
"total_charged_cents": 5900,
"vat_cents": 900,
"currency": "usd"
},
"timezone": "Asia/Jerusalem"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Get Billing Transaction
One row of the statement, by the id a row of GET /billing/transactions carries — the
same shape as in the list, plus timezone, the clock its date is on. Required scope
billing:read.
A top-up carries payment: how it was paid, the invoice and receipt numbers, and what
the card was charged with VAT, when its payment record holds them. Usage rows fold a day
of charges and have no id, so one charge’s id is not a row here, and neither is a call’s
id (the 404 says which): a call’s cost is on GET /calls/{id}.
A key limited to agents is refused with 403 API_KEY_AGENT_SCOPED: the balance is the
whole workspace’s.
curl --request GET \
--url https://api.goyappr.com/billing/transactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/billing/transactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/billing/transactions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/billing/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/billing/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/billing/transactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/billing/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "4b1d7c3e-0c1a-4e5f-9a2b-6c7d8e9f0a1b",
"type": "top_up",
"product": null,
"date": "2026-09-21",
"created_at": "2026-09-21T08:03:44.120+00:00",
"description": "Credits top-up",
"count": 1,
"status": "completed",
"amount_cents": 5000,
"affects_balance": true,
"payment": {
"channel": "checkout",
"invoice_number": null,
"receipt_number": null,
"total_charged_cents": 5900,
"vat_cents": 900,
"currency": "usd"
},
"timezone": "Asia/Jerusalem"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}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).
curl "https://api.goyappr.com/billing/transactions/4b1d7c3e-0c1a-4e5f-9a2b-6c7d8e9f0a1b" \
-H "Authorization: Bearer $YAPPR_API_KEY"
{
"id": "4b1d7c3e-0c1a-4e5f-9a2b-6c7d8e9f0a1b",
"type": "top_up",
"product": null,
"date": "2026-09-21",
"created_at": "2026-09-21T08:03:44.120+00:00",
"description": "Credits top-up",
"count": 1,
"status": "completed",
"amount_cents": 5000,
"affects_balance": true,
"payment": { "channel": "checkout", "invoice_number": null, "receipt_number": null, "total_charged_cents": 5900, "vat_cents": 900, "currency": "usd" },
"timezone": "Asia/Jerusalem"
}
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
| Status | Code | When |
|---|---|---|
| 400 | TRANSACTIONS_QUERY_INVALID | A query parameter other than timezone, or a timezone that is not an IANA name. |
| 403 | API_KEY_AGENT_SCOPED | The key is limited to some agents; the balance is the whole workspace’s. |
| 404 | NOT_FOUND | No row with that id in this workspace — or the id is one charge, or a call’s id (the answer says which). Usage and starting-balance rows have no id: usage folds a day of charges, and a call’s cost is on GET /calls/{id}. Transaction ids come from the rows of GET /billing/transactions. |
| 404 | RESOURCE_ID_INVALID | The id is not a UUID. |
Authorizations
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
Query Parameters
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).
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.
top_up, gift, usage, refund, adjustment, phone_number, starting_balance, other