Commission pre-calculation

This method calculates the estimated fee for a payout transaction based on the parameters provided. It allows clients to preview the fee amount before making a payout, providing additional functionality for collecting fees from your users and planning costs.

Pre-calculate payout commission payout via API

1

Send a request with the payout amount, payout currency and opType of "WITHDRAWAL" - extended-fee

2

In response you will receive a calculation of the commission in the amount of the payout and on top of the payout amount:

  • If in the calculation you want to get where the commission amount will be included in the payout amount, look in the parameters "feeReceiver";

  • If in the calculation you want to get where the commission amount will be calculated on top of the payment amount, look at the "feeSender" parameters, to create a payment sum up the "amount" and "fee" parameters.

Request examples:

Body parameters
Type
Field
Description

baseAmount

number

required

Payout amount for commission calculation

currency

string

required

The currency in which the payment will be made

opType

string

required

To make pre-calculate payout , you must select the type - "WITHDRAWAL"

{
    "timestamp": 1753966292,
    "payload": {
        "items": [
            {
        "baseAmount": 50,
        "currency": "USDT",
        "opType": "WITHDRAWAL"
            }
        ]
    }

}

Response 200 OK:

Body parameters
Type
Field
Description

feeReceiver/"amount"

number

required

The amount that the recipient's address will receive

feeReceiver/"fee"

number

required

Commission that the sender will pay

feeSender/"amount"

number

required

The amount that the recipient's address will receive

feeSender/"fee"

number

required

Commission that the sender will pay

{
    "items": [
        {
            "amount": 50,
            "currency": "USDT",
            "opType": "WITHDRAWAL",
            "feeReceiver": {
                "amount": 45.57,
                "fee": 4.43
            },
            "feeSender": {
                "amount": 50,
                "fee": 4.45
            }
        }
    ]
}

Last updated