A method to create invoices using our API
Amount of the invoice that client have to pay
The currency of the invoice. If set to usd
then the invoice will be created without coin network assigned to it, in that case user will be able to choose the coin network manually in the checkout page. For any other input the coin network will be assigned automatically assigned to invoice
Title of the invoice
Description of the invoice.
Text that will be shown user only after successful payment.
DO NOT use this for storing any important for the order information, it will be not accessible shortly after the invoice has been paid.
Custom data allows you store any combination of valid json data in the invoice. It will be accessible in a webhook for the invoice, meaning you can not store any invoice information manually in your database and only read it from this field
Whether or not the invoice is simulated. Simulated invoices are intended for testing and development. Such invoices are not subject to fees, are not affecting statistics and can be marked as paid from the dashboard to trigger webhooks and test integration.
Note that you cannot use simulated invoices for real payments as they are not being monitored for transactions, you can only mark them as paid in console
Wallet address for live wallet. If provided, API will use that provided wallet instead of one provided in dashboard, useful for one time or highly dynamic wallets
If set, after payment, once the payment is successful, user will be presented with button to be redirected to specified URL
id of the invoice as string, specifically UUID
Amount of the invoice
Currency of the invoice
The invoice amount in USD
Time of creation of invoice, UNIX timestamp
Time of when invoice expires, UNIX timestamp
Current status of the invoice
Link to checkout page, defaults to checkout.squaredinc.co/invoice_id, if you have custom domain configured it will automatically switch to customdomain.com/invoice_id without any additional configuration
Wallet address of the invoice, where user will be asked to transfer funds
Create invoice API will return the invoice object: