Account
Transaction history
GET
/billing/transactionsReturns a list of balance transactions in reverse chronological order. Session token required.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Number of transactions to return. Default 50, maximum 200. |
Example
curl "https://api.pinstripes.io/billing/transactions?limit=20" \ -H "Authorization: Bearer <session-token>"
Response
{
"transactions": [
{
"id": 12,
"ts": 1234567890.0,
"type": "credit",
"amount_usd": 20.00,
"description": "Stripe deposit",
"stripe_id": "cs_live_a1b2c3d4e5f6"
},
{
"id": 11,
"ts": 1234560000.0,
"type": "charge",
"amount_usd": -0.34,
"description": "Inference usage",
"stripe_id": null
},
{
"id": 10,
"ts": 1234550000.0,
"type": "subscription",
"amount_usd": 0.00,
"description": "Plan activated",
"stripe_id": null
}
]
}Transaction types: credit — balance top-up via Stripe; charge — inference usage deducted from balance; subscription — plan activation or renewal. Charges have a negative amount_usd.