PUT
/
{walletId}
/
asset
/
{assetId}
curl --request PUT \
  --url https://gateway.finhub.cloud/wallet/{walletId}/asset/{assetId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "status": "<string>",
  "purpose": "<string>",
  "ownerId": "<string>",
  "availableBalance": {},
  "currentBalance": {}
}'
{
  "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>"
    }
  },
  "purpose": "<string>",
  "type": "currency",
  "status": "new",
  "ownerId": "<string>",
  "instance": {
    "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>",
    "type": "fiat",
    "decimal": 123,
    "max_value": 123,
    "aliases": [
      {
        "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>",
        "shortname": "<string>",
        "scale": 123,
        "sign": "<string>",
        "picture": "<string>",
        "default": true,
        "ownerId": "<string>"
      }
    ],
    "blockchain": {
      "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>",
      "type": "test",
      "users": "persons",
      "walletTypes": "dex",
      "definition": {
        "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>",
        "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>"
          }
        ]
      }
    }
  },
  "instanceBase": {
    "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>",
    "shortname": "<string>",
    "scale": 123,
    "sign": "<string>",
    "picture": "<string>",
    "default": true,
    "ownerId": "<string>"
  },
  "walletId": "<string>",
  "allowedOperations": [
    {
      "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>"
            }
          ]
        }
      ]
    }
  ],
  "availableBalance": {
    "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>"
  },
  "currentBalance": {
    "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>"
  }
}

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

Body

application/json
status
string
required
purpose
string
required
ownerId
string
required
availableBalance
object
required
currentBalance
object
required

Response

200 - application/json
id
object
required
purpose
string
required
type
enum<string>
required
Available options:
currency,
crypto-currency,
bank-card,
transport-card,
id-card,
qr-code,
linked_account,
linked_external_account
status
enum<string>
required
Available options:
new,
available,
pending,
sold,
verification,
verification_denied,
on_hold,
suspicious,
under_investigation,
dispute_started,
dispute_resolved,
sanctioned,
black_listed,
transferred,
close_requested,
closed
ownerId
string
required
instance
object
required
instanceBase
object
required
walletId
string
required
allowedOperations
object[]
required
availableBalance
object
required
currentBalance
object
required