POST Create one or more new feed connection
{{baseUrl}}/FeedConnections
BODY json

{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/FeedConnections" {:content-type :json
                                                            :form-params {:items [{:accountId ""
                                                                                   :accountName ""
                                                                                   :accountNumber ""
                                                                                   :accountToken ""
                                                                                   :accountType ""
                                                                                   :country ""
                                                                                   :currency ""
                                                                                   :error {:detail ""
                                                                                           :status 0
                                                                                           :title ""
                                                                                           :type ""}
                                                                                   :id ""
                                                                                   :status ""}]
                                                                          :pagination {:itemCount 0
                                                                                       :page 0
                                                                                       :pageCount 0
                                                                                       :pageSize 0}}})
require "http/client"

url = "{{baseUrl}}/FeedConnections"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/FeedConnections"),
    Content = new StringContent("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/FeedConnections");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")

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

	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/FeedConnections HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 441

{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/FeedConnections")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/FeedConnections"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/FeedConnections")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/FeedConnections")
  .header("content-type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {
        detail: '',
        status: 0,
        title: '',
        type: ''
      },
      id: '',
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/FeedConnections');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/FeedConnections',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/FeedConnections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"accountId":"","accountName":"","accountNumber":"","accountToken":"","accountType":"","country":"","currency":"","error":{"detail":"","status":0,"title":"","type":""},"id":"","status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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}}/FeedConnections',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "items": [\n    {\n      "accountId": "",\n      "accountName": "",\n      "accountNumber": "",\n      "accountToken": "",\n      "accountType": "",\n      "country": "",\n      "currency": "",\n      "error": {\n        "detail": "",\n        "status": 0,\n        "title": "",\n        "type": ""\n      },\n      "id": "",\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\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  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/FeedConnections")
  .post(body)
  .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/FeedConnections',
  headers: {
    '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({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {detail: '', status: 0, title: '', type: ''},
      id: '',
      status: ''
    }
  ],
  pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/FeedConnections',
  headers: {'content-type': 'application/json'},
  body: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  },
  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}}/FeedConnections');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {
        detail: '',
        status: 0,
        title: '',
        type: ''
      },
      id: '',
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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}}/FeedConnections',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

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

