GET
/
v1
/
billing
/
{organizationId}
/
credits
/
history
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.billing.getCreditHistory({
  organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId",
  query: {},
})
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "amountDecimillicents": 123,
      "reason": "<string>",
      "referenceId": "<string>",
      "balanceAfter": 123,
      "createdAt": "<string>"
    }
  ],
  "cursor": "<string>",
  "hasMore": true
}

Path Parameters

organizationId
string
required

Query Parameters

limit
string
cursor
string

Response

Success

items
object[]
required
cursor
string | null
required
hasMore
boolean
required