Plisio fee

To estimate the cryptocurrency fee and Plisio commission, call method get_commission. It takes one required parameter (psys_cid, the name of the cryptocurrency) and five additional parameters:

Endpoint:

 

https://plisio.net/api/v1/operations/commission/<psys_cid>

cURL request example:

curl --location --request GET https://plisio.net/api/v1/operations/commission/ETH
    ?addresses=0x0465f093fd23fa1dbdf0f6456d8cab1dea4155ff
    &amounts=0.3
    &feePlan=priority
    &type=invoice
    &api_key=SECRET_KEY

List of all supported request fields:

FieldDescription
currencyID column from one of the supported cryptocurrencies supported by Plisio
addresseswallet address or comma separated addresses when estimating fee for mass withdrawal
amountsamount or comma separated amount that will be send in case of mass withdrawal
typecash_in, cash_out, mass_cash_out, invoice
feePlannormal or priority (more info)
api_key“Secret key” value from your API » Api settings page

* - required

 

Success response example:

 

 {
    "status": "success",
    "data": {
        "commission": "0.003010710000000000",
        "fee": "0.001071000000000000",
        "plan": "priority",
        "useWallet": "false",
        "useWalletBalance": "null",
        "plans": {
              "normal": {
                  "gasLimit": "21000",
                  "gasPrice": "44000000000"
                  "value": "0.000924000000000000"
              },
              "priority": {
                  "gasLimit": "21000",
                  "gasPrice": "44000000000"
                  "value": "0.000924000000000000"
              }
        }
    }
  }

HTTP response status code: 200

Success response

FieldDescription
commission Plisio commission value
fee cryptocurrency fee value
useWallet pay fee from wallet
useWalletBalance use_wallet_balance
plans Plisio's cryptocurrency fee estimation plan

 

Error response example:

 

 {
    "status": "error",
    "data": {
      "name": "Unprocessable entity",
      "message": "{\"balance\":\"Insufficient funds on balance\"}",
      "code": 116
    }
  }

HTTP response status codes: 422, 500

 

Error response:

 

FieldDescription
statuserror
data.nameerror name
data.messageerror explanation
data.codeerror code