Set the wallet type
User
PATCH/api/v2/user/wallet-address/{id}
Send two credentials: your own, and the customer's.
How authentication works- Either
Authorization: BearerorUser-Authorization: Bearer
Language
Environment
Credentials
Your credential, or the customer's
Choose an environment first.
curl -X PATCH https://api.btcdirect.eu/api/v2/user/wallet-address/{id} \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "type": "unhosted" }'Response
{ "currency": "BTC", "address": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "destinationTag": { "default": "ABC1234", "XRP": 12341 }, "name": "My BTC wallet 1", "status": "open", "walletType": "unhosted", "verificationStatus": "required", "id": 189632}Parameters
idstring (path)required
Request
typestring
The wallet type to set.
Can be one ofvaspunhosted
Exampleunhosted
Responses
204Returns the user's wallet address book.400A list of possible errors for this endpoint.Body of the success response
currencystring
The currency.
ExampleBTC
addressstring
The address.
Example3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5
destinationTagstring|integer
The destination tag which should be used to send the coins. This depends on the coin type and can be a string or an integer. For XRP it is an integer, for other coins it is a string.
Default[object Object]
namestring
A descriptive name.
Defaultnull
ExampleMy BTC wallet 1
statusstring
Can be one ofopenpendingdisabledverifiedrejected
walletTypeone of
The type of wallet to which the funds will be sent.
Defaultnull
Exampleunhosted
verificationStatusone of
The verification status of the wallet address.
Defaultnull
Examplerequired
idinteger
The id.
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.