const url = '{{baseUrl}}/FeedConnections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"accountId":"","accountName":"","accountNumber":"","accountToken":"","accountType":"","country":"","currency":"","error":{"detail":"","status":0,"title":"","type":""},"id":"","status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"items": @[ @{ @"accountId": @"", @"accountName": @"", @"accountNumber": @"", @"accountToken": @"", @"accountType": @"", @"country": @"", @"currency": @"", @"error": @{ @"detail": @"", @"status": @0, @"title": @"", @"type": @"" }, @"id": @"", @"status": @"" } ],
                              @"pagination": @{ @"itemCount": @0, @"page": @0, @"pageCount": @0, @"pageSize": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/FeedConnections"]
                                                       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}}/FeedConnections" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/FeedConnections",
  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([
    'items' => [
        [
                'accountId' => '',
                'accountName' => '',
                'accountNumber' => '',
                'accountToken' => '',
                'accountType' => '',
                'country' => '',
                'currency' => '',
                'error' => [
                                'detail' => '',
                                'status' => 0,
                                'title' => '',
                                'type' => ''
                ],
                'id' => '',
                'status' => ''
        ]
    ],
    'pagination' => [
        'itemCount' => 0,
        'page' => 0,
        'pageCount' => 0,
        'pageSize' => 0
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/FeedConnections', [
  'body' => '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'items' => [
    [
        'accountId' => '',
        'accountName' => '',
        'accountNumber' => '',
        'accountToken' => '',
        'accountType' => '',
        'country' => '',
        'currency' => '',
        'error' => [
                'detail' => '',
                'status' => 0,
                'title' => '',
                'type' => ''
        ],
        'id' => '',
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'items' => [
    [
        'accountId' => '',
        'accountName' => '',
        'accountNumber' => '',
        'accountToken' => '',
        'accountType' => '',
        'country' => '',
        'currency' => '',
        'error' => [
                'detail' => '',
                'status' => 0,
                'title' => '',
                'type' => ''
        ],
        'id' => '',
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/FeedConnections');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/FeedConnections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/FeedConnections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
import http.client

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

payload = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

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

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

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

url = "{{baseUrl}}/FeedConnections"

payload = {
    "items": [
        {
            "accountId": "",
            "accountName": "",
            "accountNumber": "",
            "accountToken": "",
            "accountType": "",
            "country": "",
            "currency": "",
            "error": {
                "detail": "",
                "status": 0,
                "title": "",
                "type": ""
            },
            "id": "",
            "status": ""
        }
    ],
    "pagination": {
        "itemCount": 0,
        "page": 0,
        "pageCount": 0,
        "pageSize": 0
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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/FeedConnections') do |req|
  req.body = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"
end

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

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

    let payload = json!({
        "items": (
            json!({
                "accountId": "",
                "accountName": "",
                "accountNumber": "",
                "accountToken": "",
                "accountType": "",
                "country": "",
                "currency": "",
                "error": json!({
                    "detail": "",
                    "status": 0,
                    "title": "",
                    "type": ""
                }),
                "id": "",
                "status": ""
            })
        ),
        "pagination": json!({
            "itemCount": 0,
            "page": 0,
            "pageCount": 0,
            "pageSize": 0
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/FeedConnections \
  --header 'content-type: application/json' \
  --data '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
echo '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}' |  \
  http POST {{baseUrl}}/FeedConnections \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "items": [\n    {\n      "accountId": "",\n      "accountName": "",\n      "accountNumber": "",\n      "accountToken": "",\n      "accountType": "",\n      "country": "",\n      "currency": "",\n      "error": {\n        "detail": "",\n        "status": 0,\n        "title": "",\n        "type": ""\n      },\n      "id": "",\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/FeedConnections
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "items": [
    [
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": [
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      ],
      "id": "",
      "status": ""
    ]
  ],
  "pagination": [
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/FeedConnections")! 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

{
  "items": [
    {
      "accountToken": "foobar71760",
      "id": "2a19d46c-2a92-4e50-9401-dcf2cb895be7",
      "status": "PENDING"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "The application has not been configured to use these API endpoints.",
  "status": 403,
  "title": "Invalid Application",
  "type": "invalid-application"
}
POST Creates one or more new statements
{{baseUrl}}/Statements
BODY json

{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/Statements" {:content-type :json
                                                       :form-params {:items [{:endBalance {:amount ""
                                                                                           :creditDebitIndicator ""}
                                                                              :endDate ""
                                                                              :errors [{:detail ""
                                                                                        :status 0
                                                                                        :title ""
                                                                                        :type ""}]
                                                                              :feedConnectionId ""
                                                                              :id ""
                                                                              :startBalance {:amount ""
                                                                                             :creditDebitIndicator ""}
                                                                              :startDate ""
                                                                              :statementLineCount 0
                                                                              :statementLines [{:amount ""
                                                                                                :chequeNumber ""
                                                                                                :creditDebitIndicator ""
                                                                                                :description ""
                                                                                                :payeeName ""
                                                                                                :postedDate ""
                                                                                                :reference ""
                                                                                                :transactionId ""}]
                                                                              :status ""}]
                                                                     :pagination {:itemCount 0
                                                                                  :page 0
                                                                                  :pageCount 0
                                                                                  :pageSize 0}}})
require "http/client"

url = "{{baseUrl}}/Statements"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/Statements"),
    Content = new StringContent("{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/Statements");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")

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

	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/Statements HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 872

{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Statements")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Statements"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Statements")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Statements")
  .header("content-type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  items: [
    {
      endBalance: {
        amount: '',
        creditDebitIndicator: ''
      },
      endDate: '',
      errors: [
        {
          detail: '',
          status: 0,
          title: '',
          type: ''
        }
      ],
      feedConnectionId: '',
      id: '',
      startBalance: {
        amount: '',
        creditDebitIndicator: ''
      },
      startDate: '',
      statementLineCount: 0,
      statementLines: [
        {
          amount: '',
          chequeNumber: '',
          creditDebitIndicator: '',
          description: '',
          payeeName: '',
          postedDate: '',
          reference: '',
          transactionId: ''
        }
      ],
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/Statements');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Statements',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        endBalance: {amount: '', creditDebitIndicator: ''},
        endDate: '',
        errors: [{detail: '', status: 0, title: '', type: ''}],
        feedConnectionId: '',
        id: '',
        startBalance: {amount: '', creditDebitIndicator: ''},
        startDate: '',
        statementLineCount: 0,
        statementLines: [
          {
            amount: '',
            chequeNumber: '',
            creditDebitIndicator: '',
            description: '',
            payeeName: '',
            postedDate: '',
            reference: '',
            transactionId: ''
          }
        ],
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Statements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"endBalance":{"amount":"","creditDebitIndicator":""},"endDate":"","errors":[{"detail":"","status":0,"title":"","type":""}],"feedConnectionId":"","id":"","startBalance":{"amount":"","creditDebitIndicator":""},"startDate":"","statementLineCount":0,"statementLines":[{"amount":"","chequeNumber":"","creditDebitIndicator":"","description":"","payeeName":"","postedDate":"","reference":"","transactionId":""}],"status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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}}/Statements',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "items": [\n    {\n      "endBalance": {\n        "amount": "",\n        "creditDebitIndicator": ""\n      },\n      "endDate": "",\n      "errors": [\n        {\n          "detail": "",\n          "status": 0,\n          "title": "",\n          "type": ""\n        }\n      ],\n      "feedConnectionId": "",\n      "id": "",\n      "startBalance": {\n        "amount": "",\n        "creditDebitIndicator": ""\n      },\n      "startDate": "",\n      "statementLineCount": 0,\n      "statementLines": [\n        {\n          "amount": "",\n          "chequeNumber": "",\n          "creditDebitIndicator": "",\n          "description": "",\n          "payeeName": "",\n          "postedDate": "",\n          "reference": "",\n          "transactionId": ""\n        }\n      ],\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\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  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/Statements")
  .post(body)
  .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/Statements',
  headers: {
    '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({
  items: [
    {
      endBalance: {amount: '', creditDebitIndicator: ''},
      endDate: '',
      errors: [{detail: '', status: 0, title: '', type: ''}],
      feedConnectionId: '',
      id: '',
      startBalance: {amount: '', creditDebitIndicator: ''},
      startDate: '',
      statementLineCount: 0,
      statementLines: [
        {
          amount: '',
          chequeNumber: '',
          creditDebitIndicator: '',
          description: '',
          payeeName: '',
          postedDate: '',
          reference: '',
          transactionId: ''
        }
      ],
      status: ''
    }
  ],
  pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Statements',
  headers: {'content-type': 'application/json'},
  body: {
    items: [
      {
        endBalance: {amount: '', creditDebitIndicator: ''},
        endDate: '',
        errors: [{detail: '', status: 0, title: '', type: ''}],
        feedConnectionId: '',
        id: '',
        startBalance: {amount: '', creditDebitIndicator: ''},
        startDate: '',
        statementLineCount: 0,
        statementLines: [
          {
            amount: '',
            chequeNumber: '',
            creditDebitIndicator: '',
            description: '',
            payeeName: '',
            postedDate: '',
            reference: '',
            transactionId: ''
          }
        ],
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  },
  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}}/Statements');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  items: [
    {
      endBalance: {
        amount: '',
        creditDebitIndicator: ''
      },
      endDate: '',
      errors: [
        {
          detail: '',
          status: 0,
          title: '',
          type: ''
        }
      ],
      feedConnectionId: '',
      id: '',
      startBalance: {
        amount: '',
        creditDebitIndicator: ''
      },
      startDate: '',
      statementLineCount: 0,
      statementLines: [
        {
          amount: '',
          chequeNumber: '',
          creditDebitIndicator: '',
          description: '',
          payeeName: '',
          postedDate: '',
          reference: '',
          transactionId: ''
        }
      ],
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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}}/Statements',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        endBalance: {amount: '', creditDebitIndicator: ''},
        endDate: '',
        errors: [{detail: '', status: 0, title: '', type: ''}],
        feedConnectionId: '',
        id: '',
        startBalance: {amount: '', creditDebitIndicator: ''},
        startDate: '',
        statementLineCount: 0,
        statementLines: [
          {
            amount: '',
            chequeNumber: '',
            creditDebitIndicator: '',
            description: '',
            payeeName: '',
            postedDate: '',
            reference: '',
            transactionId: ''
          }
        ],
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

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

const url = '{{baseUrl}}/Statements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"endBalance":{"amount":"","creditDebitIndicator":""},"endDate":"","errors":[{"detail":"","status":0,"title":"","type":""}],"feedConnectionId":"","id":"","startBalance":{"amount":"","creditDebitIndicator":""},"startDate":"","statementLineCount":0,"statementLines":[{"amount":"","chequeNumber":"","creditDebitIndicator":"","description":"","payeeName":"","postedDate":"","reference":"","transactionId":""}],"status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"items": @[ @{ @"endBalance": @{ @"amount": @"", @"creditDebitIndicator": @"" }, @"endDate": @"", @"errors": @[ @{ @"detail": @"", @"status": @0, @"title": @"", @"type": @"" } ], @"feedConnectionId": @"", @"id": @"", @"startBalance": @{ @"amount": @"", @"creditDebitIndicator": @"" }, @"startDate": @"", @"statementLineCount": @0, @"statementLines": @[ @{ @"amount": @"", @"chequeNumber": @"", @"creditDebitIndicator": @"", @"description": @"", @"payeeName": @"", @"postedDate": @"", @"reference": @"", @"transactionId": @"" } ], @"status": @"" } ],
                              @"pagination": @{ @"itemCount": @0, @"page": @0, @"pageCount": @0, @"pageSize": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Statements"]
                                                       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}}/Statements" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Statements",
  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([
    'items' => [
        [
                'endBalance' => [
                                'amount' => '',
                                'creditDebitIndicator' => ''
                ],
                'endDate' => '',
                'errors' => [
                                [
                                                                'detail' => '',
                                                                'status' => 0,
                                                                'title' => '',
                                                                'type' => ''
                                ]
                ],
                'feedConnectionId' => '',
                'id' => '',
                'startBalance' => [
                                'amount' => '',
                                'creditDebitIndicator' => ''
                ],
                'startDate' => '',
                'statementLineCount' => 0,
                'statementLines' => [
                                [
                                                                'amount' => '',
                                                                'chequeNumber' => '',
                                                                'creditDebitIndicator' => '',
                                                                'description' => '',
                                                                'payeeName' => '',
                                                                'postedDate' => '',
                                                                'reference' => '',
                                                                'transactionId' => ''
                                ]
                ],
                'status' => ''
        ]
    ],
    'pagination' => [
        'itemCount' => 0,
        'page' => 0,
        'pageCount' => 0,
        'pageSize' => 0
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/Statements', [
  'body' => '{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'items' => [
    [
        'endBalance' => [
                'amount' => '',
                'creditDebitIndicator' => ''
        ],
        'endDate' => '',
        'errors' => [
                [
                                'detail' => '',
                                'status' => 0,
                                'title' => '',
                                'type' => ''
                ]
        ],
        'feedConnectionId' => '',
        'id' => '',
        'startBalance' => [
                'amount' => '',
                'creditDebitIndicator' => ''
        ],
        'startDate' => '',
        'statementLineCount' => 0,
        'statementLines' => [
                [
                                'amount' => '',
                                'chequeNumber' => '',
                                'creditDebitIndicator' => '',
                                'description' => '',
                                'payeeName' => '',
                                'postedDate' => '',
                                'reference' => '',
                                'transactionId' => ''
                ]
        ],
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'items' => [
    [
        'endBalance' => [
                'amount' => '',
                'creditDebitIndicator' => ''
        ],
        'endDate' => '',
        'errors' => [
                [
                                'detail' => '',
                                'status' => 0,
                                'title' => '',
                                'type' => ''
                ]
        ],
        'feedConnectionId' => '',
        'id' => '',
        'startBalance' => [
                'amount' => '',
                'creditDebitIndicator' => ''
        ],
        'startDate' => '',
        'statementLineCount' => 0,
        'statementLines' => [
                [
                                'amount' => '',
                                'chequeNumber' => '',
                                'creditDebitIndicator' => '',
                                'description' => '',
                                'payeeName' => '',
                                'postedDate' => '',
                                'reference' => '',
                                'transactionId' => ''
                ]
        ],
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Statements');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Statements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Statements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
import http.client

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

payload = "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

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

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

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

url = "{{baseUrl}}/Statements"

payload = {
    "items": [
        {
            "endBalance": {
                "amount": "",
                "creditDebitIndicator": ""
            },
            "endDate": "",
            "errors": [
                {
                    "detail": "",
                    "status": 0,
                    "title": "",
                    "type": ""
                }
            ],
            "feedConnectionId": "",
            "id": "",
            "startBalance": {
                "amount": "",
                "creditDebitIndicator": ""
            },
            "startDate": "",
            "statementLineCount": 0,
            "statementLines": [
                {
                    "amount": "",
                    "chequeNumber": "",
                    "creditDebitIndicator": "",
                    "description": "",
                    "payeeName": "",
                    "postedDate": "",
                    "reference": "",
                    "transactionId": ""
                }
            ],
            "status": ""
        }
    ],
    "pagination": {
        "itemCount": 0,
        "page": 0,
        "pageCount": 0,
        "pageSize": 0
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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/Statements') do |req|
  req.body = "{\n  \"items\": [\n    {\n      \"endBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"endDate\": \"\",\n      \"errors\": [\n        {\n          \"detail\": \"\",\n          \"status\": 0,\n          \"title\": \"\",\n          \"type\": \"\"\n        }\n      ],\n      \"feedConnectionId\": \"\",\n      \"id\": \"\",\n      \"startBalance\": {\n        \"amount\": \"\",\n        \"creditDebitIndicator\": \"\"\n      },\n      \"startDate\": \"\",\n      \"statementLineCount\": 0,\n      \"statementLines\": [\n        {\n          \"amount\": \"\",\n          \"chequeNumber\": \"\",\n          \"creditDebitIndicator\": \"\",\n          \"description\": \"\",\n          \"payeeName\": \"\",\n          \"postedDate\": \"\",\n          \"reference\": \"\",\n          \"transactionId\": \"\"\n        }\n      ],\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"
end

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

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

    let payload = json!({
        "items": (
            json!({
                "endBalance": json!({
                    "amount": "",
                    "creditDebitIndicator": ""
                }),
                "endDate": "",
                "errors": (
                    json!({
                        "detail": "",
                        "status": 0,
                        "title": "",
                        "type": ""
                    })
                ),
                "feedConnectionId": "",
                "id": "",
                "startBalance": json!({
                    "amount": "",
                    "creditDebitIndicator": ""
                }),
                "startDate": "",
                "statementLineCount": 0,
                "statementLines": (
                    json!({
                        "amount": "",
                        "chequeNumber": "",
                        "creditDebitIndicator": "",
                        "description": "",
                        "payeeName": "",
                        "postedDate": "",
                        "reference": "",
                        "transactionId": ""
                    })
                ),
                "status": ""
            })
        ),
        "pagination": json!({
            "itemCount": 0,
            "page": 0,
            "pageCount": 0,
            "pageSize": 0
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/Statements \
  --header 'content-type: application/json' \
  --data '{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
echo '{
  "items": [
    {
      "endBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "endDate": "",
      "errors": [
        {
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        }
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": {
        "amount": "",
        "creditDebitIndicator": ""
      },
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        {
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        }
      ],
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}' |  \
  http POST {{baseUrl}}/Statements \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "items": [\n    {\n      "endBalance": {\n        "amount": "",\n        "creditDebitIndicator": ""\n      },\n      "endDate": "",\n      "errors": [\n        {\n          "detail": "",\n          "status": 0,\n          "title": "",\n          "type": ""\n        }\n      ],\n      "feedConnectionId": "",\n      "id": "",\n      "startBalance": {\n        "amount": "",\n        "creditDebitIndicator": ""\n      },\n      "startDate": "",\n      "statementLineCount": 0,\n      "statementLines": [\n        {\n          "amount": "",\n          "chequeNumber": "",\n          "creditDebitIndicator": "",\n          "description": "",\n          "payeeName": "",\n          "postedDate": "",\n          "reference": "",\n          "transactionId": ""\n        }\n      ],\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/Statements
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "items": [
    [
      "endBalance": [
        "amount": "",
        "creditDebitIndicator": ""
      ],
      "endDate": "",
      "errors": [
        [
          "detail": "",
          "status": 0,
          "title": "",
          "type": ""
        ]
      ],
      "feedConnectionId": "",
      "id": "",
      "startBalance": [
        "amount": "",
        "creditDebitIndicator": ""
      ],
      "startDate": "",
      "statementLineCount": 0,
      "statementLines": [
        [
          "amount": "",
          "chequeNumber": "",
          "creditDebitIndicator": "",
          "description": "",
          "payeeName": "",
          "postedDate": "",
          "reference": "",
          "transactionId": ""
        ]
      ],
      "status": ""
    ]
  ],
  "pagination": [
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Statements")! 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

{
  "items": [
    {
      "feedConnectionId": "6a4b9ff5-3a5f-4321-936b-4796163550f6",
      "id": "d69b02b7-a30c-464a-99cf-ba9770373c61",
      "status": "PENDING"
    },
    {
      "feedConnectionId": "2ebe6393-f3bb-48ab-9a0e-b04fa8585a70",
      "id": "598f255c-015b-4138-93df-2e06c64565b3",
      "status": "PENDING"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "For the request field 'StatementLine.ChequeNumber' exceeded the maximum length of 20.",
  "status": 400,
  "title": "Invalid Request",
  "type": "invalid-request"
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "The application has not been configured to use these API endpoints.",
  "status": 403,
  "title": "Invalid Application",
  "type": "invalid-application"
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "items": [
    {
      "errors": [
        {
          "detail": "The received statement was marked as a duplicate.",
          "status": 409,
          "title": "Duplicate Statement Received",
          "type": "duplicate-statement"
        }
      ],
      "feedConnectionId": "6a4b9ff5-3a5f-4321-936b-4796163550f6",
      "id": "29fefeb6-f449-470d-9179-f1d8900930d6",
      "status": "REJECTED"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "Request size of 3500000 bytes exceeds the limit of 3000000 bytes.",
  "status": 413,
  "title": "Request too large",
  "type": "invalid-request"
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "End balance does not match start balance +/- statement line amounts.",
  "status": 422,
  "title": "Invalid End Balance",
  "type": "invalid-end-balance"
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "The request should be retried. If the error persists, a Xero support issue should be raised.",
  "status": 500,
  "title": "Intermittent Internal Xero Error",
  "type": "internal-error"
}
POST Delete an existing feed connection
{{baseUrl}}/FeedConnections/DeleteRequests
BODY json

{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/FeedConnections/DeleteRequests" {:content-type :json
                                                                           :form-params {:items [{:accountId ""
                                                                                                  :accountName ""
                                                                                                  :accountNumber ""
                                                                                                  :accountToken ""
                                                                                                  :accountType ""
                                                                                                  :country ""
                                                                                                  :currency ""
                                                                                                  :error {:detail ""
                                                                                                          :status 0
                                                                                                          :title ""
                                                                                                          :type ""}
                                                                                                  :id ""
                                                                                                  :status ""}]
                                                                                         :pagination {:itemCount 0
                                                                                                      :page 0
                                                                                                      :pageCount 0
                                                                                                      :pageSize 0}}})
require "http/client"

url = "{{baseUrl}}/FeedConnections/DeleteRequests"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/FeedConnections/DeleteRequests"),
    Content = new StringContent("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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}}/FeedConnections/DeleteRequests");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/FeedConnections/DeleteRequests"

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")

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

	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/FeedConnections/DeleteRequests HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 441

{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/FeedConnections/DeleteRequests")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/FeedConnections/DeleteRequests"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/FeedConnections/DeleteRequests")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/FeedConnections/DeleteRequests")
  .header("content-type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {
        detail: '',
        status: 0,
        title: '',
        type: ''
      },
      id: '',
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/FeedConnections/DeleteRequests');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/FeedConnections/DeleteRequests',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/FeedConnections/DeleteRequests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"accountId":"","accountName":"","accountNumber":"","accountToken":"","accountType":"","country":"","currency":"","error":{"detail":"","status":0,"title":"","type":""},"id":"","status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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}}/FeedConnections/DeleteRequests',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "items": [\n    {\n      "accountId": "",\n      "accountName": "",\n      "accountNumber": "",\n      "accountToken": "",\n      "accountType": "",\n      "country": "",\n      "currency": "",\n      "error": {\n        "detail": "",\n        "status": 0,\n        "title": "",\n        "type": ""\n      },\n      "id": "",\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\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  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/FeedConnections/DeleteRequests")
  .post(body)
  .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/FeedConnections/DeleteRequests',
  headers: {
    '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({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {detail: '', status: 0, title: '', type: ''},
      id: '',
      status: ''
    }
  ],
  pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/FeedConnections/DeleteRequests',
  headers: {'content-type': 'application/json'},
  body: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  },
  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}}/FeedConnections/DeleteRequests');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  items: [
    {
      accountId: '',
      accountName: '',
      accountNumber: '',
      accountToken: '',
      accountType: '',
      country: '',
      currency: '',
      error: {
        detail: '',
        status: 0,
        title: '',
        type: ''
      },
      id: '',
      status: ''
    }
  ],
  pagination: {
    itemCount: 0,
    page: 0,
    pageCount: 0,
    pageSize: 0
  }
});

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}}/FeedConnections/DeleteRequests',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        accountId: '',
        accountName: '',
        accountNumber: '',
        accountToken: '',
        accountType: '',
        country: '',
        currency: '',
        error: {detail: '', status: 0, title: '', type: ''},
        id: '',
        status: ''
      }
    ],
    pagination: {itemCount: 0, page: 0, pageCount: 0, pageSize: 0}
  }
};

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

const url = '{{baseUrl}}/FeedConnections/DeleteRequests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"accountId":"","accountName":"","accountNumber":"","accountToken":"","accountType":"","country":"","currency":"","error":{"detail":"","status":0,"title":"","type":""},"id":"","status":""}],"pagination":{"itemCount":0,"page":0,"pageCount":0,"pageSize":0}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"items": @[ @{ @"accountId": @"", @"accountName": @"", @"accountNumber": @"", @"accountToken": @"", @"accountType": @"", @"country": @"", @"currency": @"", @"error": @{ @"detail": @"", @"status": @0, @"title": @"", @"type": @"" }, @"id": @"", @"status": @"" } ],
                              @"pagination": @{ @"itemCount": @0, @"page": @0, @"pageCount": @0, @"pageSize": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/FeedConnections/DeleteRequests"]
                                                       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}}/FeedConnections/DeleteRequests" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/FeedConnections/DeleteRequests",
  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([
    'items' => [
        [
                'accountId' => '',
                'accountName' => '',
                'accountNumber' => '',
                'accountToken' => '',
                'accountType' => '',
                'country' => '',
                'currency' => '',
                'error' => [
                                'detail' => '',
                                'status' => 0,
                                'title' => '',
                                'type' => ''
                ],
                'id' => '',
                'status' => ''
        ]
    ],
    'pagination' => [
        'itemCount' => 0,
        'page' => 0,
        'pageCount' => 0,
        'pageSize' => 0
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/FeedConnections/DeleteRequests', [
  'body' => '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'items' => [
    [
        'accountId' => '',
        'accountName' => '',
        'accountNumber' => '',
        'accountToken' => '',
        'accountType' => '',
        'country' => '',
        'currency' => '',
        'error' => [
                'detail' => '',
                'status' => 0,
                'title' => '',
                'type' => ''
        ],
        'id' => '',
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'items' => [
    [
        'accountId' => '',
        'accountName' => '',
        'accountNumber' => '',
        'accountToken' => '',
        'accountType' => '',
        'country' => '',
        'currency' => '',
        'error' => [
                'detail' => '',
                'status' => 0,
                'title' => '',
                'type' => ''
        ],
        'id' => '',
        'status' => ''
    ]
  ],
  'pagination' => [
    'itemCount' => 0,
    'page' => 0,
    'pageCount' => 0,
    'pageSize' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/FeedConnections/DeleteRequests');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/FeedConnections/DeleteRequests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/FeedConnections/DeleteRequests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
import http.client

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

payload = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

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

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

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

url = "{{baseUrl}}/FeedConnections/DeleteRequests"

payload = {
    "items": [
        {
            "accountId": "",
            "accountName": "",
            "accountNumber": "",
            "accountToken": "",
            "accountType": "",
            "country": "",
            "currency": "",
            "error": {
                "detail": "",
                "status": 0,
                "title": "",
                "type": ""
            },
            "id": "",
            "status": ""
        }
    ],
    "pagination": {
        "itemCount": 0,
        "page": 0,
        "pageCount": 0,
        "pageSize": 0
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/FeedConnections/DeleteRequests"

payload <- "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/FeedConnections/DeleteRequests")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\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/FeedConnections/DeleteRequests') do |req|
  req.body = "{\n  \"items\": [\n    {\n      \"accountId\": \"\",\n      \"accountName\": \"\",\n      \"accountNumber\": \"\",\n      \"accountToken\": \"\",\n      \"accountType\": \"\",\n      \"country\": \"\",\n      \"currency\": \"\",\n      \"error\": {\n        \"detail\": \"\",\n        \"status\": 0,\n        \"title\": \"\",\n        \"type\": \"\"\n      },\n      \"id\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"itemCount\": 0,\n    \"page\": 0,\n    \"pageCount\": 0,\n    \"pageSize\": 0\n  }\n}"
end

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

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

    let payload = json!({
        "items": (
            json!({
                "accountId": "",
                "accountName": "",
                "accountNumber": "",
                "accountToken": "",
                "accountType": "",
                "country": "",
                "currency": "",
                "error": json!({
                    "detail": "",
                    "status": 0,
                    "title": "",
                    "type": ""
                }),
                "id": "",
                "status": ""
            })
        ),
        "pagination": json!({
            "itemCount": 0,
            "page": 0,
            "pageCount": 0,
            "pageSize": 0
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/FeedConnections/DeleteRequests \
  --header 'content-type: application/json' \
  --data '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}'
echo '{
  "items": [
    {
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": {
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      },
      "id": "",
      "status": ""
    }
  ],
  "pagination": {
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  }
}' |  \
  http POST {{baseUrl}}/FeedConnections/DeleteRequests \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "items": [\n    {\n      "accountId": "",\n      "accountName": "",\n      "accountNumber": "",\n      "accountToken": "",\n      "accountType": "",\n      "country": "",\n      "currency": "",\n      "error": {\n        "detail": "",\n        "status": 0,\n        "title": "",\n        "type": ""\n      },\n      "id": "",\n      "status": ""\n    }\n  ],\n  "pagination": {\n    "itemCount": 0,\n    "page": 0,\n    "pageCount": 0,\n    "pageSize": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/FeedConnections/DeleteRequests
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "items": [
    [
      "accountId": "",
      "accountName": "",
      "accountNumber": "",
      "accountToken": "",
      "accountType": "",
      "country": "",
      "currency": "",
      "error": [
        "detail": "",
        "status": 0,
        "title": "",
        "type": ""
      ],
      "id": "",
      "status": ""
    ]
  ],
  "pagination": [
    "itemCount": 0,
    "page": 0,
    "pageCount": 0,
    "pageSize": 0
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/FeedConnections/DeleteRequests")! 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

{
  "items": [
    {
      "id": "b4cc693b-24d9-42ec-a6d4-2943d253ff63",
      "status": "PENDING"
    },
    {
      "accountToken": "10000125",
      "error": {
        "detail": "The AccountToken is connected to another Xero Bank Account associated with this bank. This Xero Bank Account belongs to a different Xero Organisation.",
        "title": "Feed connected in different organisation",
        "type": "feed-connected-in-different-organisation"
      },
      "status": "REJECTED"
    }
  ]
}
GET Retrieve all statements
{{baseUrl}}/Statements
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Statements");

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

(client/get "{{baseUrl}}/Statements")
require "http/client"

url = "{{baseUrl}}/Statements"

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

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

func main() {

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

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

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

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

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

}
GET /baseUrl/Statements HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Statements")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Statements"))
    .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}}/Statements")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Statements")
  .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}}/Statements');

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

const options = {method: 'GET', url: '{{baseUrl}}/Statements'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Statements';
const options = {method: 'GET'};

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}}/Statements',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Statements")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Statements',
  headers: {}
};

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}}/Statements'};

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

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

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

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}}/Statements'};

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

const url = '{{baseUrl}}/Statements';
const options = {method: 'GET'};

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

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

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}}/Statements" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Statements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/Statements');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Statements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Statements' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Statements' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Statements")

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

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

url = "{{baseUrl}}/Statements"

response = requests.get(url)

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

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

response <- VERB("GET", url, content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/Statements') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/Statements
http GET {{baseUrl}}/Statements
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Statements
import Foundation

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

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

{
  "items": [
    {
      "endBalance": {
        "amount": "150.0000",
        "creditDebitIndicator": "CREDIT"
      },
      "endDate": "2019-08-15",
      "errors": [
        {
          "detail": "The received statement was marked as a duplicate.",
          "status": 409,
          "title": "Duplicate Statement Received",
          "type": "duplicate-statement"
        }
      ],
      "feedConnectionId": "6a4b9ff5-3a5f-4321-936b-4796163550f6",
      "id": "9817e4b8-82b3-4526-91f7-040bd278053f",
      "startBalance": {
        "amount": "100.0000",
        "creditDebitIndicator": "CREDIT"
      },
      "startDate": "2019-08-01",
      "statementLineCount": "1",
      "status": "REJECTED"
    },
    {
      "endBalance": {
        "amount": "150.0000",
        "creditDebitIndicator": "CREDIT"
      },
      "endDate": "2019-08-15",
      "feedConnectionId": "6a4b9ff5-3a5f-4321-936b-4796163550f6",
      "id": "2fc57bac-7aa7-4981-a5cd-8aee83fe698c",
      "startBalance": {
        "amount": "100.0000",
        "creditDebitIndicator": "CREDIT"
      },
      "startDate": "2019-08-01",
      "statementLineCount": "1",
      "status": "DELIVERED"
    }
  ],
  "pagination": {
    "itemCount": 3,
    "page": 1,
    "pageCount": 210,
    "pageSize": 3
  }
}
RESPONSE HEADERS

Content-Type
application/problem+json
RESPONSE BODY text

{
  "detail": "For the request field missing parameter.",
  "status": 400,
  "title": "Invalid Request",
  "type": "invalid-request"
}
GET Retrieve single feed connection based on a unique id provided
{{baseUrl}}/FeedConnections/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/FeedConnections/:id")
require "http/client"

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

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

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

func main() {

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

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

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

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

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

}
GET /baseUrl/FeedConnections/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/FeedConnections/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/FeedConnections/:id"))
    .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}}/FeedConnections/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/FeedConnections/:id")
  .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}}/FeedConnections/:id');

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

const options = {method: 'GET', url: '{{baseUrl}}/FeedConnections/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/FeedConnections/:id';
const options = {method: 'GET'};

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}}/FeedConnections/:id',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/FeedConnections/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/FeedConnections/:id',
  headers: {}
};

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}}/FeedConnections/:id'};

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

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

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

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}}/FeedConnections/:id'};

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

