GET
/
api
/
v2.1
/
wallet-transfers
/
consents
/
customer
/
{customerId}
/
consent
/
{consentId}
Get consent for a customer by consent ID
curl --request GET \
  --url https://sandbox.finhub.cloud/api/v2.1/wallet-transfers/consents/customer/{customerId}/consent/{consentId} \
  --header 'Content-Type: application/json' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --data '{
  "operationDescription": {
    "operationType": "BUY",
    "operationScope": "INTERNAL",
    "name": "<string>",
    "description": "<string>",
    "enabled": true
  },
  "source": {
    "walletAddress": "<string>",
    "walletPurpose": "<string>",
    "operationScope": "INTERNAL",
    "serviceDefinitions": {},
    "network": {
      "networkId": "<string>",
      "code": "<string>",
      "name": "<string>",
      "description": "<string>"
    },
    "asset": {
      "assetId": "<string>",
      "type": "<string>",
      "currency": "<string>",
      "balance": 123,
      "scale": 123,
      "networkAddress": {
        "addressId": "<string>",
        "address": "<string>",
        "type": "<string>",
        "primary": true
      }
    }
  },
  "destination": {
    "walletAddress": "<string>",
    "walletPurpose": "<string>",
    "operationScope": "INTERNAL",
    "serviceDefinitions": {},
    "network": {
      "networkId": "<string>",
      "code": "<string>",
      "name": "<string>",
      "description": "<string>"
    },
    "asset": {
      "assetId": "<string>",
      "type": "<string>",
      "currency": "<string>",
      "balance": 123,
      "scale": 123,
      "networkAddress": {
        "addressId": "<string>",
        "address": "<string>",
        "type": "<string>",
        "primary": true
      }
    }
  },
  "details": "<string>"
}'
{
  "code": 123,
  "message": "<string>",
  "data": {
    "consentId": "<string>",
    "customerId": "<string>",
    "consentType": "<string>",
    "status": "<string>",
    "validFrom": "2022-03-10T16:15:50.000Z",
    "validTo": "2022-03-10T16:15:50.000Z",
    "transferType": "<string>",
    "sourceAssetId": "<string>",
    "destinationAssetId": "<string>",
    "approvalDate": "2022-03-10T16:15:50.000Z",
    "rejectionDate": "2022-03-10T16:15:50.000Z",
    "networkOperation": {
      "operationDescription": {
        "operationType": "BUY",
        "operationScope": "INTERNAL",
        "name": "<string>",
        "description": "<string>",
        "enabled": true
      },
      "source": {
        "walletAddress": "<string>",
        "walletPurpose": "<string>",
        "operationScope": "INTERNAL",
        "serviceDefinitions": {},
        "network": {
          "networkId": "<string>",
          "code": "<string>",
          "name": "<string>",
          "description": "<string>"
        },
        "asset": {
          "assetId": "<string>",
          "type": "<string>",
          "currency": "<string>",
          "balance": 123,
          "scale": 123,
          "networkAddress": {
            "addressId": "<string>",
            "address": "<string>",
            "type": "<string>",
            "primary": true
          }
        }
      },
      "destination": {
        "walletAddress": "<string>",
        "walletPurpose": "<string>",
        "operationScope": "INTERNAL",
        "serviceDefinitions": {},
        "network": {
          "networkId": "<string>",
          "code": "<string>",
          "name": "<string>",
          "description": "<string>"
        },
        "asset": {
          "assetId": "<string>",
          "type": "<string>",
          "currency": "<string>",
          "balance": 123,
          "scale": 123,
          "networkAddress": {
            "addressId": "<string>",
            "address": "<string>",
            "type": "<string>",
            "primary": true
          }
        }
      },
      "details": "<string>"
    }
  }
}

Headers

X-Forwarded-For
string
required

Forwarded client IP address

User-Agent
string

Client user agent information

X-Tenant-ID
string

Tenant identifier for multi-tenant operations

Path Parameters

Consent ID

customerId
string
required

Customer ID

Query Parameters

destinationAssetId
string

Filter by destination asset ID

sourceAssetId
string

Filter by source asset ID

transferType
string

Filter by transfer type

Body

application/json

Network operation details

Detailed information about a network operation including source and destination addresses

operationDescription
object

Operation description

source
object

Source asset address with network information Asset address with network information

destination
object

Destination asset address with network information Asset address with network information

details
string

Additional operation details

Response

Consent retrieved successfully

code
integer
message
string
data
object