createInvoice
Create a one-off payment invoice; the payer opens result.mini_app_invoice_url. See the invoices doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fiat | No | Fiat code (fiat mode). | |
| asset | No | Asset code (crypto mode). | |
| amount | No | Decimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Omit for an open-amount invoice. | |
| payload | No | Opaque data echoed back in the webhook (≤4096). | |
| swap_to | No | Auto-convert the received amount to this asset. | |
| expires_in | No | Invoice TTL in seconds. | |
| description | No | Shown to the payer (≤1024). | |
| paid_btn_url | No | URL for the paid button. | |
| currency_type | No | crypto (default) | fiat. | |
| paid_btn_name | No | viewItem | openChannel | openBot | callback. | |
| allow_comments | No | Default true. | |
| hidden_message | No | Revealed to the payer ONLY after payment (≤2048). | |
| accepted_assets | No | Fiat mode: comma-separated assets the payer may pay in. | |
| allow_anonymous | No | Default true. | |
| rate_lock_seconds | No | Fiat mode: freeze crypto quotes for this long. |