const url = '{{baseUrl}}/FeedConnections/:id';
const options = {method: 'GET'};

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

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

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}}/FeedConnections/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/FeedConnections/:id');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/FeedConnections/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/FeedConnections/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/FeedConnections/:id' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/FeedConnections/:id")

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

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

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

response = requests.get(url)

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

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

response <- VERB("GET", url, content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/FeedConnections/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/FeedConnections/:id
http GET {{baseUrl}}/FeedConnections/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/FeedConnections/:id
import Foundation

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

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

{
  "accountId": "f4c4d595-da94-493b-999a-19d1ae1f508a",
  "accountName": "SDK Bank 5517",
  "accountNumber": "123434859",
  "accountToken": "foobar84778",
  "accountType": "BANK",
  "country": "GB",
  "currency": "GBP",
  "id": "b58b685a-1bee-4904-91f1-fee30bb6ea52"
}
GET Retrieve single statement based on unique id provided
{{baseUrl}}/Statements/:statementID
QUERY PARAMS

statementId
statementID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Statements/:statementID?statementId=");

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

(client/get "{{baseUrl}}/Statements/:statementID" {:query-params {:statementId ""}})
require "http/client"

url = "{{baseUrl}}/Statements/:statementID?statementId="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/Statements/:statementID?statementId="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Statements/:statementID?statementId=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Statements/:statementID?statementId="

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

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

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

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

}
GET /baseUrl/Statements/:statementID?statementId= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Statements/:statementID?statementId=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Statements/:statementID?statementId="))
    .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}}/Statements/:statementID?statementId=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Statements/:statementID?statementId=")
  .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}}/Statements/:statementID?statementId=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/Statements/:statementID',
  params: {statementId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Statements/:statementID?statementId=';
const options = {method: 'GET'};

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}}/Statements/:statementID?statementId=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Statements/:statementID?statementId=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Statements/:statementID?statementId=',
  headers: {}
};

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}}/Statements/:statementID',
  qs: {statementId: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/Statements/:statementID');

req.query({
  statementId: ''
});

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}}/Statements/:statementID',
  params: {statementId: ''}
};

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

