Create Payment

Create the Payment Request, this Payment Request return info about the payment and will notify automatically to the Webhook Project

POST https://api.kodexpay.com/api/v1/payment

Path Parameters

{
    "transactionId": "be5ff652-e449-4f5f-ae17-8ee5c9386294",
    "token": "BTC",
    "paymentToken": "ETH",
    "quantity": 1000,
    "quantityPay": 1.20000005,
    "priceUsd": 1.2,
    "purchaseEmail": "CarlosAroca@gmail.com",
    "purchaseName": "Carlos Aroca",
    "invoiceNumber": "12",
    "itemNumber": "12",
    "statusId": "1",
    "statusText": "Created",
    "wallet": "hola",
    "createdAt": "2022/10/24"
}

Description parameters:

token *

Select the currency in which you send the amount in the quantity parameter

Accepted currencies

  • trx for Tron (Trx)

  • usdtt for USDT (TRC20)

  • usdte for USDT (ERC20)

  • bnb for Binance Coin (BNB)

  • kxp for KodexPay (KXP)

  • btc for Bitcoin (BTC)

quantity *

Send the amount you want to charge in your local currency, that is, in the token parameter.

Ej: 10 USDTT = 10 USDT (TRON20)

paymentToken *

Select the currency in which you want to charge. For example btc.

If you send as a token 10 usdtt and you want to charge in btc, we will make the currency conversion

Accepted currencies

  • trx for Tron (Trx)

  • usdtt for USDT (TRC20)

  • usdte for USDT (ERC20)

  • bnb for Binance Coin (BNB)

  • kxp for KodexPay (KXP)

  • btc for Bitcoin (BTC)

invoiceNumber *

Send an identifier of the invoice in your system, this will help us identify the payment once we run the webhook.

purchaseEmail

Easily identify the buyer with their email

purchaseName

Easily identify the buyer with their name

itemNumber

Send the amount of products you buy

If you send the amount in 0, the value of the invoice will be taken according to the amount sent by the user

Last updated