POST
/
{walletId}
/
asset
/
{assetId}
/
operation
/
{operationId}
/
fee
curl --request POST \
  --url https://gateway.finhub.cloud/wallet/{walletId}/asset/{assetId}/operation/{operationId}/fee \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "paidBy": "source",
  "feeSharing": {
    "destination": [
      null,
      null
    ]
  },
  "appliedTo": "base",
  "feeApi": "feeApi",
  "feeValue": {
    "balanceType": "current",
    "name": "name",
    "instanceRef": {
      "refferTo": ""
    },
    "value": "value"
  },
  "type": "fixed",
  "group": 5.637376656633329,
  "order": 2.3021358869347655
}'
{
  "walletId": "walletId",
  "assetId": "assetId",
  "oprationFee": {
    "paidBy": "source",
    "feeSharing": {
      "destination": [
        null,
        null
      ]
    },
    "appliedTo": "base",
    "feeApi": "feeApi",
    "feeValue": {
      "balanceType": "current",
      "name": "name",
      "instanceRef": {
        "refferTo": ""
      },
      "value": "value"
    },
    "type": "fixed",
    "group": 5.637376656633329,
    "order": 2.3021358869347655
  },
  "tenantId": "tenantId"
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Path Parameters

walletId
string
required
assetId
string
required
operationId
string
required

Body

application/json
id
object
group
number
default: 0

group

order
number
default: 0

order of fee in the group

appliedTo
enum<string>
Available options:
base,
result
type
enum<string>
Available options:
fixed,
fraction
feeLimit
object
feeValue
object
paidBy
enum<string>
Available options:
source,
destination,
shared,
tenant,
owner
feeSharing
object
feeApi
string
defaultApiFee
object

Response

200 - application/json
walletId
string
assetId
string
tenantId
string
oprationFee
object