const url = '{{baseUrl}}/Statements/:statementID?statementId=';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Statements/:statementID?statementId="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/Statements/:statementID?statementId=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Statements/:statementID?statementId=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/Statements/:statementID?statementId=');

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

$request->setQueryData([
  'statementId' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Statements/:statementID');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'statementId' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Statements/:statementID?statementId=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Statements/:statementID?statementId=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Statements/:statementID?statementId=")

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

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

url = "{{baseUrl}}/Statements/:statementID"

querystring = {"statementId":""}

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

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

url <- "{{baseUrl}}/Statements/:statementID"

queryString <- list(statementId = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/Statements/:statementID?statementId=")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/Statements/:statementID') do |req|
  req.params['statementId'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("statementId", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/Statements/:statementID?statementId='
http GET '{{baseUrl}}/Statements/:statementID?statementId='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/Statements/:statementID?statementId='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Statements/:statementID?statementId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

{
  "endBalance": {
    "amount": "150.0000",
    "creditDebitIndicator": "CREDIT"
  },
  "endDate": "2019-10-11",
  "feedConnectionId": "6a4b9ff5-3a5f-4321-936b-4796163550f6",
  "id": "97aca24a-dd10-4cda-98c7-1084a048257b",
  "startBalance": {
    "amount": "100.0000",
    "creditDebitIndicator": "CREDIT"
  },
  "startDate": "2019-08-11",
  "statementLineCount": "1",
  "status": "DELIVERED"
}
GET Searches for feed connections
{{baseUrl}}/FeedConnections
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/FeedConnections");

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

(client/get "{{baseUrl}}/FeedConnections")
require "http/client"

url = "{{baseUrl}}/FeedConnections"

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

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

func main() {

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

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

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

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

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

}
GET /baseUrl/FeedConnections HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/FeedConnections")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/FeedConnections"))
    .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}}/FeedConnections")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/FeedConnections")
  .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}}/FeedConnections');

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

