Add bank account
curl --request POST \
--url https://sandbox.api.byzantine.fi/v1/submit/add-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",
"label": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://sandbox.api.byzantine.fi/v1/submit/add-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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',
label: '<string>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://sandbox.api.byzantine.fi/v1/submit/add-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
Add bank account
Add a bank account to withdraw to. At least one bank account must be added before any off-ramp withdrawal can be initated.
POST
/
v1
/
submit
/
add-bank-account
Add bank account
curl --request POST \
--url https://sandbox.api.byzantine.fi/v1/submit/add-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",
"label": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://sandbox.api.byzantine.fi/v1/submit/add-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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',
label: '<string>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://sandbox.api.byzantine.fi/v1/submit/add-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"
}Authorizations
Headers
Integrator's ECDSA public key (P-256 curve, compressed SEC1 format). Example: 0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd
Unix timestamp in seconds (UTC). Must be within tolerance window (1 minute) to prevent replay attacks. Example: 1760375826
ECDSA signature (DER-encoded, hex with 0x prefix). Signs the message: {timestamp}{METHOD}{path_and_query}{json_body}. Example: 0x3045022100...
Body
application/json
Bank account details to associate with the Byzantine account
Response
Bank account added successfully
A UUID string
Example:
"550e8400-e29b-41d4-a716-446655440000"
A UUID string
Example:
"550e8400-e29b-41d4-a716-446655440000"
Available options:
usd, eur, usdc, eurc Available options:
ach, sepa, ethereum, base 
