GET Get a transaction
{{baseUrl}}/transactions/:id
HEADERS

X-API-Key
{{apiKey}}
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transactions/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/transactions/:id" {:headers {:x-api-key "{{apiKey}}"}})
require "http/client"

url = "{{baseUrl}}/transactions/:id"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/transactions/:id"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transactions/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/transactions/:id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/transactions/:id HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/transactions/:id")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transactions/:id"))
    .header("x-api-key", "{{apiKey}}")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/transactions/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/transactions/:id")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/transactions/:id');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transactions/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/transactions/:id',
  method: 'GET',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/transactions/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transactions/:id',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/transactions/:id');

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transactions/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/transactions/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/transactions/:id" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transactions/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/transactions/:id', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/transactions/:id');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/transactions/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/transactions/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transactions/:id' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("GET", "/baseUrl/transactions/:id", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transactions/:id"

headers = {"x-api-key": "{{apiKey}}"}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transactions/:id"

response <- VERB("GET", url, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transactions/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/transactions/:id') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transactions/:id";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/transactions/:id \
  --header 'x-api-key: {{apiKey}}'
http GET {{baseUrl}}/transactions/:id \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method GET \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - {{baseUrl}}/transactions/:id
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transactions/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolderId": "AHA1B2C3D4E5F6G7H8I9J0",
  "amount": {
    "currency": "EUR",
    "value": 9887
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "balancePlatform": "YOUR_BALANCE_PLATFORM",
  "bookingDate": "2022-03-14T12:01:00+01:00",
  "category": "bank",
  "counterparty": {
    "balanceAccountId": "BA00000000000000000000001"
  },
  "createdAt": "2022-03-14T12:01:00+01:00",
  "description": "YOUR_DESCRIPTION",
  "id": "IZK7C25U7DYVX03Y",
  "instructedAmount": {
    "currency": "EUR",
    "value": 9887
  },
  "reference": "2L6C6B5U7DYULLXC",
  "referenceForBeneficiary": "YOUR_REFERENCE_FOR_BENEFICIARY",
  "status": "booked",
  "transferId": "2QP32A5U7IWC5WKG",
  "type": "bankTransfer",
  "valueDate": "2022-03-14T12:01:00+01:00"
}
GET Get all transactions
{{baseUrl}}/transactions
HEADERS

X-API-Key
{{apiKey}}
QUERY PARAMS

createdSince
createdUntil
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transactions?createdSince=&createdUntil=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/transactions" {:headers {:x-api-key "{{apiKey}}"}
                                                        :query-params {:createdSince ""
                                                                       :createdUntil ""}})
require "http/client"

url = "{{baseUrl}}/transactions?createdSince=&createdUntil="
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/transactions?createdSince=&createdUntil="),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transactions?createdSince=&createdUntil=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/transactions?createdSince=&createdUntil="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/transactions?createdSince=&createdUntil= HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/transactions?createdSince=&createdUntil=")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transactions?createdSince=&createdUntil="))
    .header("x-api-key", "{{apiKey}}")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/transactions?createdSince=&createdUntil=")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/transactions?createdSince=&createdUntil=")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/transactions?createdSince=&createdUntil=');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions',
  params: {createdSince: '', createdUntil: ''},
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transactions?createdSince=&createdUntil=';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/transactions?createdSince=&createdUntil=',
  method: 'GET',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/transactions?createdSince=&createdUntil=")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transactions?createdSince=&createdUntil=',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions',
  qs: {createdSince: '', createdUntil: ''},
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/transactions');

