v1

latestOpenAPI 3.1.02026-07-14124211.1 MB
Invoices

Create Invoice

Create invoice.

Required scopes:

  • invoice
post/invoice

Request body

currency'rub' | 'uah' | 'kzt' | 'byn' | 'usd' | 'eur' | 'gbp' | 'cny' | 'try' | 'jpy' | 'brl' required
amountnumber required

Invoice amount.

payment_idstring required

Payment ID in your system (must be unique within the merchant / invoices).

commentstring required

Comment to the invoice.

url_successstring required

URL to redirect to after successful payment.

url_callbackstring

Callback url.

merchant_idinteger required

Merchant ID.

required_telegram_idinteger

Telegram User ID for which the invoice was created.

required_telegram_usernamestring

Telegram Username (including @) for which the invoice was created (if any).

lifetimenumber

Invoice lifetime.

additional_datastring

Additional information for you.

is_testboolean

Create a test invoice.

Example request

{
  "url_success": "https://lolz.live/"
}

Response

Successful Response.