curl -X GET "https://api.danubeai.com/v1/wallet/transactions?limit=20" \ -H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClientwith DanubeClient(api_key="YOUR_API_KEY") as client: for tx in client.wallet.get_transactions(limit=20): print(f"{tx.created_at} {tx.type} {tx.amount_cents / 100:+.2f}")
import { DanubeClient } from 'danube';const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });const transactions = await client.wallet.getTransactions({ limit: 20 });for (const tx of transactions) { console.log(`${tx.createdAt} ${tx.type} ${(tx.amountCents / 100).toFixed(2)}`);}
List your wallet transactions, newest first, with pagination and an optional type filter
GET
/
v1
/
wallet
/
transactions
curl -X GET "https://api.danubeai.com/v1/wallet/transactions?limit=20" \ -H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClientwith DanubeClient(api_key="YOUR_API_KEY") as client: for tx in client.wallet.get_transactions(limit=20): print(f"{tx.created_at} {tx.type} {tx.amount_cents / 100:+.2f}")
import { DanubeClient } from 'danube';const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });const transactions = await client.wallet.getTransactions({ limit: 20 });for (const tx of transactions) { console.log(`${tx.createdAt} ${tx.type} ${(tx.amountCents / 100).toFixed(2)}`);}
Returns the credit wallet’s transaction history: deposits, tool execution charges, refunds, payouts and adjustments. Results are ordered newest first and paginated with limit and offset. This is the same wallet that Get Wallet Balance reports on, and amounts are in cents.Auth: Requires authentication (JWT or API key).
Query Parameters
integer
default:"50"
Maximum number of transactions to return. Values above 100 are capped to 100.
integer
default:"0"
Number of transactions to skip
string
Return only one transaction type: deposit, tool_execution, refund, payout or adjustment. Any other value returns a 400.
Response
array
The page of transactions, newest first.
Show Transaction
string
Transaction id
string
Owner of the wallet
string
deposit, tool_execution, refund, payout or adjustment
integer
Signed amount in cents: positive for deposits, negative for usage
integer
Wallet balance in cents after this transaction
string | null
Id of the related record, if any
string | null
Kind of record reference_id points at, such as stripe_payment, tool_execution or refund
object
Extra details recorded with the transaction
string | null
When the transaction was recorded (ISO 8601)
integer
Number of matching transactions across all pages
integer
The limit applied to this page, after the cap
integer
The offset applied to this page
Example
The Python SDK returns the transactions list and takes limit and offset; it does not expose the type filter.
curl -X GET "https://api.danubeai.com/v1/wallet/transactions?limit=20" \ -H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClientwith DanubeClient(api_key="YOUR_API_KEY") as client: for tx in client.wallet.get_transactions(limit=20): print(f"{tx.created_at} {tx.type} {tx.amount_cents / 100:+.2f}")
import { DanubeClient } from 'danube';const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });const transactions = await client.wallet.getTransactions({ limit: 20 });for (const tx of transactions) { console.log(`${tx.createdAt} ${tx.type} ${(tx.amountCents / 100).toFixed(2)}`);}