req.query({
  createdSince: '',
  createdUntil: ''
});

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/transactions',
  params: {createdSince: '', createdUntil: ''},
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transactions?createdSince=&createdUntil=';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/transactions?createdSince=&createdUntil="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/transactions?createdSince=&createdUntil=" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transactions?createdSince=&createdUntil=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/transactions?createdSince=&createdUntil=', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/transactions');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'createdSince' => '',
  'createdUntil' => ''
]);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/transactions');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'createdSince' => '',
  'createdUntil' => ''
]));

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/transactions?createdSince=&createdUntil=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transactions?createdSince=&createdUntil=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("GET", "/baseUrl/transactions?createdSince=&createdUntil=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transactions"

querystring = {"createdSince":"","createdUntil":""}

headers = {"x-api-key": "{{apiKey}}"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transactions"

queryString <- list(
  createdSince = "",
  createdUntil = ""
)

response <- VERB("GET", url, query = queryString, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transactions?createdSince=&createdUntil=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/transactions') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
  req.params['createdSince'] = ''
  req.params['createdUntil'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transactions";

    let querystring = [
        ("createdSince", ""),
        ("createdUntil", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/transactions?createdSince=&createdUntil=' \
  --header 'x-api-key: {{apiKey}}'
http GET '{{baseUrl}}/transactions?createdSince=&createdUntil=' \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method GET \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - '{{baseUrl}}/transactions?createdSince=&createdUntil='
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transactions?createdSince=&createdUntil=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "_links": {
    "next": {
      "href": "https://balanceplatform-api-test.adyen.com/btl/v2/transactions?balancePlatform=Bastronaut&createdUntil=2022-03-21T00%3A00%3A00Z&createdSince=2022-03-11T00%3A00%3A00Z&limit=3&cursor=S2B-TSAjOkIrYlIlbjdqe0RreHRyM32lKRSxubXBHRkhHL2E32XitQQz5SfzpucD5HbHwpM1p6NDR1eXVQLFF6MmY33J32sobDxQYT90MHIud1hwLnd6JitcX32xJ"
    }
  },
  "data": [
    {
      "accountHolderId": "AHA1B2C3D4E5F6G7H8I9J0",
      "amount": {
        "currency": "EUR",
        "value": -9
      },
      "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
      "balancePlatform": "YOUR_BALANCE_PLATFORM",
      "bookingDate": "2022-03-11T11:21:24+01:00",
      "category": "internal",
      "counterparty": {
        "balanceAccountId": "BA00000000000000000000001"
      },
      "createdAt": "2022-03-11T11:21:24+01:00",
      "id": "1VVF0D5U66PIUIVP",
      "instructedAmount": {
        "currency": "EUR",
        "value": -9
      },
      "reference": "REFERENCE_46e8c40e",
      "status": "booked",
      "transferId": "1VVF0D5U66PIUIVP",
      "type": "fee",
      "valueDate": "2022-03-11T11:21:24+01:00"
    },
    {
      "accountHolderId": "AHA1B2C3D4E5F6G7H8I9J0",
      "amount": {
        "currency": "EUR",
        "value": -46
      },
      "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
      "balancePlatform": "YOUR_BALANCE_PLATFORM",
      "bookingDate": "2022-03-12T14:22:52+01:00",
      "category": "internal",
      "counterparty": {
        "balanceAccountId": "BA00000000000000000000001"
      },
      "createdAt": "2022-03-12T14:22:52+01:00",
      "id": "1WEPGD5U6MS1CFK3",
      "instructedAmount": {
        "currency": "EUR",
        "value": -46
      },
      "reference": "YOUR_REFERENCE",
      "status": "booked",
      "transferId": "1WEPGD5U6MS1CFK3",
      "type": "fee",
      "valueDate": "2022-03-12T14:22:52+01:00"
    },
    {
      "accountHolderId": "AHA1B2C3D4E5F6G7H8I9J0",
      "amount": {
        "currency": "EUR",
        "value": -8
      },
      "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
      "balancePlatform": "YOUR_BALANCE_PLATFORM",
      "bookingDate": "2022-03-14T21:00:48+01:00",
      "counterparty": {
        "balanceAccountId": "BA00000000000000000000001"
      },
      "createdAt": "2022-03-14T15:00:00+01:00",
      "description": "YOUR_DESCRIPTION_2",
      "id": "2QP32A5U7IWC5WKG",
      "instructedAmount": {
        "currency": "EUR",
        "value": -8
      },
      "reference": "REFERENCE_46e8c40e",
      "status": "booked",
      "valueDate": "2022-03-14T21:00:48+01:00"
    }
  ]
}
POST Transfer funds
{{baseUrl}}/transfers
HEADERS

X-API-Key
{{apiKey}}
BODY json

{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transfers");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/transfers" {:headers {:x-api-key "{{apiKey}}"}
                                                      :content-type :json
                                                      :form-params {:amount {:currency ""
                                                                             :value 0}
                                                                    :balanceAccountId ""
                                                                    :category ""
                                                                    :counterparty {:balanceAccountId ""
                                                                                   :bankAccount {:accountHolder {:address {:city ""
                                                                                                                           :country ""
                                                                                                                           :line1 ""
                                                                                                                           :line2 ""
                                                                                                                           :postalCode ""
                                                                                                                           :stateOrProvince ""}
                                                                                                                 :dateOfBirth ""
                                                                                                                 :firstName ""
                                                                                                                 :fullName ""
                                                                                                                 :lastName ""
                                                                                                                 :reference ""
                                                                                                                 :type ""}
                                                                                                 :accountIdentification ""}
                                                                                   :transferInstrumentId ""}
                                                                    :description ""
                                                                    :id ""
                                                                    :paymentInstrumentId ""
                                                                    :priority ""
                                                                    :reference ""
                                                                    :referenceForBeneficiary ""
                                                                    :ultimateParty {:address {}
                                                                                    :dateOfBirth ""
                                                                                    :firstName ""
                                                                                    :fullName ""
                                                                                    :lastName ""
                                                                                    :reference ""
                                                                                    :type ""}}})
require "http/client"

url = "{{baseUrl}}/transfers"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/transfers"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api-key", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/transfers"

	payload := strings.NewReader("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "{{apiKey}}")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/transfers HTTP/1.1
X-Api-Key: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 906

{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/transfers")
  .setHeader("x-api-key", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transfers"))
    .header("x-api-key", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/transfers")
  .post(body)
  .addHeader("x-api-key", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/transfers")
  .header("x-api-key", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  amount: {
    currency: '',
    value: 0
  },
  balanceAccountId: '',
  category: '',
  counterparty: {
    balanceAccountId: '',
    bankAccount: {
      accountHolder: {
        address: {
          city: '',
          country: '',
          line1: '',
          line2: '',
          postalCode: '',
          stateOrProvince: ''
        },
        dateOfBirth: '',
        firstName: '',
        fullName: '',
        lastName: '',
        reference: '',
        type: ''
      },
      accountIdentification: ''
    },
    transferInstrumentId: ''
  },
  description: '',
  id: '',
  paymentInstrumentId: '',
  priority: '',
  reference: '',
  referenceForBeneficiary: '',
  ultimateParty: {
    address: {},
    dateOfBirth: '',
    firstName: '',
    fullName: '',
    lastName: '',
    reference: '',
    type: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/transfers');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transfers',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: 0},
    balanceAccountId: '',
    category: '',
    counterparty: {
      balanceAccountId: '',
      bankAccount: {
        accountHolder: {
          address: {
            city: '',
            country: '',
            line1: '',
            line2: '',
            postalCode: '',
            stateOrProvince: ''
          },
          dateOfBirth: '',
          firstName: '',
          fullName: '',
          lastName: '',
          reference: '',
          type: ''
        },
        accountIdentification: ''
      },
      transferInstrumentId: ''
    },
    description: '',
    id: '',
    paymentInstrumentId: '',
    priority: '',
    reference: '',
    referenceForBeneficiary: '',
    ultimateParty: {
      address: {},
      dateOfBirth: '',
      firstName: '',
      fullName: '',
      lastName: '',
      reference: '',
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transfers';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":0},"balanceAccountId":"","category":"","counterparty":{"balanceAccountId":"","bankAccount":{"accountHolder":{"address":{"city":"","country":"","line1":"","line2":"","postalCode":"","stateOrProvince":""},"dateOfBirth":"","firstName":"","fullName":"","lastName":"","reference":"","type":""},"accountIdentification":""},"transferInstrumentId":""},"description":"","id":"","paymentInstrumentId":"","priority":"","reference":"","referenceForBeneficiary":"","ultimateParty":{"address":{},"dateOfBirth":"","firstName":"","fullName":"","lastName":"","reference":"","type":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/transfers',
  method: 'POST',
  headers: {
    'x-api-key': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "balanceAccountId": "",\n  "category": "",\n  "counterparty": {\n    "balanceAccountId": "",\n    "bankAccount": {\n      "accountHolder": {\n        "address": {\n          "city": "",\n          "country": "",\n          "line1": "",\n          "line2": "",\n          "postalCode": "",\n          "stateOrProvince": ""\n        },\n        "dateOfBirth": "",\n        "firstName": "",\n        "fullName": "",\n        "lastName": "",\n        "reference": "",\n        "type": ""\n      },\n      "accountIdentification": ""\n    },\n    "transferInstrumentId": ""\n  },\n  "description": "",\n  "id": "",\n  "paymentInstrumentId": "",\n  "priority": "",\n  "reference": "",\n  "referenceForBeneficiary": "",\n  "ultimateParty": {\n    "address": {},\n    "dateOfBirth": "",\n    "firstName": "",\n    "fullName": "",\n    "lastName": "",\n    "reference": "",\n    "type": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/transfers")
  .post(body)
  .addHeader("x-api-key", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transfers',
  headers: {
    'x-api-key': '{{apiKey}}',
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  amount: {currency: '', value: 0},
  balanceAccountId: '',
  category: '',
  counterparty: {
    balanceAccountId: '',
    bankAccount: {
      accountHolder: {
        address: {
          city: '',
          country: '',
          line1: '',
          line2: '',
          postalCode: '',
          stateOrProvince: ''
        },
        dateOfBirth: '',
        firstName: '',
        fullName: '',
        lastName: '',
        reference: '',
        type: ''
      },
      accountIdentification: ''
    },
    transferInstrumentId: ''
  },
  description: '',
  id: '',
  paymentInstrumentId: '',
  priority: '',
  reference: '',
  referenceForBeneficiary: '',
  ultimateParty: {
    address: {},
    dateOfBirth: '',
    firstName: '',
    fullName: '',
    lastName: '',
    reference: '',
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transfers',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    amount: {currency: '', value: 0},
    balanceAccountId: '',
    category: '',
    counterparty: {
      balanceAccountId: '',
      bankAccount: {
        accountHolder: {
          address: {
            city: '',
            country: '',
            line1: '',
            line2: '',
            postalCode: '',
            stateOrProvince: ''
          },
          dateOfBirth: '',
          firstName: '',
          fullName: '',
          lastName: '',
          reference: '',
          type: ''
        },
        accountIdentification: ''
      },
      transferInstrumentId: ''
    },
    description: '',
    id: '',
    paymentInstrumentId: '',
    priority: '',
    reference: '',
    referenceForBeneficiary: '',
    ultimateParty: {
      address: {},
      dateOfBirth: '',
      firstName: '',
      fullName: '',
      lastName: '',
      reference: '',
      type: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/transfers');

req.headers({
  'x-api-key': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: {
    currency: '',
    value: 0
  },
  balanceAccountId: '',
  category: '',
  counterparty: {
    balanceAccountId: '',
    bankAccount: {
      accountHolder: {
        address: {
          city: '',
          country: '',
          line1: '',
          line2: '',
          postalCode: '',
          stateOrProvince: ''
        },
        dateOfBirth: '',
        firstName: '',
        fullName: '',
        lastName: '',
        reference: '',
        type: ''
      },
      accountIdentification: ''
    },
    transferInstrumentId: ''
  },
  description: '',
  id: '',
  paymentInstrumentId: '',
  priority: '',
  reference: '',
  referenceForBeneficiary: '',
  ultimateParty: {
    address: {},
    dateOfBirth: '',
    firstName: '',
    fullName: '',
    lastName: '',
    reference: '',
    type: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transfers',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: 0},
    balanceAccountId: '',
    category: '',
    counterparty: {
      balanceAccountId: '',
      bankAccount: {
        accountHolder: {
          address: {
            city: '',
            country: '',
            line1: '',
            line2: '',
            postalCode: '',
            stateOrProvince: ''
          },
          dateOfBirth: '',
          firstName: '',
          fullName: '',
          lastName: '',
          reference: '',
          type: ''
        },
        accountIdentification: ''
      },
      transferInstrumentId: ''
    },
    description: '',
    id: '',
    paymentInstrumentId: '',
    priority: '',
    reference: '',
    referenceForBeneficiary: '',
    ultimateParty: {
      address: {},
      dateOfBirth: '',
      firstName: '',
      fullName: '',
      lastName: '',
      reference: '',
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transfers';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":0},"balanceAccountId":"","category":"","counterparty":{"balanceAccountId":"","bankAccount":{"accountHolder":{"address":{"city":"","country":"","line1":"","line2":"","postalCode":"","stateOrProvince":""},"dateOfBirth":"","firstName":"","fullName":"","lastName":"","reference":"","type":""},"accountIdentification":""},"transferInstrumentId":""},"description":"","id":"","paymentInstrumentId":"","priority":"","reference":"","referenceForBeneficiary":"","ultimateParty":{"address":{},"dateOfBirth":"","firstName":"","fullName":"","lastName":"","reference":"","type":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amount": @{ @"currency": @"", @"value": @0 },
                              @"balanceAccountId": @"",
                              @"category": @"",
                              @"counterparty": @{ @"balanceAccountId": @"", @"bankAccount": @{ @"accountHolder": @{ @"address": @{ @"city": @"", @"country": @"", @"line1": @"", @"line2": @"", @"postalCode": @"", @"stateOrProvince": @"" }, @"dateOfBirth": @"", @"firstName": @"", @"fullName": @"", @"lastName": @"", @"reference": @"", @"type": @"" }, @"accountIdentification": @"" }, @"transferInstrumentId": @"" },
                              @"description": @"",
                              @"id": @"",
                              @"paymentInstrumentId": @"",
                              @"priority": @"",
                              @"reference": @"",
                              @"referenceForBeneficiary": @"",
                              @"ultimateParty": @{ @"address": @{  }, @"dateOfBirth": @"", @"firstName": @"", @"fullName": @"", @"lastName": @"", @"reference": @"", @"type": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/transfers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/transfers" in
let headers = Header.add_list (Header.init ()) [
  ("x-api-key", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => [
        'currency' => '',
        'value' => 0
    ],
    'balanceAccountId' => '',
    'category' => '',
    'counterparty' => [
        'balanceAccountId' => '',
        'bankAccount' => [
                'accountHolder' => [
                                'address' => [
                                                                'city' => '',
                                                                'country' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'postalCode' => '',
                                                                'stateOrProvince' => ''
                                ],
                                'dateOfBirth' => '',
                                'firstName' => '',
                                'fullName' => '',
                                'lastName' => '',
                                'reference' => '',
                                'type' => ''
                ],
                'accountIdentification' => ''
        ],
        'transferInstrumentId' => ''
    ],
    'description' => '',
    'id' => '',
    'paymentInstrumentId' => '',
    'priority' => '',
    'reference' => '',
    'referenceForBeneficiary' => '',
    'ultimateParty' => [
        'address' => [
                
        ],
        'dateOfBirth' => '',
        'firstName' => '',
        'fullName' => '',
        'lastName' => '',
        'reference' => '',
        'type' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/transfers', [
  'body' => '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/transfers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'balanceAccountId' => '',
  'category' => '',
  'counterparty' => [
    'balanceAccountId' => '',
    'bankAccount' => [
        'accountHolder' => [
                'address' => [
                                'city' => '',
                                'country' => '',
                                'line1' => '',
                                'line2' => '',
                                'postalCode' => '',
                                'stateOrProvince' => ''
                ],
                'dateOfBirth' => '',
                'firstName' => '',
                'fullName' => '',
                'lastName' => '',
                'reference' => '',
                'type' => ''
        ],
        'accountIdentification' => ''
    ],
    'transferInstrumentId' => ''
  ],
  'description' => '',
  'id' => '',
  'paymentInstrumentId' => '',
  'priority' => '',
  'reference' => '',
  'referenceForBeneficiary' => '',
  'ultimateParty' => [
    'address' => [
        
    ],
    'dateOfBirth' => '',
    'firstName' => '',
    'fullName' => '',
    'lastName' => '',
    'reference' => '',
    'type' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'balanceAccountId' => '',
  'category' => '',
  'counterparty' => [
    'balanceAccountId' => '',
    'bankAccount' => [
        'accountHolder' => [
                'address' => [
                                'city' => '',
                                'country' => '',
                                'line1' => '',
                                'line2' => '',
                                'postalCode' => '',
                                'stateOrProvince' => ''
                ],
                'dateOfBirth' => '',
                'firstName' => '',
                'fullName' => '',
                'lastName' => '',
                'reference' => '',
                'type' => ''
        ],
        'accountIdentification' => ''
    ],
    'transferInstrumentId' => ''
  ],
  'description' => '',
  'id' => '',
  'paymentInstrumentId' => '',
  'priority' => '',
  'reference' => '',
  'referenceForBeneficiary' => '',
  'ultimateParty' => [
    'address' => [
        
    ],
    'dateOfBirth' => '',
    'firstName' => '',
    'fullName' => '',
    'lastName' => '',
    'reference' => '',
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/transfers');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}'
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"

headers = {
    'x-api-key': "{{apiKey}}",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/transfers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transfers"

payload = {
    "amount": {
        "currency": "",
        "value": 0
    },
    "balanceAccountId": "",
    "category": "",
    "counterparty": {
        "balanceAccountId": "",
        "bankAccount": {
            "accountHolder": {
                "address": {
                    "city": "",
                    "country": "",
                    "line1": "",
                    "line2": "",
                    "postalCode": "",
                    "stateOrProvince": ""
                },
                "dateOfBirth": "",
                "firstName": "",
                "fullName": "",
                "lastName": "",
                "reference": "",
                "type": ""
            },
            "accountIdentification": ""
        },
        "transferInstrumentId": ""
    },
    "description": "",
    "id": "",
    "paymentInstrumentId": "",
    "priority": "",
    "reference": "",
    "referenceForBeneficiary": "",
    "ultimateParty": {
        "address": {},
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
    }
}
headers = {
    "x-api-key": "{{apiKey}}",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transfers"

payload <- "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transfers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/transfers') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
  req.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"balanceAccountId\": \"\",\n  \"category\": \"\",\n  \"counterparty\": {\n    \"balanceAccountId\": \"\",\n    \"bankAccount\": {\n      \"accountHolder\": {\n        \"address\": {\n          \"city\": \"\",\n          \"country\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"postalCode\": \"\",\n          \"stateOrProvince\": \"\"\n        },\n        \"dateOfBirth\": \"\",\n        \"firstName\": \"\",\n        \"fullName\": \"\",\n        \"lastName\": \"\",\n        \"reference\": \"\",\n        \"type\": \"\"\n      },\n      \"accountIdentification\": \"\"\n    },\n    \"transferInstrumentId\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"paymentInstrumentId\": \"\",\n  \"priority\": \"\",\n  \"reference\": \"\",\n  \"referenceForBeneficiary\": \"\",\n  \"ultimateParty\": {\n    \"address\": {},\n    \"dateOfBirth\": \"\",\n    \"firstName\": \"\",\n    \"fullName\": \"\",\n    \"lastName\": \"\",\n    \"reference\": \"\",\n    \"type\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transfers";

    let payload = json!({
        "amount": json!({
            "currency": "",
            "value": 0
        }),
        "balanceAccountId": "",
        "category": "",
        "counterparty": json!({
            "balanceAccountId": "",
            "bankAccount": json!({
                "accountHolder": json!({
                    "address": json!({
                        "city": "",
                        "country": "",
                        "line1": "",
                        "line2": "",
                        "postalCode": "",
                        "stateOrProvince": ""
                    }),
                    "dateOfBirth": "",
                    "firstName": "",
                    "fullName": "",
                    "lastName": "",
                    "reference": "",
                    "type": ""
                }),
                "accountIdentification": ""
            }),
            "transferInstrumentId": ""
        }),
        "description": "",
        "id": "",
        "paymentInstrumentId": "",
        "priority": "",
        "reference": "",
        "referenceForBeneficiary": "",
        "ultimateParty": json!({
            "address": json!({}),
            "dateOfBirth": "",
            "firstName": "",
            "fullName": "",
            "lastName": "",
            "reference": "",
            "type": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/transfers \
  --header 'content-type: application/json' \
  --header 'x-api-key: {{apiKey}}' \
  --data '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}'
echo '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "balanceAccountId": "",
  "category": "",
  "counterparty": {
    "balanceAccountId": "",
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        },
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      },
      "accountIdentification": ""
    },
    "transferInstrumentId": ""
  },
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": {
    "address": {},
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  }
}' |  \
  http POST {{baseUrl}}/transfers \
  content-type:application/json \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-api-key: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "balanceAccountId": "",\n  "category": "",\n  "counterparty": {\n    "balanceAccountId": "",\n    "bankAccount": {\n      "accountHolder": {\n        "address": {\n          "city": "",\n          "country": "",\n          "line1": "",\n          "line2": "",\n          "postalCode": "",\n          "stateOrProvince": ""\n        },\n        "dateOfBirth": "",\n        "firstName": "",\n        "fullName": "",\n        "lastName": "",\n        "reference": "",\n        "type": ""\n      },\n      "accountIdentification": ""\n    },\n    "transferInstrumentId": ""\n  },\n  "description": "",\n  "id": "",\n  "paymentInstrumentId": "",\n  "priority": "",\n  "reference": "",\n  "referenceForBeneficiary": "",\n  "ultimateParty": {\n    "address": {},\n    "dateOfBirth": "",\n    "firstName": "",\n    "fullName": "",\n    "lastName": "",\n    "reference": "",\n    "type": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/transfers
import Foundation

let headers = [
  "x-api-key": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "amount": [
    "currency": "",
    "value": 0
  ],
  "balanceAccountId": "",
  "category": "",
  "counterparty": [
    "balanceAccountId": "",
    "bankAccount": [
      "accountHolder": [
        "address": [
          "city": "",
          "country": "",
          "line1": "",
          "line2": "",
          "postalCode": "",
          "stateOrProvince": ""
        ],
        "dateOfBirth": "",
        "firstName": "",
        "fullName": "",
        "lastName": "",
        "reference": "",
        "type": ""
      ],
      "accountIdentification": ""
    ],
    "transferInstrumentId": ""
  ],
  "description": "",
  "id": "",
  "paymentInstrumentId": "",
  "priority": "",
  "reference": "",
  "referenceForBeneficiary": "",
  "ultimateParty": [
    "address": [],
    "dateOfBirth": "",
    "firstName": "",
    "fullName": "",
    "lastName": "",
    "reference": "",
    "type": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transfers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolder": {
    "description": "Your account holder description",
    "id": "AH3227C223222C5GXQXF658WB",
    "reference": "Your account holder reference"
  },
  "amount": {
    "currency": "EUR",
    "value": 110000
  },
  "balanceAccount": {
    "description": "Your balance account description",
    "id": "BAB8B2C3D4E5F6G7H8D9J6GD4",
    "reference": "Your balance account reference"
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "category": "bank",
  "counterparty": {
    "bankAccount": {
      "accountHolder": {
        "address": {
          "city": "San Francisco",
          "country": "US",
          "postalCode": "94678",
          "stateOrProvince": "CA",
          "street": "Brannan Street",
          "street2": "274"
        },
        "fullName": "A. Klaassen"
      },
      "accountIdentification": {
        "accountNumber": "123456789",
        "bic": "BOFAUS3NXXX",
        "type": "numberAndBic"
      }
    }
  },
  "description": "Your description for the transfer",
  "direction": "outgoing",
  "id": "1W1UG35U8A9J5ZLG",
  "paymentInstrument": {
    "description": "Your payment instrument description",
    "id": "PI3222G223222G59347DAA265",
    "reference": "Your payment instrument reference"
  },
  "paymentInstrumentId": "PI3222G223222G59347DAA265",
  "priority": "crossBorder",
  "reason": "approved",
  "reference": "Your internal reference for the transfer",
  "referenceForBeneficiary": "Your-reference-sent-to-the-beneficiary",
  "status": "authorised"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolder": {
    "description": "Your account holder description",
    "id": "AH3227C223222C5GXQXF658WB",
    "reference": "Your account holder reference"
  },
  "amount": {
    "currency": "EUR",
    "value": 110000
  },
  "balanceAccount": {
    "description": "Your balance account description",
    "id": "BAB8B2C3D4E5F6G7H8D9J6GD4",
    "reference": "Your balance account reference"
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "category": "bank",
  "counterparty": {
    "bankAccount": {
      "accountHolder": {
        "fullName": "A. Klaassen"
      },
      "accountIdentification": {
        "iban": "NL91ABNA0417164300",
        "type": "iban"
      }
    }
  },
  "description": "Your description for the transfer",
  "direction": "outgoing",
  "id": "1W1UG35U8A9J5ZLG",
  "paymentInstrument": {
    "description": "Your payment instrument description",
    "id": "PI3222G223222G59347DAA265",
    "reference": "Your payment instrument reference"
  },
  "paymentInstrumentId": "PI3222G223222G59347DAA265",
  "priority": "regular",
  "reason": "approved",
  "reference": "Your internal reference for the transfer",
  "referenceForBeneficiary": "Your-reference-sent-to-the-beneficiary",
  "status": "authorised"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolder": {
    "description": "Your account holder description",
    "id": "AH3227C223222C5GXQXF658WB",
    "reference": "Your account holder reference"
  },
  "amount": {
    "currency": "USD",
    "value": 110000
  },
  "balanceAccount": {
    "description": "Your balance account description",
    "id": "BAB8B2C3D4E5F6G7H8D9J6GD4",
    "reference": "Your balance account reference"
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "category": "bank",
  "counterparty": {
    "bankAccount": {
      "accountHolder": {
        "fullName": "A. Klaassen"
      },
      "accountIdentification": {
        "accountNumber": "123456789",
        "routingNumber": "011000138",
        "type": "usLocal"
      }
    }
  },
  "description": "Your description for the transfer",
  "direction": "outgoing",
  "id": "1W1UG35U8A9J5ZLG",
  "paymentInstrument": {
    "description": "Your payment instrument description",
    "id": "PI3222G223222G59347DAA265",
    "reference": "Your payment instrument reference"
  },
  "paymentInstrumentId": "PI3222G223222G59347DAA265",
  "priority": "regular",
  "reason": "approved",
  "reference": "Your internal reference for the transfer",
  "referenceForBeneficiary": "Your-reference-sent-to-the-beneficiary",
  "status": "authorised"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolder": {
    "description": "Your account holder description",
    "id": "AH3227C223222C5GXQXF658WB",
    "reference": "Your account holder reference"
  },
  "amount": {
    "currency": "EUR",
    "value": 10000
  },
  "balanceAccount": {
    "description": "Your balance account description",
    "id": "BAB8B2C3D4E5F6G7H8D9J6GD4",
    "reference": "Your balance account reference"
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "category": "internal",
  "counterparty": {
    "balanceAccountId": "BA32272223222B5LPRFDW7J9G"
  },
  "description": "Your description for the transfer",
  "direction": "outgoing",
  "id": "1W1UG35U8A9J5ZLG",
  "reason": "approved",
  "reference": "Your internal reference for the transfer",
  "referenceForBeneficiary": "Your-reference-sent-to-the-beneficiary",
  "status": "authorised"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountHolder": {
    "description": "Your account holder description",
    "id": "AH3227C223222C5GXQXF658WB",
    "reference": "Your account holder reference"
  },
  "amount": {
    "currency": "EUR",
    "value": 80000
  },
  "balanceAccount": {
    "description": "Your balance account description",
    "id": "BAB8B2C3D4E5F6G7H8D9J6GD4",
    "reference": "Your balance account reference"
  },
  "balanceAccountId": "BAB8B2C3D4E5F6G7H8D9J6GD4",
  "category": "bank",
  "counterparty": {
    "transferInstrumentId": "SE1234567890ABC1234567890"
  },
  "description": "Your description for the transfer",
  "direction": "outgoing",
  "id": "1W1UG35U8A9J5ZLG",
  "paymentInstrument": {
    "description": "Your payment instrument description",
    "id": "PI3222G223222G59347DAA265",
    "reference": "Your payment instrument reference"
  },
  "paymentInstrumentId": "PI3222G223222G59347DAA265",
  "priority": "regular",
  "reason": "approved",
  "reference": "Your internal reference for the transfer",
  "referenceForBeneficiary": "Your-reference-sent-to-the-beneficiary",
  "status": "authorised"
}