Skip to main content
PUT
/
{walletId}
/
asset
/
{assetId}
/
operation
/
{operationId}
/
fee
/
{feeId}
Update Fee
curl --request PUT \
  --url https://gateway.varchev.com/wallet/{walletId}/asset/{assetId}/operation/{operationId}/fee/{feeId} \
  --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
header
required

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
feeId
string
required

Body

application/json

Sample Payload

id
object
Example:
{
"auditData": {
"createdAt": "2000-01-23T04:56:07.000Z",
"archivedAt": "2000-01-23T04:56:07.000Z",
"deletedAt": "2000-01-23T04:56:07.000Z",
"updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"updatedAt": "2000-01-23T04:56:07.000Z"
},
"tenantId": "tenantId",
"entityId": "",
"ownerId": "ownerId"
}
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
Example:
{
"action": "deny",
"priority": 0.8008281904610115,
"conditions": [
{
"priority": 1.4658129805029452,
"operation": "lessThan",
"requirementType": "kyc",
"order": 5.962133916683182
},
{
"priority": 1.4658129805029452,
"operation": "lessThan",
"requirementType": "kyc",
"order": 5.962133916683182
}
],
"enforcementPoint": ["UI", "UI"],
"order": 6.027456183070403
}
feeValue
object
Example:
{
"balanceType": "current",
"name": "name",
"instanceRef": { "refferTo": "" },
"value": "value"
}
paidBy
enum<string>
Available options:
source,
destination,
shared,
tenant,
owner
feeSharing
object
Example:
{ "destination": [null, null] }
feeApi
string
defaultApiFee
object
Example:
{
"balanceType": "current",
"name": "name",
"instanceRef": { "refferTo": "" },
"value": "value"
}

Response

successful operation

walletId
string
assetId
string
tenantId
string
oprationFee
object
Example:
{
"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
}