PUT
/
{walletId}
/
asset
/
{assetId}
/
operation
/
{operationId}
/
status
curl --request PUT \
  --url https://gateway.finhub.cloud/wallet/{walletId}/asset/{assetId}/operation/{operationId}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "isDisable": true
}'
{
  "id": {
    "tenantId": "<string>",
    "entityId": {
      "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
    },
    "auditData": {
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z",
      "archivedAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "updatedBy": "<string>",
      "deletedBy": "<string>"
    }
  },
  "operationType": "buy",
  "assetType": "currency",
  "name": "<string>",
  "isSameWallet": true,
  "ownerId": "<string>",
  "operationDestination": {
    "id": {
      "tenantId": "<string>",
      "entityId": {
        "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
      },
      "auditData": {
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "deletedAt": "2023-11-07T05:31:56Z",
        "archivedAt": "2023-11-07T05:31:56Z",
        "createdBy": "<string>",
        "updatedBy": "<string>",
        "deletedBy": "<string>"
      }
    },
    "direction": "source",
    "type": "asset",
    "ownerId": "<string>",
    "operationAddresses": [
      {
        "id": {
          "tenantId": "<string>",
          "entityId": {
            "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
          },
          "auditData": {
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z",
            "deletedAt": "2023-11-07T05:31:56Z",
            "archivedAt": "2023-11-07T05:31:56Z",
            "createdBy": "<string>",
            "updatedBy": "<string>",
            "deletedBy": "<string>"
          }
        },
        "type": "wallet_owner_platform",
        "data": {
          "id": {
            "tenantId": "<string>",
            "entityId": {
              "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
            },
            "auditData": {
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z",
              "deletedAt": "2023-11-07T05:31:56Z",
              "archivedAt": "2023-11-07T05:31:56Z",
              "createdBy": "<string>",
              "updatedBy": "<string>",
              "deletedBy": "<string>"
            }
          },
          "name": "<string>",
          "value": "<string>"
        },
        "ownerId": "<string>"
      }
    ],
    "currencyPairs": [
      {
        "id": "<string>",
        "baseCurrency": "<string>",
        "quoteCurrency": "<string>",
        "pair": "<string>",
        "baseCurrencyId": "<string>",
        "quoteCurrencyId": "<string>"
      }
    ]
  },
  "fees": [
    {
      "id": {
        "tenantId": "<string>",
        "entityId": {
          "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
        },
        "auditData": {
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "deletedAt": "2023-11-07T05:31:56Z",
          "archivedAt": "2023-11-07T05:31:56Z",
          "createdBy": "<string>",
          "updatedBy": "<string>",
          "deletedBy": "<string>"
        }
      },
      "type": "fixed",
      "feeValue": {
        "id": {
          "tenantId": "<string>",
          "entityId": {
            "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
          },
          "auditData": {
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z",
            "deletedAt": "2023-11-07T05:31:56Z",
            "archivedAt": "2023-11-07T05:31:56Z",
            "createdBy": "<string>",
            "updatedBy": "<string>",
            "deletedBy": "<string>"
          }
        },
        "name": "<string>",
        "value": "<string>",
        "ownerId": "<string>",
        "instanceRef": "<string>",
        "instanceBaseRef": "<string>"
      },
      "paidBy": "source",
      "feeSharing": {
        "id": {
          "tenantId": "<string>",
          "entityId": {
            "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
          },
          "auditData": {
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z",
            "deletedAt": "2023-11-07T05:31:56Z",
            "archivedAt": "2023-11-07T05:31:56Z",
            "createdBy": "<string>",
            "updatedBy": "<string>",
            "deletedBy": "<string>"
          }
        },
        "source": {
          "id": {
            "tenantId": "<string>",
            "entityId": {
              "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
            },
            "auditData": {
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z",
              "deletedAt": "2023-11-07T05:31:56Z",
              "archivedAt": "2023-11-07T05:31:56Z",
              "createdBy": "<string>",
              "updatedBy": "<string>",
              "deletedBy": "<string>"
            }
          },
          "name": "<string>",
          "value": "<string>",
          "ownerId": "<string>",
          "instanceRef": "<string>",
          "instanceBaseRef": "<string>"
        },
        "destination": {
          "id": {
            "tenantId": "<string>",
            "entityId": {
              "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
            },
            "auditData": {
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z",
              "deletedAt": "2023-11-07T05:31:56Z",
              "archivedAt": "2023-11-07T05:31:56Z",
              "createdBy": "<string>",
              "updatedBy": "<string>",
              "deletedBy": "<string>"
            }
          },
          "name": "<string>",
          "value": "<string>",
          "ownerId": "<string>",
          "instanceRef": "<string>",
          "instanceBaseRef": "<string>"
        },
        "ownerId": "<string>"
      },
      "isDynamic": true,
      "feeApiAddress": "<string>",
      "group": 123,
      "order": 123,
      "ownerId": "<string>",
      "appliedTo": "base",
      "feeLimit": {
        "id": {
          "tenantId": "<string>",
          "entityId": {
            "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
          },
          "auditData": {
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z",
            "deletedAt": "2023-11-07T05:31:56Z",
            "archivedAt": "2023-11-07T05:31:56Z",
            "createdBy": "<string>",
            "updatedBy": "<string>",
            "deletedBy": "<string>"
          }
        },
        "enforcementPoint": "UI",
        "priority": 123,
        "order": 123,
        "action": "deny",
        "ownerId": "<string>",
        "conditions": [
          {
            "id": {
              "tenantId": "<string>",
              "entityId": {
                "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
              },
              "auditData": {
                "createdAt": "2023-11-07T05:31:56Z",
                "updatedAt": "2023-11-07T05:31:56Z",
                "deletedAt": "2023-11-07T05:31:56Z",
                "archivedAt": "2023-11-07T05:31:56Z",
                "createdBy": "<string>",
                "updatedBy": "<string>",
                "deletedBy": "<string>"
              }
            },
            "priority": 123,
            "order": 123,
            "requirementType": "kyc",
            "operation": "lessThan",
            "objectRef": {
              "id": {
                "tenantId": "<string>",
                "entityId": {
                  "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
                },
                "auditData": {
                  "createdAt": "2023-11-07T05:31:56Z",
                  "updatedAt": "2023-11-07T05:31:56Z",
                  "deletedAt": "2023-11-07T05:31:56Z",
                  "archivedAt": "2023-11-07T05:31:56Z",
                  "createdBy": "<string>",
                  "updatedBy": "<string>",
                  "deletedBy": "<string>"
                }
              },
              "ownerId": "<string>",
              "name": "<string>",
              "type": 123,
              "value": "<string>",
              "dataId": "<string>"
            },
            "value": {
              "id": {
                "tenantId": "<string>",
                "entityId": {
                  "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
                },
                "auditData": {
                  "createdAt": "2023-11-07T05:31:56Z",
                  "updatedAt": "2023-11-07T05:31:56Z",
                  "deletedAt": "2023-11-07T05:31:56Z",
                  "archivedAt": "2023-11-07T05:31:56Z",
                  "createdBy": "<string>",
                  "updatedBy": "<string>",
                  "deletedBy": "<string>"
                }
              },
              "ownerId": "<string>",
              "name": "<string>",
              "type": 123,
              "value": "<string>",
              "dataId": "<string>"
            },
            "ownerId": "<string>"
          }
        ]
      },
      "defaultApiFee": {
        "id": {
          "tenantId": "<string>",
          "entityId": {
            "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
          },
          "auditData": {
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z",
            "deletedAt": "2023-11-07T05:31:56Z",
            "archivedAt": "2023-11-07T05:31:56Z",
            "createdBy": "<string>",
            "updatedBy": "<string>",
            "deletedBy": "<string>"
          }
        },
        "name": "<string>",
        "value": "<string>",
        "ownerId": "<string>",
        "instanceRef": "<string>",
        "instanceBaseRef": "<string>"
      }
    }
  ],
  "limits": [
    {
      "id": {
        "tenantId": "<string>",
        "entityId": {
          "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
        },
        "auditData": {
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "deletedAt": "2023-11-07T05:31:56Z",
          "archivedAt": "2023-11-07T05:31:56Z",
          "createdBy": "<string>",
          "updatedBy": "<string>",
          "deletedBy": "<string>"
        }
      },
      "enforcementPoint": "UI",
      "priority": 123,
      "order": 123,
      "action": "deny",
      "ownerId": "<string>",
      "conditions": [
        {
          "id": {
            "tenantId": "<string>",
            "entityId": {
              "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
            },
            "auditData": {
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z",
              "deletedAt": "2023-11-07T05:31:56Z",
              "archivedAt": "2023-11-07T05:31:56Z",
              "createdBy": "<string>",
              "updatedBy": "<string>",
              "deletedBy": "<string>"
            }
          },
          "priority": 123,
          "order": 123,
          "requirementType": "kyc",
          "operation": "lessThan",
          "objectRef": {
            "id": {
              "tenantId": "<string>",
              "entityId": {
                "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
              },
              "auditData": {
                "createdAt": "2023-11-07T05:31:56Z",
                "updatedAt": "2023-11-07T05:31:56Z",
                "deletedAt": "2023-11-07T05:31:56Z",
                "archivedAt": "2023-11-07T05:31:56Z",
                "createdBy": "<string>",
                "updatedBy": "<string>",
                "deletedBy": "<string>"
              }
            },
            "ownerId": "<string>",
            "name": "<string>",
            "type": 123,
            "value": "<string>",
            "dataId": "<string>"
          },
          "value": {
            "id": {
              "tenantId": "<string>",
              "entityId": {
                "id": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231"
              },
              "auditData": {
                "createdAt": "2023-11-07T05:31:56Z",
                "updatedAt": "2023-11-07T05:31:56Z",
                "deletedAt": "2023-11-07T05:31:56Z",
                "archivedAt": "2023-11-07T05:31:56Z",
                "createdBy": "<string>",
                "updatedBy": "<string>",
                "deletedBy": "<string>"
              }
            },
            "ownerId": "<string>",
            "name": "<string>",
            "type": 123,
            "value": "<string>",
            "dataId": "<string>"
          },
          "ownerId": "<string>"
        }
      ]
    }
  ]
}

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
number
required
operationId
number
required

Body

application/json
isDisable
boolean
required

Response

200 - application/json
id
object
required
operationType
enum<string>
required
Available options:
buy,
sell,
deposit,
withdraw,
transfer,
suspend,
reverse
assetType
enum<string>
required
Available options:
currency,
crypto-currency,
bank-card,
transport-card,
id-card,
qr-code,
linked_account,
linked_external_account
name
string
required
isSameWallet
boolean
required
ownerId
string
required
operationDestination
object
required
fees
object[]
required
limits
object[]
required