Return recent caller-owned credit-ledger activity.
curl --request GET \
--url https://api.example.com/v1/billing/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/v1/billing/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/billing/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Billing
List billing transactions
Return recent credit additions and deductions.
GET
/
v1
/
billing
/
transactions
Return recent caller-owned credit-ledger activity.
curl --request GET \
--url https://api.example.com/v1/billing/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/v1/billing/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/billing/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Returns recent activity for the authenticated account’s promotional and
purchased credit lots. Customer-facing activity types distinguish one-time
credit purchases, automatic top-ups, promotional credits, usage, expirations,
rollovers, and adjustments. Use
limit to return 1–100 entries; the default is
50.
Was this page helpful?
