Update Bank For Existing Wallet Address
curl --request PUT \
--url https://api.breet.io/v1/trades/wallets/{id}/bank \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"id": "25",
"narration": "Breet payout account",
"accountNumber": "802920XXXX",
"autoSettlement": true
}
'import requests
url = "https://api.breet.io/v1/trades/wallets/{id}/bank"
payload = {
"id": "25",
"narration": "Breet payout account",
"accountNumber": "802920XXXX",
"autoSettlement": True
}
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: '25',
narration: 'Breet payout account',
accountNumber: '802920XXXX',
autoSettlement: true
})
};
fetch('https://api.breet.io/v1/trades/wallets/{id}/bank', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.breet.io/v1/trades/wallets/{id}/bank",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '25',
'narration' => 'Breet payout account',
'accountNumber' => '802920XXXX',
'autoSettlement' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.breet.io/v1/trades/wallets/{id}/bank"
payload := strings.NewReader("{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.breet.io/v1/trades/wallets/{id}/bank")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/trades/wallets/{id}/bank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "bank added to wallet successfully",
"success": true,
"data": {},
"meta": {},
"summary": {},
"stats": {}
}Wallets and Deposits
Update Bank For Existing Wallet Address
Update the bank account linked to an existing wallet address. Optionally set autoSettlement so incoming crypto to this address is paid out to that bank.
PUT
/
trades
/
wallets
/
{id}
/
bank
Update Bank For Existing Wallet Address
curl --request PUT \
--url https://api.breet.io/v1/trades/wallets/{id}/bank \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"id": "25",
"narration": "Breet payout account",
"accountNumber": "802920XXXX",
"autoSettlement": true
}
'import requests
url = "https://api.breet.io/v1/trades/wallets/{id}/bank"
payload = {
"id": "25",
"narration": "Breet payout account",
"accountNumber": "802920XXXX",
"autoSettlement": True
}
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: '25',
narration: 'Breet payout account',
accountNumber: '802920XXXX',
autoSettlement: true
})
};
fetch('https://api.breet.io/v1/trades/wallets/{id}/bank', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.breet.io/v1/trades/wallets/{id}/bank",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '25',
'narration' => 'Breet payout account',
'accountNumber' => '802920XXXX',
'autoSettlement' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.breet.io/v1/trades/wallets/{id}/bank"
payload := strings.NewReader("{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.breet.io/v1/trades/wallets/{id}/bank")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/trades/wallets/{id}/bank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"25\",\n \"narration\": \"Breet payout account\",\n \"accountNumber\": \"802920XXXX\",\n \"autoSettlement\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "bank added to wallet successfully",
"success": true,
"data": {},
"meta": {},
"summary": {},
"stats": {}
}Authorizations
Body
application/json
Response
Bank details updated successfully
Was this page helpful?