POST
/
v1
/
billing
/
{organizationId}
/
top-up
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.createTopUpSession({
  organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId",
  body: {},
})
{
  "id": "<string>",
  "url": "<string>"
}

Path Parameters

organizationId
string
required

Body

application/json
amountDecimillicents
integer
required

a number less than or equal to 5000000000

Required range: 100000 <= x <= 5000000000
successUrl
string
required

a string matching the pattern ^https?://

Pattern: ^https?:\/\/
cancelUrl
string
required

a string matching the pattern ^https?://

Pattern: ^https?:\/\/

Response

Success

id
string
required
url
string
required