Create an invoice
create_invoiceCreates Stablevoy invoices payable in USDT or USDC and returns a checkout payment link; include a reference to reuse the same invoice for identical amount and reference.
Instructions
Creates a Stablevoy invoice the buyer pays in USDT or USDC, and returns its payment link (checkoutUrl). Give a reference (for example "acme-october") whenever you can: the same amount and reference return the same invoice instead of a second one. Without a reference every call creates a new invoice. Check the result later with get_invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Store id or exact store name from list_stores. Needed only when several stores are connected. | |
| amountUsd | Yes | Amount in US dollars as a decimal string, for example "250" or "19.99". | |
| reference | No | Your reference for this invoice, sent back in webhooks, 1 to 200 characters. | |
| returnUrl | No | https address the buyer returns to after paying. |