/invoices/create

POST /invoices/create

Use this method to create a new invoice. On success, returns an object of the created Invoice.

Body

NameTypeDescription

currency_type

fiat | crypto

Type of the price.

contract

Optional. Required if currency_type is “crypto”. Contract.

fiat

Optional. Required if currency_type is “fiat”. Fiat currency code.

allowed_contracts

Optional. List of contracts. Contracts which can be used to pay the invoice. Available only if currency_type is “fiat”. Default to all.

amount

string

Amount of the invoice in float. For example: 125.50

paid_btn_name

Optional. Label of the button which will be presented to a user after the invoice is paid.

paid_btn_url

string

Optional. Required if paid_btn_name is specified. URL opened using the button which will be presented to a user after the invoice is paid. You can set any callback link (for example, a success link or link to homepage). Starts with https or http.

payload

string

Optional. Any data you want to attach to the invoice (for example, user ID, payment ID, ect). Up to 256 symbols.

webhook_url

string

Optional. URL to which we will send a Webhook after payment of the invoice.

expires_at

DateTime

Optional. Date on which the invoice will be automatically deleted if it is not paid.

Last updated