Patch Organization Bank Account
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"financial_institution_name": "Deutsche Bank",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"is_active": true,
"is_primary": true
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}"
payload = {
"financial_institution_name": "Deutsche Bank",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"is_active": True,
"is_primary": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
financial_institution_name: 'Deutsche Bank',
account_number: 'DE: DE89370400440532013000',
routing_number: 'DE: 370400440',
iban: 'DE: DE89370400440532013000',
swift_code: 'DE: COBADEFFXXX',
is_active: true,
is_primary: true
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}', 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://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'financial_institution_name' => 'Deutsche Bank',
'account_number' => 'DE: DE89370400440532013000',
'routing_number' => 'DE: 370400440',
'iban' => 'DE: DE89370400440532013000',
'swift_code' => 'DE: COBADEFFXXX',
'is_active' => true,
'is_primary' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}"
payload := strings.NewReader("{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"financial_institution_name": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Banking
Patch Organization Bank Account
Update a bank account for an organization
PATCH
/
organizations
/
{organization_id}
/
bank-accounts
/
{bank_account_id}
Patch Organization Bank Account
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"financial_institution_name": "Deutsche Bank",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"is_active": true,
"is_primary": true
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}"
payload = {
"financial_institution_name": "Deutsche Bank",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"is_active": True,
"is_primary": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
financial_institution_name: 'Deutsche Bank',
account_number: 'DE: DE89370400440532013000',
routing_number: 'DE: 370400440',
iban: 'DE: DE89370400440532013000',
swift_code: 'DE: COBADEFFXXX',
is_active: true,
is_primary: true
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}', 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://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'financial_institution_name' => 'Deutsche Bank',
'account_number' => 'DE: DE89370400440532013000',
'routing_number' => 'DE: 370400440',
'iban' => 'DE: DE89370400440532013000',
'swift_code' => 'DE: COBADEFFXXX',
'is_active' => true,
'is_primary' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}"
payload := strings.NewReader("{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/bank-accounts/{bank_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"financial_institution_name\": \"Deutsche Bank\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"is_active\": true,\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"financial_institution_name": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Body
application/json
Schema for updating bank accounts - all fields are optional
Example:
"Deutsche Bank"
Example:
"DE: DE89370400440532013000"
Required string length:
9Example:
"DE: 370400440"
Maximum string length:
34Example:
"DE: DE89370400440532013000"
Required string length:
8 - 11Pattern:
[A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}(:?[A-Z0-9]{3})?Example:
"DE: COBADEFFXXX"
Response
Successful Response
Schema for bank account responses
Examples:
"Deutsche Bank"
"Lloyds Bank"
Example:
"DE: DE89370400440532013000"
Required string length:
9Example:
"DE: 370400440"
Example:
"DE: DE89370400440532013000"
Example:
"DE: COBADEFFXXX"
⌘I