[POST] New headless invoice

Generate new payment method

Base url :

/invoice/new/headless

Method :

POST

Auth :

Require

Params :

NONE

Body :

KeyTypeData

amountToken

uint

amount , in token

amountUsd

uint

amount , in usd

comment

string

Some words in invoice

callback

string

Callback path

type

int

ChainId of invoice

token

int

TokenId of invoice

address

string

Reciver address

label

string

Invoice tittle

timeout

uint

Timeout limit to this invoice

redirect

string

The redirect url after user payment .

Response :

```json
{
    "code": 200, //Status code . 200 success 500 error
    "data": {
        "invoiceId": "9936ace52b30d567d55253c4a57fad8f",
        "botLink": "https://t.me/tonspay_bot?start=19936ace52b30d567d55253c4a57fad8f",
        "webLink": "https://wallet.tonspay.top/page-invoices?id=9936ace52b30d567d55253c4a57fad8f",
        "webappLink": "https://t.me/tonspay_bot/invoice?startapp=9936ace52b30d567d55253c4a57fad8f"
    }
}
```

Last updated