Crypto Deposit
This module contains endpoints for managing cryptocurrency deposits, including updating travel rule information.
Update Travel Rule
Method: PATCH
Endpoint: /v1/crypto-deposit/update-travel-rule/:cryptoDepositId
Request
Parameters - required
Name | Type | Required | Description |
---|---|---|---|
cryptoDepositId | string | Yes | Unique ID of the crypto deposit (UUID) |
Request body - required
Name | Type | Required | Description |
---|---|---|---|
walletType | string | Yes | Type of wallet: CUSTODIAL , SELF_CUSTODY |
externalUserId | string | No | External user ID associated with the deposit |
details | object | Yes | Additional details based on the deposit type |
Details structure:
-
For
I_AM_SENDER
type:{
"iAmOwnerOfWallet": true
} -
For
PRIVATE_INDIVIDUAL
type:{
"firstName": "John",
"lastName": "Doe",
"city": "New York",
"street": "123 Crypto Ave",
"postCode": "10001",
"country": "US"
} -
For
BUSINESS
type:{
"companyName": "Crypto Corp",
"vatId": "US123456789",
"city": "San Francisco",
"street": "456 Blockchain Blvd",
"postCode": "94105",
"country": "US"
}
Response
Code: 200
Description: Travel rule information updated successfully
Example response
{
"message": "Travel rule updated successfully."
}
Code: 400
Description: Invalid request
Example response
{
"errorCode": "P410",
"errorName": "invalid-data"
}
Code: 404
Description: Crypto deposit not found
Example response
{
"errorCode": "P421",
"errorName": "deposit-not-found"
}