Buy credits (returns a payment link or crypto invoice)
buy_creditsStart buying credits to get a Stripe checkout link or crypto wallet address for instant payment. Prefer crypto for agent-autonomous top-ups.
Instructions
Start a purchase of a credit package and return a way to pay. This does NOT complete a payment by itself — it returns a payment link / address:
• method 'stripe' → returns a checkout_url. Paying by card requires a HUMAN to open that link and enter card details; an agent cannot finish a card payment on its own.
• method 'crypto' → returns a Plisio invoice with a checkout_url AND, when you pass a currency (BTC, ETH, LTC, USDT, USDC), a RAW wallet address + amount. An autonomous agent CAN pay this from a crypto wallet with no browser/human, then credits are added automatically once the payment confirms. Prefer crypto for fully autonomous top-ups. Get a package id from get_packages first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Payment method. 'stripe' = card link (needs a human), 'crypto' = wallet-payable invoice. Default 'stripe'. | |
| currency | No | For method 'crypto': the coin to pay in; returns a raw wallet address an agent can pay autonomously. | |
| package_id | Yes | The package id to buy (from get_packages). |