Buy credits (creates a crypto invoice)
create_credit_purchaseCreate a crypto credit purchase (cpu_...). Returns payment.payment_options with the address/amount to pay (CoinVello's operator wallet) and a hosted checkout_url. Credits are added when the payment confirms. Card purchases and automatic top-up are set up by the merchant in the dashboard, not through this tool. In test mode credits are free, so this is mainly for exercising the flow (pay it with simulate_test_payment).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Up to 50 string key/value pairs returned on the object and in webhooks. | |
| bundle_id | Yes | From list_credit_bundles, e.g. bnd_growth_15000. | |
| pay_asset | No | Asset symbol to pay with, lowercase, e.g. usdt. Requires pay_chain. Omit for every option. | |
| pay_chain | No | ||
| expires_in | No | ||
| idempotency_key | No |