Update bank account
curl --request PATCH \
--url https://api.byzantine.fi/v1/submit/update-bank-account \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/update-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
bankAccountId: '550e8400-e29b-41d4-a716-446655440000',
label: 'Business account'
})
};
fetch('https://api.byzantine.fi/v1/submit/update-bank-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"name": "<string>",
"liquidationAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"destinationCurrency": "usd",
"destinationRail": "ach"
}Bank accounts
Update bank account
Update a bank account. Only its label can be changed: it is the name returned wherever the bank account
appears. The bank details themselves cannot be changed.
PATCH
/
v1
/
submit
/
update-bank-account
Update bank account
curl --request PATCH \
--url https://api.byzantine.fi/v1/submit/update-bank-account \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/update-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
bankAccountId: '550e8400-e29b-41d4-a716-446655440000',
label: 'Business account'
})
};
fetch('https://api.byzantine.fi/v1/submit/update-bank-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"name": "<string>",
"liquidationAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"destinationCurrency": "usd",
"destinationRail": "ach"
}Headers
Body
application/json
Bank account to update and its new label
Response
Bank account updated

