billing.top_up
Initiate a credit top-up for your account when deployment fails due to insufficient balance. Choose xrp for agent-led payment or stripe for human checkout.
Instructions
Create a credit top-up intent for the account (does not immediately increase balance). Call when deploy.run fails with HTTP 402 or billing.balance shows availableUsd below the required hold; choose rail=xrp (agent pays on-ledger with REQUIRED destination tag + exact amount) or rail=stripe (human Checkout URL). Do not call to inspect balance — use billing.balance. After funds confirm, retry the failed deploy.run. Side effects: opens a payment/deposit flow (open world); not idempotent — each call creates a new top-up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | Payment rail: xrp (agent-native) or stripe (human) | xrp |
| amountUsd | Yes | Amount to add, in USD (e.g. 20) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| topupId | Yes | ||
| amountUsd | No | ||
| amountXrp | No | ||
| expiresAt | No | ||
| creditedOn | No | ||
| checkoutUrl | No | ||
| rateUsdPerXrp | No | ||
| depositAddress | No | ||
| destinationTag | No |