GET
/
v1
/
billing
/
{organizationId}
/
auto-recharge
/
requires-action
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.getAutoRechargeRequiresAction({
  organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId",
})
{
  "attemptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amountDecimillicents": 123,
  "stripePaymentIntentId": "<string>",
  "clientSecret": "<string>"
}

Path Parameters

organizationId
string
required

Response

object | null

Success

attemptId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
amountDecimillicents
number
required
stripePaymentIntentId
string
required
clientSecret
string
required