Pay an invoice
pay_invoicePay an owned, unpaid invoice. SPENDS MONEY — confirm with the human first. If the prepaid balance covers the whole invoice, it is paid from the balance right away (paid_from_balance: true, status: paid, new balance; ordered servers are then created automatically — poll list_vps). Otherwise nothing is charged and a PayRam crypto checkout_url is returned (paid_from_balance: false); the invoice settles automatically once the on-chain payment confirms. Balance top-up invoices are always paid by crypto. Safe to retry: an invoice is never charged twice (a repeat returns 409 Invoice is already paid). Requires: token. Pass invoice_id exactly as returned (a code like "2RUAWV4"). Pays from the balance if it covers the invoice; otherwise a human pays checkout_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | No | Optional. Invoice id exactly as returned by order_vps / topup_balance, e.g. "2RUAWV4" (a plain number is also accepted). |