const options = {method: 'GET', url: '{{baseUrl}}/FeedConnections'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/FeedConnections';
const options = {method: 'GET'};

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}}/FeedConnections',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/FeedConnections")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/FeedConnections',
  headers: {}
};

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}}/FeedConnections'};

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

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

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

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}}/FeedConnections'};

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

const url = '{{baseUrl}}/FeedConnections';
const options = {method: 'GET'};

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

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

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}}/FeedConnections" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/FeedConnections",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/FeedConnections');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/FeedConnections');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/FeedConnections' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/FeedConnections' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/FeedConnections")

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

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

url = "{{baseUrl}}/FeedConnections"

response = requests.get(url)

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

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

response <- VERB("GET", url, content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/FeedConnections') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/FeedConnections
http GET {{baseUrl}}/FeedConnections
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/FeedConnections
import Foundation

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

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

{
  "items": [
    {
      "accountId": "aefbf6be-4285-4ca5-bf39-0f486c8515c7",
      "accountName": "SDK Bank 95921",
      "accountNumber": "123496842",
      "accountToken": "foobar31306",
      "accountType": "BANK",
      "country": "GB",
      "currency": "GBP",
      "id": "c0eb97b5-4f97-465a-8268-276513c14396"
    },
    {
      "accountId": "fc2f3cc2-126e-40d7-9fc1-12e52d0a71f1",
      "accountName": "SDK Bank 11272",
      "accountNumber": "123481122",
      "accountToken": "foobar74770",
      "accountType": "BANK",
      "country": "GB",
      "currency": "GBP",
      "id": "3b44b539-4e39-4d53-9334-d8ba01674752"
    }
  ],
  "pagination": {
    "itemCount": 39,
    "page": 1,
    "pageCount": 1,
    "pageSize": 87654321
  }
}