Create an invoice for payment
Last updated
Last updated
The method allows you to create an invoice for payment without a strict indication of the coin and network, you can specify a payment of 30 USD and a list of coins/networks available for payment, the user himself will choose what is more convenient for him to pay. The amount will be automatically converted to the selected coin for payment
/api-gateway/make-invoice
Public API-key
Signing the request body with a private API-key
Request content type
application/json
Identifier of the advance balance for writing off commissions
1503cf18-597f-447f-b172-112dfe377e1b
A unique identifier in the merchant's system to prevent duplication of invoices
merchantExternalId123
Order ID in the merchant system
Order #123456
Order Description
Payment by order #123456
The external user ID in your system. When specifying the identifier, the functionality of the "Personal addresses" section will be used - a static address will be reserved for this user, but the webhook will be sent to the URL specified in this request
10099
Payer's email address. If it is specified alongside with the 'externalUserId' parameter, a user with such an email will be created in the "Personal addresses" section
site@domain.com
Coins for payment. You can specify any available coin, including fiat. On the invoice page, the amount in the specified coin will be recalculated to the coins available for payment
USD
Amount payable in the specified coin. On the invoice page, the amount will be recalculated at the rate of coins available for payment
20
The flag allows you to include the commission of the blockchain network selected for payment in the amount payable. It will be useful to lay down your costs for the withdrawal of coins after payment.
Allows you to add the specified percentage to the payment amount'
1
When opening the invoice page, the user can spend so much time on it that the exchange rate changes. If after the transition to payment the amount changes more than the specified percentage, then the amount payable will be recalculated at the current rate
2
Acceptable underpayment percentage of an ORDER. For example, after selecting the invoice coin, an order for 100 USDT was created. If the parameter is set to 1.5%, the order will be completed successfully after payment of 98.5 USDT
1.5
URL for notifications when the status of an invoice or amount received changes
https://merchant.domain/webhooks/invoice
URL to specify as "Return to Store" on the checkout page
https://merchant.domain/
Invoice lifetime in minutes
Array with the tariff names, which allows you to include commission in final amount for the specified tariffs
List of coins and networks available for payment, if you specify an empty array, all coins/networks available in the system will be selected