/invoices/create
POST
/invoices/create
Use this method to create a new invoice. On success, returns an object of the created Invoice.
Body
Name | Type | Description |
---|---|---|
| fiat | crypto | Type of the price. |
| Optional. Required if currency_type is “crypto”. Contract. | |
| Optional. Required if currency_type is “fiat”. Fiat currency code. | |
| Contract[] | Optional. List of contracts. Contracts which can be used to pay the invoice. Available only if currency_type is “fiat”. Default to all. |
| string | Amount of the invoice in float. For example: |
| Optional. Label of the button which will be presented to a user after the invoice is paid. | |
| 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. |
| string | Optional. Any data you want to attach to the invoice (for example, user ID, payment ID, ect). Up to 256 symbols. |
| string | Optional. URL to which we will send a Webhook after payment of the invoice. |
| DateTime | Optional. Date on which the invoice will be automatically deleted if it is not paid. |
Last updated