POST Create a business line
{{baseUrl}}/businessLines
BODY json

{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/businessLines" {:content-type :json
                                                          :form-params {:capability ""
                                                                        :industryCode ""
                                                                        :legalEntityId ""
                                                                        :salesChannels []
                                                                        :service ""
                                                                        :sourceOfFunds {:acquiringBusinessLineId ""
                                                                                        :adyenProcessedFunds false
                                                                                        :description ""
                                                                                        :type ""}
                                                                        :webData [{:webAddress ""
                                                                                   :webAddressId ""}]
                                                                        :webDataExemption {:reason ""}}})
require "http/client"

url = "{{baseUrl}}/businessLines"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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}}/businessLines"),
    Content = new StringContent("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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}}/businessLines");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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/businessLines HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 367

{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/businessLines")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/businessLines"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/businessLines")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/businessLines")
  .header("content-type", "application/json")
  .body("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [
    {
      webAddress: '',
      webAddressId: ''
    }
  ],
  webDataExemption: {
    reason: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/businessLines',
  headers: {'content-type': 'application/json'},
  data: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/businessLines';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"capability":"","industryCode":"","legalEntityId":"","salesChannels":[],"service":"","sourceOfFunds":{"acquiringBusinessLineId":"","adyenProcessedFunds":false,"description":"","type":""},"webData":[{"webAddress":"","webAddressId":""}],"webDataExemption":{"reason":""}}'
};

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}}/businessLines',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "capability": "",\n  "industryCode": "",\n  "legalEntityId": "",\n  "salesChannels": [],\n  "service": "",\n  "sourceOfFunds": {\n    "acquiringBusinessLineId": "",\n    "adyenProcessedFunds": false,\n    "description": "",\n    "type": ""\n  },\n  "webData": [\n    {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  ],\n  "webDataExemption": {\n    "reason": ""\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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/businessLines")
  .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/businessLines',
  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({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [{webAddress: '', webAddressId: ''}],
  webDataExemption: {reason: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/businessLines',
  headers: {'content-type': 'application/json'},
  body: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  },
  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}}/businessLines');

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

req.type('json');
req.send({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [
    {
      webAddress: '',
      webAddressId: ''
    }
  ],
  webDataExemption: {
    reason: ''
  }
});

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}}/businessLines',
  headers: {'content-type': 'application/json'},
  data: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  }
};

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

const url = '{{baseUrl}}/businessLines';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"capability":"","industryCode":"","legalEntityId":"","salesChannels":[],"service":"","sourceOfFunds":{"acquiringBusinessLineId":"","adyenProcessedFunds":false,"description":"","type":""},"webData":[{"webAddress":"","webAddressId":""}],"webDataExemption":{"reason":""}}'
};

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 = @{ @"capability": @"",
                              @"industryCode": @"",
                              @"legalEntityId": @"",
                              @"salesChannels": @[  ],
                              @"service": @"",
                              @"sourceOfFunds": @{ @"acquiringBusinessLineId": @"", @"adyenProcessedFunds": @NO, @"description": @"", @"type": @"" },
                              @"webData": @[ @{ @"webAddress": @"", @"webAddressId": @"" } ],
                              @"webDataExemption": @{ @"reason": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/businessLines"]
                                                       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}}/businessLines" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/businessLines",
  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([
    'capability' => '',
    'industryCode' => '',
    'legalEntityId' => '',
    'salesChannels' => [
        
    ],
    'service' => '',
    'sourceOfFunds' => [
        'acquiringBusinessLineId' => '',
        'adyenProcessedFunds' => null,
        'description' => '',
        'type' => ''
    ],
    'webData' => [
        [
                'webAddress' => '',
                'webAddressId' => ''
        ]
    ],
    'webDataExemption' => [
        'reason' => ''
    ]
  ]),
  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}}/businessLines', [
  'body' => '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'capability' => '',
  'industryCode' => '',
  'legalEntityId' => '',
  'salesChannels' => [
    
  ],
  'service' => '',
  'sourceOfFunds' => [
    'acquiringBusinessLineId' => '',
    'adyenProcessedFunds' => null,
    'description' => '',
    'type' => ''
  ],
  'webData' => [
    [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'webDataExemption' => [
    'reason' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'capability' => '',
  'industryCode' => '',
  'legalEntityId' => '',
  'salesChannels' => [
    
  ],
  'service' => '',
  'sourceOfFunds' => [
    'acquiringBusinessLineId' => '',
    'adyenProcessedFunds' => null,
    'description' => '',
    'type' => ''
  ],
  'webData' => [
    [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'webDataExemption' => [
    'reason' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/businessLines');
$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}}/businessLines' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/businessLines' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
import http.client

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

payload = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/businessLines"

payload = {
    "capability": "",
    "industryCode": "",
    "legalEntityId": "",
    "salesChannels": [],
    "service": "",
    "sourceOfFunds": {
        "acquiringBusinessLineId": "",
        "adyenProcessedFunds": False,
        "description": "",
        "type": ""
    },
    "webData": [
        {
            "webAddress": "",
            "webAddressId": ""
        }
    ],
    "webDataExemption": { "reason": "" }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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}}/businessLines")

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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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/businessLines') do |req|
  req.body = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "capability": "",
        "industryCode": "",
        "legalEntityId": "",
        "salesChannels": (),
        "service": "",
        "sourceOfFunds": json!({
            "acquiringBusinessLineId": "",
            "adyenProcessedFunds": false,
            "description": "",
            "type": ""
        }),
        "webData": (
            json!({
                "webAddress": "",
                "webAddressId": ""
            })
        ),
        "webDataExemption": json!({"reason": ""})
    });

    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}}/businessLines \
  --header 'content-type: application/json' \
  --data '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
echo '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}' |  \
  http POST {{baseUrl}}/businessLines \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "capability": "",\n  "industryCode": "",\n  "legalEntityId": "",\n  "salesChannels": [],\n  "service": "",\n  "sourceOfFunds": {\n    "acquiringBusinessLineId": "",\n    "adyenProcessedFunds": false,\n    "description": "",\n    "type": ""\n  },\n  "webData": [\n    {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  ],\n  "webDataExemption": {\n    "reason": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/businessLines
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": [
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  ],
  "webData": [
    [
      "webAddress": "",
      "webAddressId": ""
    ]
  ],
  "webDataExemption": ["reason": ""]
] as [String : Any]

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

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

{
  "id": "SE322KT223222D5FJ7TJN2986",
  "industryCode": "4531",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "service": "banking",
  "sourceOfFunds": {
    "adyenProcessedFunds": false,
    "description": "Funds from my flower shop business",
    "type": "business"
  },
  "webData": [
    {
      "webAddress": "https://www.adyen.com",
      "webAddressId": "SE322JV223222F5H4CQGS77V4"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "id": "SE322KT223222D5FJ7TJN2986",
  "industryCode": "339E",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "salesChannels": [
    "eCommerce",
    "ecomMoto"
  ],
  "service": "paymentProcessing",
  "webData": [
    {
      "webAddress": "https://yoururl.com",
      "webAddressId": "SE654AC923222F5H4CQGS77V4"
    }
  ]
}
DELETE Delete a business line
{{baseUrl}}/businessLines/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/businessLines/:id");

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

(client/delete "{{baseUrl}}/businessLines/:id")
require "http/client"

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

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

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

func main() {

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

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

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

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

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

}
DELETE /baseUrl/businessLines/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/businessLines/:id"))
    .method("DELETE", 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}}/businessLines/:id")
  .delete(null)
  .build();

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/businessLines/:id'};

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/businessLines/:id")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/businessLines/: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: 'DELETE', url: '{{baseUrl}}/businessLines/:id'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/businessLines/: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: 'DELETE', url: '{{baseUrl}}/businessLines/:id'};

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

const url = '{{baseUrl}}/businessLines/:id';
const options = {method: 'DELETE'};

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}}/businessLines/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/businessLines/:id")

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

response = conn.delete('/baseUrl/businessLines/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

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

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

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

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()
GET Get a business line
{{baseUrl}}/businessLines/: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}}/businessLines/:id");

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

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

url = "{{baseUrl}}/businessLines/: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}}/businessLines/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/businessLines/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/businessLines/: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/businessLines/:id HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/businessLines/: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}}/businessLines/:id',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/businessLines/: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}}/businessLines/: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}}/businessLines/: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}}/businessLines/:id'};

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

const url = '{{baseUrl}}/businessLines/: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}}/businessLines/: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}}/businessLines/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/businessLines/: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}}/businessLines/:id');

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/businessLines/: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/businessLines/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/businessLines/: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}}/businessLines/:id
http GET {{baseUrl}}/businessLines/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/businessLines/:id
import Foundation

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

{
  "id": "SE322KH223222F5GV2SQ924F6",
  "industryCode": "4531",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "service": "banking",
  "sourceOfFunds": {
    "adyenProcessedFunds": false,
    "description": "Funds from my flower shop business",
    "type": "business"
  },
  "webData": [
    {
      "webAddress": "https://www.adyen.com",
      "webAddressId": "SE322JV223222J5H8V87B3DHN"
    }
  ]
}
PATCH Update a business line
{{baseUrl}}/businessLines/:id
QUERY PARAMS

id
BODY json

{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/businessLines/:id");

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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}");

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

(client/patch "{{baseUrl}}/businessLines/:id" {:content-type :json
                                                               :form-params {:capability ""
                                                                             :industryCode ""
                                                                             :legalEntityId ""
                                                                             :salesChannels []
                                                                             :service ""
                                                                             :sourceOfFunds {:acquiringBusinessLineId ""
                                                                                             :adyenProcessedFunds false
                                                                                             :description ""
                                                                                             :type ""}
                                                                             :webData [{:webAddress ""
                                                                                        :webAddressId ""}]
                                                                             :webDataExemption {:reason ""}}})
require "http/client"

url = "{{baseUrl}}/businessLines/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/businessLines/:id"),
    Content = new StringContent("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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}}/businessLines/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/businessLines/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 367

{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/businessLines/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/businessLines/:id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/businessLines/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/businessLines/:id")
  .header("content-type", "application/json")
  .body("{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [
    {
      webAddress: '',
      webAddressId: ''
    }
  ],
  webDataExemption: {
    reason: ''
  }
});

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

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

xhr.open('PATCH', '{{baseUrl}}/businessLines/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/businessLines/:id',
  headers: {'content-type': 'application/json'},
  data: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/businessLines/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"capability":"","industryCode":"","legalEntityId":"","salesChannels":[],"service":"","sourceOfFunds":{"acquiringBusinessLineId":"","adyenProcessedFunds":false,"description":"","type":""},"webData":[{"webAddress":"","webAddressId":""}],"webDataExemption":{"reason":""}}'
};

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}}/businessLines/:id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "capability": "",\n  "industryCode": "",\n  "legalEntityId": "",\n  "salesChannels": [],\n  "service": "",\n  "sourceOfFunds": {\n    "acquiringBusinessLineId": "",\n    "adyenProcessedFunds": false,\n    "description": "",\n    "type": ""\n  },\n  "webData": [\n    {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  ],\n  "webDataExemption": {\n    "reason": ""\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  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/businessLines/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/businessLines/:id',
  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({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [{webAddress: '', webAddressId: ''}],
  webDataExemption: {reason: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/businessLines/:id',
  headers: {'content-type': 'application/json'},
  body: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/businessLines/:id');

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

req.type('json');
req.send({
  capability: '',
  industryCode: '',
  legalEntityId: '',
  salesChannels: [],
  service: '',
  sourceOfFunds: {
    acquiringBusinessLineId: '',
    adyenProcessedFunds: false,
    description: '',
    type: ''
  },
  webData: [
    {
      webAddress: '',
      webAddressId: ''
    }
  ],
  webDataExemption: {
    reason: ''
  }
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/businessLines/:id',
  headers: {'content-type': 'application/json'},
  data: {
    capability: '',
    industryCode: '',
    legalEntityId: '',
    salesChannels: [],
    service: '',
    sourceOfFunds: {
      acquiringBusinessLineId: '',
      adyenProcessedFunds: false,
      description: '',
      type: ''
    },
    webData: [{webAddress: '', webAddressId: ''}],
    webDataExemption: {reason: ''}
  }
};

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

const url = '{{baseUrl}}/businessLines/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"capability":"","industryCode":"","legalEntityId":"","salesChannels":[],"service":"","sourceOfFunds":{"acquiringBusinessLineId":"","adyenProcessedFunds":false,"description":"","type":""},"webData":[{"webAddress":"","webAddressId":""}],"webDataExemption":{"reason":""}}'
};

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 = @{ @"capability": @"",
                              @"industryCode": @"",
                              @"legalEntityId": @"",
                              @"salesChannels": @[  ],
                              @"service": @"",
                              @"sourceOfFunds": @{ @"acquiringBusinessLineId": @"", @"adyenProcessedFunds": @NO, @"description": @"", @"type": @"" },
                              @"webData": @[ @{ @"webAddress": @"", @"webAddressId": @"" } ],
                              @"webDataExemption": @{ @"reason": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/businessLines/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/businessLines/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/businessLines/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'capability' => '',
    'industryCode' => '',
    'legalEntityId' => '',
    'salesChannels' => [
        
    ],
    'service' => '',
    'sourceOfFunds' => [
        'acquiringBusinessLineId' => '',
        'adyenProcessedFunds' => null,
        'description' => '',
        'type' => ''
    ],
    'webData' => [
        [
                'webAddress' => '',
                'webAddressId' => ''
        ]
    ],
    'webDataExemption' => [
        'reason' => ''
    ]
  ]),
  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('PATCH', '{{baseUrl}}/businessLines/:id', [
  'body' => '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/businessLines/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'capability' => '',
  'industryCode' => '',
  'legalEntityId' => '',
  'salesChannels' => [
    
  ],
  'service' => '',
  'sourceOfFunds' => [
    'acquiringBusinessLineId' => '',
    'adyenProcessedFunds' => null,
    'description' => '',
    'type' => ''
  ],
  'webData' => [
    [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'webDataExemption' => [
    'reason' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'capability' => '',
  'industryCode' => '',
  'legalEntityId' => '',
  'salesChannels' => [
    
  ],
  'service' => '',
  'sourceOfFunds' => [
    'acquiringBusinessLineId' => '',
    'adyenProcessedFunds' => null,
    'description' => '',
    'type' => ''
  ],
  'webData' => [
    [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'webDataExemption' => [
    'reason' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/businessLines/:id');
$request->setRequestMethod('PATCH');
$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}}/businessLines/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/businessLines/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
import http.client

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

payload = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"

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

conn.request("PATCH", "/baseUrl/businessLines/:id", payload, headers)

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

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

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

payload = {
    "capability": "",
    "industryCode": "",
    "legalEntityId": "",
    "salesChannels": [],
    "service": "",
    "sourceOfFunds": {
        "acquiringBusinessLineId": "",
        "adyenProcessedFunds": False,
        "description": "",
        "type": ""
    },
    "webData": [
        {
            "webAddress": "",
            "webAddressId": ""
        }
    ],
    "webDataExemption": { "reason": "" }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\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.patch('/baseUrl/businessLines/:id') do |req|
  req.body = "{\n  \"capability\": \"\",\n  \"industryCode\": \"\",\n  \"legalEntityId\": \"\",\n  \"salesChannels\": [],\n  \"service\": \"\",\n  \"sourceOfFunds\": {\n    \"acquiringBusinessLineId\": \"\",\n    \"adyenProcessedFunds\": false,\n    \"description\": \"\",\n    \"type\": \"\"\n  },\n  \"webData\": [\n    {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  ],\n  \"webDataExemption\": {\n    \"reason\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

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

    let payload = json!({
        "capability": "",
        "industryCode": "",
        "legalEntityId": "",
        "salesChannels": (),
        "service": "",
        "sourceOfFunds": json!({
            "acquiringBusinessLineId": "",
            "adyenProcessedFunds": false,
            "description": "",
            "type": ""
        }),
        "webData": (
            json!({
                "webAddress": "",
                "webAddressId": ""
            })
        ),
        "webDataExemption": json!({"reason": ""})
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/businessLines/:id \
  --header 'content-type: application/json' \
  --data '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}'
echo '{
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": {
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  },
  "webData": [
    {
      "webAddress": "",
      "webAddressId": ""
    }
  ],
  "webDataExemption": {
    "reason": ""
  }
}' |  \
  http PATCH {{baseUrl}}/businessLines/:id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "capability": "",\n  "industryCode": "",\n  "legalEntityId": "",\n  "salesChannels": [],\n  "service": "",\n  "sourceOfFunds": {\n    "acquiringBusinessLineId": "",\n    "adyenProcessedFunds": false,\n    "description": "",\n    "type": ""\n  },\n  "webData": [\n    {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  ],\n  "webDataExemption": {\n    "reason": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/businessLines/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "capability": "",
  "industryCode": "",
  "legalEntityId": "",
  "salesChannels": [],
  "service": "",
  "sourceOfFunds": [
    "acquiringBusinessLineId": "",
    "adyenProcessedFunds": false,
    "description": "",
    "type": ""
  ],
  "webData": [
    [
      "webAddress": "",
      "webAddressId": ""
    ]
  ],
  "webDataExemption": ["reason": ""]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/businessLines/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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

{
  "id": "SE322JV223222F5GVGMLNB83F",
  "industryCode": "55",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "service": "banking",
  "sourceOfFunds": {
    "adyenProcessedFunds": false,
    "description": "Funds from my flower shop business",
    "type": "business"
  },
  "webData": [
    {
      "webAddress": "https://www.example.com",
      "webAddressId": "SE966LI345672J5H8V87B3FGH"
    }
  ]
}
DELETE Delete a document
{{baseUrl}}/documents/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/documents/:id");

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

(client/delete "{{baseUrl}}/documents/:id")
require "http/client"

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

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

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

func main() {

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

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

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

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

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

}
DELETE /baseUrl/documents/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/documents/:id"))
    .method("DELETE", 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}}/documents/:id")
  .delete(null)
  .build();

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/documents/:id'};

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/documents/:id")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/documents/: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: 'DELETE', url: '{{baseUrl}}/documents/:id'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/documents/: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: 'DELETE', url: '{{baseUrl}}/documents/:id'};

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

const url = '{{baseUrl}}/documents/:id';
const options = {method: 'DELETE'};

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}}/documents/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/documents/:id")

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

response = conn.delete('/baseUrl/documents/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

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

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

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

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()
GET Get a document
{{baseUrl}}/documents/: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}}/documents/:id");

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

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

url = "{{baseUrl}}/documents/: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}}/documents/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/documents/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/documents/: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/documents/:id HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/documents/: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}}/documents/:id',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/documents/: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}}/documents/: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}}/documents/: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}}/documents/:id'};

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

const url = '{{baseUrl}}/documents/: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}}/documents/: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}}/documents/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/documents/: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}}/documents/:id');

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/documents/: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/documents/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/documents/: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}}/documents/:id
http GET {{baseUrl}}/documents/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/documents/:id
import Foundation

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

{
  "attachments": [
    {
      "content": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBv+f/ub0j6JPRX+E3EmC=="
    }
  ],
  "description": "Registration doc for Example Company",
  "fileName": "Registration doc for Example Company",
  "id": "SE322JV223222F5GV2N9L8GDK",
  "owner": {
    "id": "YOUR_LEGAL_ENTITY",
    "type": "legalEntity"
  },
  "type": "registrationDocument"
}
PATCH Update a document
{{baseUrl}}/documents/:id
QUERY PARAMS

id
BODY json

{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/documents/:id");

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  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}");

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

(client/patch "{{baseUrl}}/documents/:id" {:content-type :json
                                                           :form-params {:attachment {:content ""
                                                                                      :contentType ""
                                                                                      :filename ""
                                                                                      :pageName ""
                                                                                      :pageType ""}
                                                                         :attachments [{}]
                                                                         :creationDate ""
                                                                         :description ""
                                                                         :expiryDate ""
                                                                         :fileName ""
                                                                         :id ""
                                                                         :issuerCountry ""
                                                                         :issuerState ""
                                                                         :modificationDate ""
                                                                         :number ""
                                                                         :owner {:id ""
                                                                                 :type ""}
                                                                         :type ""}})
require "http/client"

url = "{{baseUrl}}/documents/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/documents/:id"),
    Content = new StringContent("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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}}/documents/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/documents/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 397

{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/documents/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/documents/:id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/documents/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/documents/:id")
  .header("content-type", "application/json")
  .body("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attachment: {
    content: '',
    contentType: '',
    filename: '',
    pageName: '',
    pageType: ''
  },
  attachments: [
    {}
  ],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {
    id: '',
    type: ''
  },
  type: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/documents/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/documents/:id',
  headers: {'content-type': 'application/json'},
  data: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/documents/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"content":"","contentType":"","filename":"","pageName":"","pageType":""},"attachments":[{}],"creationDate":"","description":"","expiryDate":"","fileName":"","id":"","issuerCountry":"","issuerState":"","modificationDate":"","number":"","owner":{"id":"","type":""},"type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/documents/:id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attachment": {\n    "content": "",\n    "contentType": "",\n    "filename": "",\n    "pageName": "",\n    "pageType": ""\n  },\n  "attachments": [\n    {}\n  ],\n  "creationDate": "",\n  "description": "",\n  "expiryDate": "",\n  "fileName": "",\n  "id": "",\n  "issuerCountry": "",\n  "issuerState": "",\n  "modificationDate": "",\n  "number": "",\n  "owner": {\n    "id": "",\n    "type": ""\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/documents/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/documents/:id',
  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({
  attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
  attachments: [{}],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {id: '', type: ''},
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/documents/:id',
  headers: {'content-type': 'application/json'},
  body: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/documents/:id');

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

req.type('json');
req.send({
  attachment: {
    content: '',
    contentType: '',
    filename: '',
    pageName: '',
    pageType: ''
  },
  attachments: [
    {}
  ],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {
    id: '',
    type: ''
  },
  type: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/documents/:id',
  headers: {'content-type': 'application/json'},
  data: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  }
};

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

const url = '{{baseUrl}}/documents/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"content":"","contentType":"","filename":"","pageName":"","pageType":""},"attachments":[{}],"creationDate":"","description":"","expiryDate":"","fileName":"","id":"","issuerCountry":"","issuerState":"","modificationDate":"","number":"","owner":{"id":"","type":""},"type":""}'
};

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 = @{ @"attachment": @{ @"content": @"", @"contentType": @"", @"filename": @"", @"pageName": @"", @"pageType": @"" },
                              @"attachments": @[ @{  } ],
                              @"creationDate": @"",
                              @"description": @"",
                              @"expiryDate": @"",
                              @"fileName": @"",
                              @"id": @"",
                              @"issuerCountry": @"",
                              @"issuerState": @"",
                              @"modificationDate": @"",
                              @"number": @"",
                              @"owner": @{ @"id": @"", @"type": @"" },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/documents/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/documents/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/documents/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'attachment' => [
        'content' => '',
        'contentType' => '',
        'filename' => '',
        'pageName' => '',
        'pageType' => ''
    ],
    'attachments' => [
        [
                
        ]
    ],
    'creationDate' => '',
    'description' => '',
    'expiryDate' => '',
    'fileName' => '',
    'id' => '',
    'issuerCountry' => '',
    'issuerState' => '',
    'modificationDate' => '',
    'number' => '',
    'owner' => [
        'id' => '',
        'type' => ''
    ],
    'type' => ''
  ]),
  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('PATCH', '{{baseUrl}}/documents/:id', [
  'body' => '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/documents/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attachment' => [
    'content' => '',
    'contentType' => '',
    'filename' => '',
    'pageName' => '',
    'pageType' => ''
  ],
  'attachments' => [
    [
        
    ]
  ],
  'creationDate' => '',
  'description' => '',
  'expiryDate' => '',
  'fileName' => '',
  'id' => '',
  'issuerCountry' => '',
  'issuerState' => '',
  'modificationDate' => '',
  'number' => '',
  'owner' => [
    'id' => '',
    'type' => ''
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attachment' => [
    'content' => '',
    'contentType' => '',
    'filename' => '',
    'pageName' => '',
    'pageType' => ''
  ],
  'attachments' => [
    [
        
    ]
  ],
  'creationDate' => '',
  'description' => '',
  'expiryDate' => '',
  'fileName' => '',
  'id' => '',
  'issuerCountry' => '',
  'issuerState' => '',
  'modificationDate' => '',
  'number' => '',
  'owner' => [
    'id' => '',
    'type' => ''
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/documents/:id');
$request->setRequestMethod('PATCH');
$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}}/documents/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/documents/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/documents/:id", payload, headers)

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

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

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

payload = {
    "attachment": {
        "content": "",
        "contentType": "",
        "filename": "",
        "pageName": "",
        "pageType": ""
    },
    "attachments": [{}],
    "creationDate": "",
    "description": "",
    "expiryDate": "",
    "fileName": "",
    "id": "",
    "issuerCountry": "",
    "issuerState": "",
    "modificationDate": "",
    "number": "",
    "owner": {
        "id": "",
        "type": ""
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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.patch('/baseUrl/documents/:id') do |req|
  req.body = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

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

    let payload = json!({
        "attachment": json!({
            "content": "",
            "contentType": "",
            "filename": "",
            "pageName": "",
            "pageType": ""
        }),
        "attachments": (json!({})),
        "creationDate": "",
        "description": "",
        "expiryDate": "",
        "fileName": "",
        "id": "",
        "issuerCountry": "",
        "issuerState": "",
        "modificationDate": "",
        "number": "",
        "owner": json!({
            "id": "",
            "type": ""
        }),
        "type": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/documents/:id \
  --header 'content-type: application/json' \
  --data '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
echo '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}' |  \
  http PATCH {{baseUrl}}/documents/:id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "attachment": {\n    "content": "",\n    "contentType": "",\n    "filename": "",\n    "pageName": "",\n    "pageType": ""\n  },\n  "attachments": [\n    {}\n  ],\n  "creationDate": "",\n  "description": "",\n  "expiryDate": "",\n  "fileName": "",\n  "id": "",\n  "issuerCountry": "",\n  "issuerState": "",\n  "modificationDate": "",\n  "number": "",\n  "owner": {\n    "id": "",\n    "type": ""\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/documents/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attachment": [
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  ],
  "attachments": [[]],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": [
    "id": "",
    "type": ""
  ],
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/documents/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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

{
  "attachments": [
    {
      "content": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBv+f/ub0j6JPRX+E3EmC=="
    }
  ],
  "description": "Proof of industry for Example Company",
  "fileName": "Proof of industry for Example Company",
  "id": "SE322JV223222F5GV2N9L8GDK",
  "owner": {
    "id": "YOUR_LEGAL_ENTITY",
    "type": "legalEntity"
  },
  "type": "proofOfIndustry"
}
POST Upload a document for verification checks
{{baseUrl}}/documents
BODY json

{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/documents" {:content-type :json
                                                      :form-params {:attachment {:content ""
                                                                                 :contentType ""
                                                                                 :filename ""
                                                                                 :pageName ""
                                                                                 :pageType ""}
                                                                    :attachments [{}]
                                                                    :creationDate ""
                                                                    :description ""
                                                                    :expiryDate ""
                                                                    :fileName ""
                                                                    :id ""
                                                                    :issuerCountry ""
                                                                    :issuerState ""
                                                                    :modificationDate ""
                                                                    :number ""
                                                                    :owner {:id ""
                                                                            :type ""}
                                                                    :type ""}})
require "http/client"

url = "{{baseUrl}}/documents"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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}}/documents"),
    Content = new StringContent("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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}}/documents");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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/documents HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 397

{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/documents")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/documents"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/documents")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/documents")
  .header("content-type", "application/json")
  .body("{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attachment: {
    content: '',
    contentType: '',
    filename: '',
    pageName: '',
    pageType: ''
  },
  attachments: [
    {}
  ],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {
    id: '',
    type: ''
  },
  type: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/documents',
  headers: {'content-type': 'application/json'},
  data: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"content":"","contentType":"","filename":"","pageName":"","pageType":""},"attachments":[{}],"creationDate":"","description":"","expiryDate":"","fileName":"","id":"","issuerCountry":"","issuerState":"","modificationDate":"","number":"","owner":{"id":"","type":""},"type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/documents',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attachment": {\n    "content": "",\n    "contentType": "",\n    "filename": "",\n    "pageName": "",\n    "pageType": ""\n  },\n  "attachments": [\n    {}\n  ],\n  "creationDate": "",\n  "description": "",\n  "expiryDate": "",\n  "fileName": "",\n  "id": "",\n  "issuerCountry": "",\n  "issuerState": "",\n  "modificationDate": "",\n  "number": "",\n  "owner": {\n    "id": "",\n    "type": ""\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/documents")
  .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/documents',
  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({
  attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
  attachments: [{}],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {id: '', type: ''},
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/documents',
  headers: {'content-type': 'application/json'},
  body: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  attachment: {
    content: '',
    contentType: '',
    filename: '',
    pageName: '',
    pageType: ''
  },
  attachments: [
    {}
  ],
  creationDate: '',
  description: '',
  expiryDate: '',
  fileName: '',
  id: '',
  issuerCountry: '',
  issuerState: '',
  modificationDate: '',
  number: '',
  owner: {
    id: '',
    type: ''
  },
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/documents',
  headers: {'content-type': 'application/json'},
  data: {
    attachment: {content: '', contentType: '', filename: '', pageName: '', pageType: ''},
    attachments: [{}],
    creationDate: '',
    description: '',
    expiryDate: '',
    fileName: '',
    id: '',
    issuerCountry: '',
    issuerState: '',
    modificationDate: '',
    number: '',
    owner: {id: '', type: ''},
    type: ''
  }
};

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

const url = '{{baseUrl}}/documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"content":"","contentType":"","filename":"","pageName":"","pageType":""},"attachments":[{}],"creationDate":"","description":"","expiryDate":"","fileName":"","id":"","issuerCountry":"","issuerState":"","modificationDate":"","number":"","owner":{"id":"","type":""},"type":""}'
};

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 = @{ @"attachment": @{ @"content": @"", @"contentType": @"", @"filename": @"", @"pageName": @"", @"pageType": @"" },
                              @"attachments": @[ @{  } ],
                              @"creationDate": @"",
                              @"description": @"",
                              @"expiryDate": @"",
                              @"fileName": @"",
                              @"id": @"",
                              @"issuerCountry": @"",
                              @"issuerState": @"",
                              @"modificationDate": @"",
                              @"number": @"",
                              @"owner": @{ @"id": @"", @"type": @"" },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/documents"]
                                                       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}}/documents" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/documents",
  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([
    'attachment' => [
        'content' => '',
        'contentType' => '',
        'filename' => '',
        'pageName' => '',
        'pageType' => ''
    ],
    'attachments' => [
        [
                
        ]
    ],
    'creationDate' => '',
    'description' => '',
    'expiryDate' => '',
    'fileName' => '',
    'id' => '',
    'issuerCountry' => '',
    'issuerState' => '',
    'modificationDate' => '',
    'number' => '',
    'owner' => [
        'id' => '',
        'type' => ''
    ],
    'type' => ''
  ]),
  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}}/documents', [
  'body' => '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attachment' => [
    'content' => '',
    'contentType' => '',
    'filename' => '',
    'pageName' => '',
    'pageType' => ''
  ],
  'attachments' => [
    [
        
    ]
  ],
  'creationDate' => '',
  'description' => '',
  'expiryDate' => '',
  'fileName' => '',
  'id' => '',
  'issuerCountry' => '',
  'issuerState' => '',
  'modificationDate' => '',
  'number' => '',
  'owner' => [
    'id' => '',
    'type' => ''
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attachment' => [
    'content' => '',
    'contentType' => '',
    'filename' => '',
    'pageName' => '',
    'pageType' => ''
  ],
  'attachments' => [
    [
        
    ]
  ],
  'creationDate' => '',
  'description' => '',
  'expiryDate' => '',
  'fileName' => '',
  'id' => '',
  'issuerCountry' => '',
  'issuerState' => '',
  'modificationDate' => '',
  'number' => '',
  'owner' => [
    'id' => '',
    'type' => ''
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/documents');
$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}}/documents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/documents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/documents"

payload = {
    "attachment": {
        "content": "",
        "contentType": "",
        "filename": "",
        "pageName": "",
        "pageType": ""
    },
    "attachments": [{}],
    "creationDate": "",
    "description": "",
    "expiryDate": "",
    "fileName": "",
    "id": "",
    "issuerCountry": "",
    "issuerState": "",
    "modificationDate": "",
    "number": "",
    "owner": {
        "id": "",
        "type": ""
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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}}/documents")

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  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\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/documents') do |req|
  req.body = "{\n  \"attachment\": {\n    \"content\": \"\",\n    \"contentType\": \"\",\n    \"filename\": \"\",\n    \"pageName\": \"\",\n    \"pageType\": \"\"\n  },\n  \"attachments\": [\n    {}\n  ],\n  \"creationDate\": \"\",\n  \"description\": \"\",\n  \"expiryDate\": \"\",\n  \"fileName\": \"\",\n  \"id\": \"\",\n  \"issuerCountry\": \"\",\n  \"issuerState\": \"\",\n  \"modificationDate\": \"\",\n  \"number\": \"\",\n  \"owner\": {\n    \"id\": \"\",\n    \"type\": \"\"\n  },\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "attachment": json!({
            "content": "",
            "contentType": "",
            "filename": "",
            "pageName": "",
            "pageType": ""
        }),
        "attachments": (json!({})),
        "creationDate": "",
        "description": "",
        "expiryDate": "",
        "fileName": "",
        "id": "",
        "issuerCountry": "",
        "issuerState": "",
        "modificationDate": "",
        "number": "",
        "owner": json!({
            "id": "",
            "type": ""
        }),
        "type": ""
    });

    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}}/documents \
  --header 'content-type: application/json' \
  --data '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}'
echo '{
  "attachment": {
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  },
  "attachments": [
    {}
  ],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": {
    "id": "",
    "type": ""
  },
  "type": ""
}' |  \
  http POST {{baseUrl}}/documents \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attachment": {\n    "content": "",\n    "contentType": "",\n    "filename": "",\n    "pageName": "",\n    "pageType": ""\n  },\n  "attachments": [\n    {}\n  ],\n  "creationDate": "",\n  "description": "",\n  "expiryDate": "",\n  "fileName": "",\n  "id": "",\n  "issuerCountry": "",\n  "issuerState": "",\n  "modificationDate": "",\n  "number": "",\n  "owner": {\n    "id": "",\n    "type": ""\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/documents
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attachment": [
    "content": "",
    "contentType": "",
    "filename": "",
    "pageName": "",
    "pageType": ""
  ],
  "attachments": [[]],
  "creationDate": "",
  "description": "",
  "expiryDate": "",
  "fileName": "",
  "id": "",
  "issuerCountry": "",
  "issuerState": "",
  "modificationDate": "",
  "number": "",
  "owner": [
    "id": "",
    "type": ""
  ],
  "type": ""
] as [String : Any]

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

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

{
  "attachments": [
    {
      "content": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBv+f/ub0j6JPRX+E3EmC=="
    }
  ],
  "description": "Registration doc for Example Company",
  "fileName": "Registration doc for Example Company",
  "id": "SE322JV223222F5GV2N9L8GDK",
  "owner": {
    "id": "YOUR_LEGAL_ENTITY",
    "type": "legalEntity"
  },
  "type": "registrationDocument"
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/onboardingLinks");

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  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}");

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

(client/post "{{baseUrl}}/legalEntities/:id/onboardingLinks" {:content-type :json
                                                                              :form-params {:locale ""
                                                                                            :redirectUrl ""
                                                                                            :settings {}
                                                                                            :themeId ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/onboardingLinks"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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}}/legalEntities/:id/onboardingLinks"),
    Content = new StringContent("{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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}}/legalEntities/:id/onboardingLinks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/onboardingLinks"

	payload := strings.NewReader("{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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/legalEntities/:id/onboardingLinks HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 74

{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/legalEntities/:id/onboardingLinks")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/onboardingLinks"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/onboardingLinks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/legalEntities/:id/onboardingLinks")
  .header("content-type", "application/json")
  .body("{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  locale: '',
  redirectUrl: '',
  settings: {},
  themeId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/legalEntities/:id/onboardingLinks');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/onboardingLinks',
  headers: {'content-type': 'application/json'},
  data: {locale: '', redirectUrl: '', settings: {}, themeId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/onboardingLinks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"locale":"","redirectUrl":"","settings":{},"themeId":""}'
};

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}}/legalEntities/:id/onboardingLinks',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "locale": "",\n  "redirectUrl": "",\n  "settings": {},\n  "themeId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/onboardingLinks")
  .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/legalEntities/:id/onboardingLinks',
  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({locale: '', redirectUrl: '', settings: {}, themeId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/onboardingLinks',
  headers: {'content-type': 'application/json'},
  body: {locale: '', redirectUrl: '', settings: {}, themeId: ''},
  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}}/legalEntities/:id/onboardingLinks');

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

req.type('json');
req.send({
  locale: '',
  redirectUrl: '',
  settings: {},
  themeId: ''
});

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}}/legalEntities/:id/onboardingLinks',
  headers: {'content-type': 'application/json'},
  data: {locale: '', redirectUrl: '', settings: {}, themeId: ''}
};

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

const url = '{{baseUrl}}/legalEntities/:id/onboardingLinks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"locale":"","redirectUrl":"","settings":{},"themeId":""}'
};

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 = @{ @"locale": @"",
                              @"redirectUrl": @"",
                              @"settings": @{  },
                              @"themeId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id/onboardingLinks"]
                                                       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}}/legalEntities/:id/onboardingLinks" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/onboardingLinks",
  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([
    'locale' => '',
    'redirectUrl' => '',
    'settings' => [
        
    ],
    'themeId' => ''
  ]),
  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}}/legalEntities/:id/onboardingLinks', [
  'body' => '{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/onboardingLinks');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'locale' => '',
  'redirectUrl' => '',
  'settings' => [
    
  ],
  'themeId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'locale' => '',
  'redirectUrl' => '',
  'settings' => [
    
  ],
  'themeId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id/onboardingLinks');
$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}}/legalEntities/:id/onboardingLinks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id/onboardingLinks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}'
import http.client

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

payload = "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/legalEntities/:id/onboardingLinks", payload, headers)

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

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

url = "{{baseUrl}}/legalEntities/:id/onboardingLinks"

payload = {
    "locale": "",
    "redirectUrl": "",
    "settings": {},
    "themeId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/legalEntities/:id/onboardingLinks"

payload <- "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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}}/legalEntities/:id/onboardingLinks")

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  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\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/legalEntities/:id/onboardingLinks') do |req|
  req.body = "{\n  \"locale\": \"\",\n  \"redirectUrl\": \"\",\n  \"settings\": {},\n  \"themeId\": \"\"\n}"
end

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

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

    let payload = json!({
        "locale": "",
        "redirectUrl": "",
        "settings": json!({}),
        "themeId": ""
    });

    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}}/legalEntities/:id/onboardingLinks \
  --header 'content-type: application/json' \
  --data '{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}'
echo '{
  "locale": "",
  "redirectUrl": "",
  "settings": {},
  "themeId": ""
}' |  \
  http POST {{baseUrl}}/legalEntities/:id/onboardingLinks \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "locale": "",\n  "redirectUrl": "",\n  "settings": {},\n  "themeId": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/onboardingLinks
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "locale": "",
  "redirectUrl": "",
  "settings": [],
  "themeId": ""
] as [String : Any]

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

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

{
  "url": "https://balanceplatform-test.adyen.com/balanceplatform/uo/form/xtl-...?signature=..&cd=..&redirectUrl=https%3A%2F%2Fyour.redirect-url.com%2F&expiry=1667226404807&locale=nl-NL"
}
GET Get a list of hosted onboarding page themes
{{baseUrl}}/themes
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/themes"

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}}/themes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/themes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

	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/themes HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/themes';
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}}/themes',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/themes',
  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}}/themes'};

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

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

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

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

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

const url = '{{baseUrl}}/themes';
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}}/themes"]
                                                       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}}/themes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/themes",
  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}}/themes');

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/themes"

response = requests.get(url)

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

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

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

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

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

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/themes') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/themes
http GET {{baseUrl}}/themes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/themes
import Foundation

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

{
  "themes": [
    {
      "createdAt": "2022-01-20T00:00:00+01:00",
      "description": "Dark colors theme",
      "id": "ONBT422JV223222D5FGJ77B9C52WNN",
      "properties": {
        "backgroundColor": "#000000",
        "backgroundImage": "ONBA422KH223222D5G8VG2TG9S5ZBH",
        "faqPage": "https://docs.adyen.com/hosted-onboarding-faqs",
        "logo": "ONBA422JV223222D5G8VG2T8JV39GV",
        "pageLayout": "withBackground",
        "pageTitle": "Example onboarding dark colors",
        "supportPage": "https://www.adyen.com/contact"
      },
      "updatedAt": "2022-08-25T00:00:00+02:00"
    },
    {
      "createdAt": "2022-06-22T00:00:00+02:00",
      "description": "Light colors theme",
      "id": "ONBT422KH223222D5G82M968PB46HR",
      "properties": {
        "backgroundColor": "#FFFFFF",
        "backgroundImage": "ONBA422JV223222D5G82M96F6P2VTV",
        "faqPage": "https://docs.adyen.com/hosted-onboarding-faqs",
        "logo": "ONBA422JV223222D5FWC4TK25S3DQW",
        "pageLayout": "withBackground",
        "pageTitle": "Example onboarding light colors",
        "privacyStatementPage": "https://www.adyen.com/legal/terms-and-conditions",
        "supportPage": "https://www.adyen.com/contact"
      },
      "updatedAt": "2022-08-25T00:00:00+02:00"
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/themes/: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}}/themes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/themes/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/themes/: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/themes/:id HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/themes/: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}}/themes/:id',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/themes/: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}}/themes/: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}}/themes/: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}}/themes/:id'};

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

const url = '{{baseUrl}}/themes/: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}}/themes/: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}}/themes/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/themes/: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}}/themes/:id');

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/themes/: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/themes/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/themes/: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}}/themes/:id
http GET {{baseUrl}}/themes/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/themes/:id
import Foundation

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

{
  "createdAt": "2022-06-22T00:00:00+02:00",
  "description": "Light colors theme",
  "id": "ONBT422KH223222D5G82M968PB46HR",
  "properties": {
    "backgroundColor": "#FFFFFF",
    "backgroundImage": "ONBA422JV223222D5G82M96F6P2VTV",
    "faqPage": "https://docs.adyen.com/hosted-onboarding-faqs",
    "logo": "ONBA422JV223222D5FWC4TK25S3DQW",
    "pageLayout": "withBackground",
    "pageTitle": "Example onboarding light colors",
    "privacyStatementPage": "https://www.adyen.com/legal/terms-and-conditions",
    "supportPage": "https://www.adyen.com/contact"
  },
  "updatedAt": "2022-08-25T00:00:00+02:00"
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/checkVerificationErrors");

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

(client/post "{{baseUrl}}/legalEntities/:id/checkVerificationErrors")
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/checkVerificationErrors"

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

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/checkVerificationErrors"

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

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

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

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

}
POST /baseUrl/legalEntities/:id/checkVerificationErrors HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/checkVerificationErrors"))
    .method("POST", 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}}/legalEntities/:id/checkVerificationErrors")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/checkVerificationErrors'
};

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

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}}/legalEntities/:id/checkVerificationErrors',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/checkVerificationErrors")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/checkVerificationErrors',
  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: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/checkVerificationErrors'
};

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

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

const req = unirest('POST', '{{baseUrl}}/legalEntities/:id/checkVerificationErrors');

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

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

const url = '{{baseUrl}}/legalEntities/:id/checkVerificationErrors';
const options = {method: 'POST'};

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}}/legalEntities/:id/checkVerificationErrors"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/checkVerificationErrors');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/legalEntities/:id/checkVerificationErrors")

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

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

url = "{{baseUrl}}/legalEntities/:id/checkVerificationErrors"

response = requests.post(url)

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

url <- "{{baseUrl}}/legalEntities/:id/checkVerificationErrors"

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

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

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

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

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

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

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

response = conn.post('/baseUrl/legalEntities/:id/checkVerificationErrors') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

{
  "problems": [
    {
      "entity": {
        "id": "YOUR_LEGAL_ENTITY",
        "type": "LegalEntity"
      },
      "verificationErrors": [
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8179",
          "message": "'vatNumber' was missing.",
          "remediatingActions": [
            {
              "code": "2_158",
              "message": "Add 'organization.vatNumber' to legal entity."
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8067",
          "message": "'Signatory' was missing.",
          "remediatingActions": [
            {
              "code": "2_124",
              "message": "Add 'organization.entityAssociations' of type 'signatory' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8189",
          "message": "'UBO through control' was missing.",
          "remediatingActions": [
            {
              "code": "2_151",
              "message": "Add 'organization.entityAssociations' of type 'uboThroughControl' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments"
          ],
          "code": "2_8190",
          "message": "'businessLine' was missing.",
          "remediatingActions": [
            {
              "code": "2_136",
              "message": "Add business line"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8021",
          "message": "'individual.residentialAddress.postalCode' was missing.",
          "remediatingActions": [
            {
              "code": "2_108",
              "message": "Add 'individual.residentialAddress.postalCode' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8064",
          "message": "'UBO through ownership' was missing.",
          "remediatingActions": [
            {
              "code": "2_123",
              "message": "Add 'organization.entityAssociations' of type 'uboThroughOwnership' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8141",
          "message": "'Registration document' was missing.",
          "remediatingActions": [
            {
              "code": "1_501",
              "message": "Upload a registration document"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8019",
          "message": "'individual.residentialAddress.street' was missing.",
          "remediatingActions": [
            {
              "code": "2_106",
              "message": "Add 'individual.residentialAddress.street' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8020",
          "message": "'individual.residentialAddress.city' was missing.",
          "remediatingActions": [
            {
              "code": "2_107",
              "message": "Add 'individual.residentialAddress.city' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8045",
          "message": "'organization.taxId' was missing.",
          "remediatingActions": [
            {
              "code": "2_118",
              "message": "Add 'organization.taxId' to legal entity"
            }
          ],
          "type": "dataMissing"
        },
        {
          "capabilities": [
            "receivePayments",
            "sendToTransferInstrument"
          ],
          "code": "2_8043",
          "message": "'organization.registrationNumber' was missing.",
          "remediatingActions": [
            {
              "code": "2_117",
              "message": "Add 'organization.registrationNumber' to legal entity"
            }
          ],
          "type": "dataMissing"
        }
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/legalEntities" {:content-type :json
                                                          :form-params {:capabilities {}
                                                                        :entityAssociations [{:associatorId ""
                                                                                              :entityType ""
                                                                                              :jobTitle ""
                                                                                              :legalEntityId ""
                                                                                              :name ""
                                                                                              :type ""}]
                                                                        :individual {:birthData {:dateOfBirth ""}
                                                                                     :email ""
                                                                                     :identificationData {:cardNumber ""
                                                                                                          :expiryDate ""
                                                                                                          :issuerCountry ""
                                                                                                          :issuerState ""
                                                                                                          :nationalIdExempt false
                                                                                                          :number ""
                                                                                                          :type ""}
                                                                                     :name {:firstName ""
                                                                                            :infix ""
                                                                                            :lastName ""}
                                                                                     :nationality ""
                                                                                     :phone {:number ""
                                                                                             :type ""}
                                                                                     :residentialAddress {:city ""
                                                                                                          :country ""
                                                                                                          :postalCode ""
                                                                                                          :stateOrProvince ""
                                                                                                          :street ""
                                                                                                          :street2 ""}
                                                                                     :taxInformation [{:country ""
                                                                                                       :number ""
                                                                                                       :type ""}]
                                                                                     :webData {:webAddress ""
                                                                                               :webAddressId ""}}
                                                                        :organization {:dateOfIncorporation ""
                                                                                       :description ""
                                                                                       :doingBusinessAs ""
                                                                                       :email ""
                                                                                       :legalName ""
                                                                                       :phone {}
                                                                                       :principalPlaceOfBusiness {}
                                                                                       :registeredAddress {}
                                                                                       :registrationNumber ""
                                                                                       :stockData {:marketIdentifier ""
                                                                                                   :stockNumber ""
                                                                                                   :tickerSymbol ""}
                                                                                       :taxInformation [{}]
                                                                                       :taxReportingClassification {:businessType ""
                                                                                                                    :financialInstitutionNumber ""
                                                                                                                    :mainSourceOfIncome ""
                                                                                                                    :type ""}
                                                                                       :type ""
                                                                                       :vatAbsenceReason ""
                                                                                       :vatNumber ""
                                                                                       :webData {}}
                                                                        :reference ""
                                                                        :soleProprietorship {:countryOfGoverningLaw ""
                                                                                             :dateOfIncorporation ""
                                                                                             :doingBusinessAs ""
                                                                                             :name ""
                                                                                             :principalPlaceOfBusiness {}
                                                                                             :registeredAddress {}
                                                                                             :registrationNumber ""
                                                                                             :vatAbsenceReason ""
                                                                                             :vatNumber ""}
                                                                        :type ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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}}/legalEntities"),
    Content = new StringContent("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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}}/legalEntities");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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/legalEntities HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1969

{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/legalEntities")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/legalEntities")
  .header("content-type", "application/json")
  .body("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {
      dateOfBirth: ''
    },
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {
      firstName: '',
      infix: '',
      lastName: ''
    },
    nationality: '',
    phone: {
      number: '',
      type: ''
    },
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [
      {
        country: '',
        number: '',
        type: ''
      }
    ],
    webData: {
      webAddress: '',
      webAddressId: ''
    }
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {
      marketIdentifier: '',
      stockNumber: '',
      tickerSymbol: ''
    },
    taxInformation: [
      {}
    ],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities',
  headers: {'content-type': 'application/json'},
  data: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"capabilities":{},"entityAssociations":[{"associatorId":"","entityType":"","jobTitle":"","legalEntityId":"","name":"","type":""}],"individual":{"birthData":{"dateOfBirth":""},"email":"","identificationData":{"cardNumber":"","expiryDate":"","issuerCountry":"","issuerState":"","nationalIdExempt":false,"number":"","type":""},"name":{"firstName":"","infix":"","lastName":""},"nationality":"","phone":{"number":"","type":""},"residentialAddress":{"city":"","country":"","postalCode":"","stateOrProvince":"","street":"","street2":""},"taxInformation":[{"country":"","number":"","type":""}],"webData":{"webAddress":"","webAddressId":""}},"organization":{"dateOfIncorporation":"","description":"","doingBusinessAs":"","email":"","legalName":"","phone":{},"principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","stockData":{"marketIdentifier":"","stockNumber":"","tickerSymbol":""},"taxInformation":[{}],"taxReportingClassification":{"businessType":"","financialInstitutionNumber":"","mainSourceOfIncome":"","type":""},"type":"","vatAbsenceReason":"","vatNumber":"","webData":{}},"reference":"","soleProprietorship":{"countryOfGoverningLaw":"","dateOfIncorporation":"","doingBusinessAs":"","name":"","principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","vatAbsenceReason":"","vatNumber":""},"type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/legalEntities',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "capabilities": {},\n  "entityAssociations": [\n    {\n      "associatorId": "",\n      "entityType": "",\n      "jobTitle": "",\n      "legalEntityId": "",\n      "name": "",\n      "type": ""\n    }\n  ],\n  "individual": {\n    "birthData": {\n      "dateOfBirth": ""\n    },\n    "email": "",\n    "identificationData": {\n      "cardNumber": "",\n      "expiryDate": "",\n      "issuerCountry": "",\n      "issuerState": "",\n      "nationalIdExempt": false,\n      "number": "",\n      "type": ""\n    },\n    "name": {\n      "firstName": "",\n      "infix": "",\n      "lastName": ""\n    },\n    "nationality": "",\n    "phone": {\n      "number": "",\n      "type": ""\n    },\n    "residentialAddress": {\n      "city": "",\n      "country": "",\n      "postalCode": "",\n      "stateOrProvince": "",\n      "street": "",\n      "street2": ""\n    },\n    "taxInformation": [\n      {\n        "country": "",\n        "number": "",\n        "type": ""\n      }\n    ],\n    "webData": {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  },\n  "organization": {\n    "dateOfIncorporation": "",\n    "description": "",\n    "doingBusinessAs": "",\n    "email": "",\n    "legalName": "",\n    "phone": {},\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "stockData": {\n      "marketIdentifier": "",\n      "stockNumber": "",\n      "tickerSymbol": ""\n    },\n    "taxInformation": [\n      {}\n    ],\n    "taxReportingClassification": {\n      "businessType": "",\n      "financialInstitutionNumber": "",\n      "mainSourceOfIncome": "",\n      "type": ""\n    },\n    "type": "",\n    "vatAbsenceReason": "",\n    "vatNumber": "",\n    "webData": {}\n  },\n  "reference": "",\n  "soleProprietorship": {\n    "countryOfGoverningLaw": "",\n    "dateOfIncorporation": "",\n    "doingBusinessAs": "",\n    "name": "",\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "vatAbsenceReason": "",\n    "vatNumber": ""\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities")
  .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/legalEntities',
  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({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {dateOfBirth: ''},
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {firstName: '', infix: '', lastName: ''},
    nationality: '',
    phone: {number: '', type: ''},
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [{country: '', number: '', type: ''}],
    webData: {webAddress: '', webAddressId: ''}
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
    taxInformation: [{}],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities',
  headers: {'content-type': 'application/json'},
  body: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {
      dateOfBirth: ''
    },
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {
      firstName: '',
      infix: '',
      lastName: ''
    },
    nationality: '',
    phone: {
      number: '',
      type: ''
    },
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [
      {
        country: '',
        number: '',
        type: ''
      }
    ],
    webData: {
      webAddress: '',
      webAddressId: ''
    }
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {
      marketIdentifier: '',
      stockNumber: '',
      tickerSymbol: ''
    },
    taxInformation: [
      {}
    ],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities',
  headers: {'content-type': 'application/json'},
  data: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  }
};

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

const url = '{{baseUrl}}/legalEntities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"capabilities":{},"entityAssociations":[{"associatorId":"","entityType":"","jobTitle":"","legalEntityId":"","name":"","type":""}],"individual":{"birthData":{"dateOfBirth":""},"email":"","identificationData":{"cardNumber":"","expiryDate":"","issuerCountry":"","issuerState":"","nationalIdExempt":false,"number":"","type":""},"name":{"firstName":"","infix":"","lastName":""},"nationality":"","phone":{"number":"","type":""},"residentialAddress":{"city":"","country":"","postalCode":"","stateOrProvince":"","street":"","street2":""},"taxInformation":[{"country":"","number":"","type":""}],"webData":{"webAddress":"","webAddressId":""}},"organization":{"dateOfIncorporation":"","description":"","doingBusinessAs":"","email":"","legalName":"","phone":{},"principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","stockData":{"marketIdentifier":"","stockNumber":"","tickerSymbol":""},"taxInformation":[{}],"taxReportingClassification":{"businessType":"","financialInstitutionNumber":"","mainSourceOfIncome":"","type":""},"type":"","vatAbsenceReason":"","vatNumber":"","webData":{}},"reference":"","soleProprietorship":{"countryOfGoverningLaw":"","dateOfIncorporation":"","doingBusinessAs":"","name":"","principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","vatAbsenceReason":"","vatNumber":""},"type":""}'
};

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 = @{ @"capabilities": @{  },
                              @"entityAssociations": @[ @{ @"associatorId": @"", @"entityType": @"", @"jobTitle": @"", @"legalEntityId": @"", @"name": @"", @"type": @"" } ],
                              @"individual": @{ @"birthData": @{ @"dateOfBirth": @"" }, @"email": @"", @"identificationData": @{ @"cardNumber": @"", @"expiryDate": @"", @"issuerCountry": @"", @"issuerState": @"", @"nationalIdExempt": @NO, @"number": @"", @"type": @"" }, @"name": @{ @"firstName": @"", @"infix": @"", @"lastName": @"" }, @"nationality": @"", @"phone": @{ @"number": @"", @"type": @"" }, @"residentialAddress": @{ @"city": @"", @"country": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"", @"street2": @"" }, @"taxInformation": @[ @{ @"country": @"", @"number": @"", @"type": @"" } ], @"webData": @{ @"webAddress": @"", @"webAddressId": @"" } },
                              @"organization": @{ @"dateOfIncorporation": @"", @"description": @"", @"doingBusinessAs": @"", @"email": @"", @"legalName": @"", @"phone": @{  }, @"principalPlaceOfBusiness": @{  }, @"registeredAddress": @{  }, @"registrationNumber": @"", @"stockData": @{ @"marketIdentifier": @"", @"stockNumber": @"", @"tickerSymbol": @"" }, @"taxInformation": @[ @{  } ], @"taxReportingClassification": @{ @"businessType": @"", @"financialInstitutionNumber": @"", @"mainSourceOfIncome": @"", @"type": @"" }, @"type": @"", @"vatAbsenceReason": @"", @"vatNumber": @"", @"webData": @{  } },
                              @"reference": @"",
                              @"soleProprietorship": @{ @"countryOfGoverningLaw": @"", @"dateOfIncorporation": @"", @"doingBusinessAs": @"", @"name": @"", @"principalPlaceOfBusiness": @{  }, @"registeredAddress": @{  }, @"registrationNumber": @"", @"vatAbsenceReason": @"", @"vatNumber": @"" },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities"]
                                                       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}}/legalEntities" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities",
  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([
    'capabilities' => [
        
    ],
    'entityAssociations' => [
        [
                'associatorId' => '',
                'entityType' => '',
                'jobTitle' => '',
                'legalEntityId' => '',
                'name' => '',
                'type' => ''
        ]
    ],
    'individual' => [
        'birthData' => [
                'dateOfBirth' => ''
        ],
        'email' => '',
        'identificationData' => [
                'cardNumber' => '',
                'expiryDate' => '',
                'issuerCountry' => '',
                'issuerState' => '',
                'nationalIdExempt' => null,
                'number' => '',
                'type' => ''
        ],
        'name' => [
                'firstName' => '',
                'infix' => '',
                'lastName' => ''
        ],
        'nationality' => '',
        'phone' => [
                'number' => '',
                'type' => ''
        ],
        'residentialAddress' => [
                'city' => '',
                'country' => '',
                'postalCode' => '',
                'stateOrProvince' => '',
                'street' => '',
                'street2' => ''
        ],
        'taxInformation' => [
                [
                                'country' => '',
                                'number' => '',
                                'type' => ''
                ]
        ],
        'webData' => [
                'webAddress' => '',
                'webAddressId' => ''
        ]
    ],
    'organization' => [
        'dateOfIncorporation' => '',
        'description' => '',
        'doingBusinessAs' => '',
        'email' => '',
        'legalName' => '',
        'phone' => [
                
        ],
        'principalPlaceOfBusiness' => [
                
        ],
        'registeredAddress' => [
                
        ],
        'registrationNumber' => '',
        'stockData' => [
                'marketIdentifier' => '',
                'stockNumber' => '',
                'tickerSymbol' => ''
        ],
        'taxInformation' => [
                [
                                
                ]
        ],
        'taxReportingClassification' => [
                'businessType' => '',
                'financialInstitutionNumber' => '',
                'mainSourceOfIncome' => '',
                'type' => ''
        ],
        'type' => '',
        'vatAbsenceReason' => '',
        'vatNumber' => '',
        'webData' => [
                
        ]
    ],
    'reference' => '',
    'soleProprietorship' => [
        'countryOfGoverningLaw' => '',
        'dateOfIncorporation' => '',
        'doingBusinessAs' => '',
        'name' => '',
        'principalPlaceOfBusiness' => [
                
        ],
        'registeredAddress' => [
                
        ],
        'registrationNumber' => '',
        'vatAbsenceReason' => '',
        'vatNumber' => ''
    ],
    'type' => ''
  ]),
  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}}/legalEntities', [
  'body' => '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'capabilities' => [
    
  ],
  'entityAssociations' => [
    [
        'associatorId' => '',
        'entityType' => '',
        'jobTitle' => '',
        'legalEntityId' => '',
        'name' => '',
        'type' => ''
    ]
  ],
  'individual' => [
    'birthData' => [
        'dateOfBirth' => ''
    ],
    'email' => '',
    'identificationData' => [
        'cardNumber' => '',
        'expiryDate' => '',
        'issuerCountry' => '',
        'issuerState' => '',
        'nationalIdExempt' => null,
        'number' => '',
        'type' => ''
    ],
    'name' => [
        'firstName' => '',
        'infix' => '',
        'lastName' => ''
    ],
    'nationality' => '',
    'phone' => [
        'number' => '',
        'type' => ''
    ],
    'residentialAddress' => [
        'city' => '',
        'country' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => '',
        'street2' => ''
    ],
    'taxInformation' => [
        [
                'country' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'webData' => [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'organization' => [
    'dateOfIncorporation' => '',
    'description' => '',
    'doingBusinessAs' => '',
    'email' => '',
    'legalName' => '',
    'phone' => [
        
    ],
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'stockData' => [
        'marketIdentifier' => '',
        'stockNumber' => '',
        'tickerSymbol' => ''
    ],
    'taxInformation' => [
        [
                
        ]
    ],
    'taxReportingClassification' => [
        'businessType' => '',
        'financialInstitutionNumber' => '',
        'mainSourceOfIncome' => '',
        'type' => ''
    ],
    'type' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => '',
    'webData' => [
        
    ]
  ],
  'reference' => '',
  'soleProprietorship' => [
    'countryOfGoverningLaw' => '',
    'dateOfIncorporation' => '',
    'doingBusinessAs' => '',
    'name' => '',
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => ''
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'capabilities' => [
    
  ],
  'entityAssociations' => [
    [
        'associatorId' => '',
        'entityType' => '',
        'jobTitle' => '',
        'legalEntityId' => '',
        'name' => '',
        'type' => ''
    ]
  ],
  'individual' => [
    'birthData' => [
        'dateOfBirth' => ''
    ],
    'email' => '',
    'identificationData' => [
        'cardNumber' => '',
        'expiryDate' => '',
        'issuerCountry' => '',
        'issuerState' => '',
        'nationalIdExempt' => null,
        'number' => '',
        'type' => ''
    ],
    'name' => [
        'firstName' => '',
        'infix' => '',
        'lastName' => ''
    ],
    'nationality' => '',
    'phone' => [
        'number' => '',
        'type' => ''
    ],
    'residentialAddress' => [
        'city' => '',
        'country' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => '',
        'street2' => ''
    ],
    'taxInformation' => [
        [
                'country' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'webData' => [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'organization' => [
    'dateOfIncorporation' => '',
    'description' => '',
    'doingBusinessAs' => '',
    'email' => '',
    'legalName' => '',
    'phone' => [
        
    ],
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'stockData' => [
        'marketIdentifier' => '',
        'stockNumber' => '',
        'tickerSymbol' => ''
    ],
    'taxInformation' => [
        [
                
        ]
    ],
    'taxReportingClassification' => [
        'businessType' => '',
        'financialInstitutionNumber' => '',
        'mainSourceOfIncome' => '',
        'type' => ''
    ],
    'type' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => '',
    'webData' => [
        
    ]
  ],
  'reference' => '',
  'soleProprietorship' => [
    'countryOfGoverningLaw' => '',
    'dateOfIncorporation' => '',
    'doingBusinessAs' => '',
    'name' => '',
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => ''
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities');
$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}}/legalEntities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/legalEntities"

payload = {
    "capabilities": {},
    "entityAssociations": [
        {
            "associatorId": "",
            "entityType": "",
            "jobTitle": "",
            "legalEntityId": "",
            "name": "",
            "type": ""
        }
    ],
    "individual": {
        "birthData": { "dateOfBirth": "" },
        "email": "",
        "identificationData": {
            "cardNumber": "",
            "expiryDate": "",
            "issuerCountry": "",
            "issuerState": "",
            "nationalIdExempt": False,
            "number": "",
            "type": ""
        },
        "name": {
            "firstName": "",
            "infix": "",
            "lastName": ""
        },
        "nationality": "",
        "phone": {
            "number": "",
            "type": ""
        },
        "residentialAddress": {
            "city": "",
            "country": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": "",
            "street2": ""
        },
        "taxInformation": [
            {
                "country": "",
                "number": "",
                "type": ""
            }
        ],
        "webData": {
            "webAddress": "",
            "webAddressId": ""
        }
    },
    "organization": {
        "dateOfIncorporation": "",
        "description": "",
        "doingBusinessAs": "",
        "email": "",
        "legalName": "",
        "phone": {},
        "principalPlaceOfBusiness": {},
        "registeredAddress": {},
        "registrationNumber": "",
        "stockData": {
            "marketIdentifier": "",
            "stockNumber": "",
            "tickerSymbol": ""
        },
        "taxInformation": [{}],
        "taxReportingClassification": {
            "businessType": "",
            "financialInstitutionNumber": "",
            "mainSourceOfIncome": "",
            "type": ""
        },
        "type": "",
        "vatAbsenceReason": "",
        "vatNumber": "",
        "webData": {}
    },
    "reference": "",
    "soleProprietorship": {
        "countryOfGoverningLaw": "",
        "dateOfIncorporation": "",
        "doingBusinessAs": "",
        "name": "",
        "principalPlaceOfBusiness": {},
        "registeredAddress": {},
        "registrationNumber": "",
        "vatAbsenceReason": "",
        "vatNumber": ""
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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}}/legalEntities")

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  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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/legalEntities') do |req|
  req.body = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "capabilities": json!({}),
        "entityAssociations": (
            json!({
                "associatorId": "",
                "entityType": "",
                "jobTitle": "",
                "legalEntityId": "",
                "name": "",
                "type": ""
            })
        ),
        "individual": json!({
            "birthData": json!({"dateOfBirth": ""}),
            "email": "",
            "identificationData": json!({
                "cardNumber": "",
                "expiryDate": "",
                "issuerCountry": "",
                "issuerState": "",
                "nationalIdExempt": false,
                "number": "",
                "type": ""
            }),
            "name": json!({
                "firstName": "",
                "infix": "",
                "lastName": ""
            }),
            "nationality": "",
            "phone": json!({
                "number": "",
                "type": ""
            }),
            "residentialAddress": json!({
                "city": "",
                "country": "",
                "postalCode": "",
                "stateOrProvince": "",
                "street": "",
                "street2": ""
            }),
            "taxInformation": (
                json!({
                    "country": "",
                    "number": "",
                    "type": ""
                })
            ),
            "webData": json!({
                "webAddress": "",
                "webAddressId": ""
            })
        }),
        "organization": json!({
            "dateOfIncorporation": "",
            "description": "",
            "doingBusinessAs": "",
            "email": "",
            "legalName": "",
            "phone": json!({}),
            "principalPlaceOfBusiness": json!({}),
            "registeredAddress": json!({}),
            "registrationNumber": "",
            "stockData": json!({
                "marketIdentifier": "",
                "stockNumber": "",
                "tickerSymbol": ""
            }),
            "taxInformation": (json!({})),
            "taxReportingClassification": json!({
                "businessType": "",
                "financialInstitutionNumber": "",
                "mainSourceOfIncome": "",
                "type": ""
            }),
            "type": "",
            "vatAbsenceReason": "",
            "vatNumber": "",
            "webData": json!({})
        }),
        "reference": "",
        "soleProprietorship": json!({
            "countryOfGoverningLaw": "",
            "dateOfIncorporation": "",
            "doingBusinessAs": "",
            "name": "",
            "principalPlaceOfBusiness": json!({}),
            "registeredAddress": json!({}),
            "registrationNumber": "",
            "vatAbsenceReason": "",
            "vatNumber": ""
        }),
        "type": ""
    });

    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}}/legalEntities \
  --header 'content-type: application/json' \
  --data '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
echo '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}' |  \
  http POST {{baseUrl}}/legalEntities \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "capabilities": {},\n  "entityAssociations": [\n    {\n      "associatorId": "",\n      "entityType": "",\n      "jobTitle": "",\n      "legalEntityId": "",\n      "name": "",\n      "type": ""\n    }\n  ],\n  "individual": {\n    "birthData": {\n      "dateOfBirth": ""\n    },\n    "email": "",\n    "identificationData": {\n      "cardNumber": "",\n      "expiryDate": "",\n      "issuerCountry": "",\n      "issuerState": "",\n      "nationalIdExempt": false,\n      "number": "",\n      "type": ""\n    },\n    "name": {\n      "firstName": "",\n      "infix": "",\n      "lastName": ""\n    },\n    "nationality": "",\n    "phone": {\n      "number": "",\n      "type": ""\n    },\n    "residentialAddress": {\n      "city": "",\n      "country": "",\n      "postalCode": "",\n      "stateOrProvince": "",\n      "street": "",\n      "street2": ""\n    },\n    "taxInformation": [\n      {\n        "country": "",\n        "number": "",\n        "type": ""\n      }\n    ],\n    "webData": {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  },\n  "organization": {\n    "dateOfIncorporation": "",\n    "description": "",\n    "doingBusinessAs": "",\n    "email": "",\n    "legalName": "",\n    "phone": {},\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "stockData": {\n      "marketIdentifier": "",\n      "stockNumber": "",\n      "tickerSymbol": ""\n    },\n    "taxInformation": [\n      {}\n    ],\n    "taxReportingClassification": {\n      "businessType": "",\n      "financialInstitutionNumber": "",\n      "mainSourceOfIncome": "",\n      "type": ""\n    },\n    "type": "",\n    "vatAbsenceReason": "",\n    "vatNumber": "",\n    "webData": {}\n  },\n  "reference": "",\n  "soleProprietorship": {\n    "countryOfGoverningLaw": "",\n    "dateOfIncorporation": "",\n    "doingBusinessAs": "",\n    "name": "",\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "vatAbsenceReason": "",\n    "vatNumber": ""\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "capabilities": [],
  "entityAssociations": [
    [
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    ]
  ],
  "individual": [
    "birthData": ["dateOfBirth": ""],
    "email": "",
    "identificationData": [
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    ],
    "name": [
      "firstName": "",
      "infix": "",
      "lastName": ""
    ],
    "nationality": "",
    "phone": [
      "number": "",
      "type": ""
    ],
    "residentialAddress": [
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    ],
    "taxInformation": [
      [
        "country": "",
        "number": "",
        "type": ""
      ]
    ],
    "webData": [
      "webAddress": "",
      "webAddressId": ""
    ]
  ],
  "organization": [
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": [],
    "principalPlaceOfBusiness": [],
    "registeredAddress": [],
    "registrationNumber": "",
    "stockData": [
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    ],
    "taxInformation": [[]],
    "taxReportingClassification": [
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    ],
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": []
  ],
  "reference": "",
  "soleProprietorship": [
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": [],
    "registeredAddress": [],
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  ],
  "type": ""
] as [String : Any]

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

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

{
  "id": "YOUR_LEGAL_ENTITY",
  "individual": {
    "birthData": {
      "dateOfBirth": "1990-06-21"
    },
    "email": "s.eller@example.com",
    "name": {
      "firstName": "Shelly",
      "lastName": "Eller"
    },
    "residentialAddress": {
      "city": "Amsterdam",
      "country": "NL",
      "postalCode": "1011DJ",
      "street": "Simon Carmiggeltstraat 6 - 50"
    }
  },
  "type": "individual"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "id": "YOUR_LEGAL_ENTITY",
  "individual": {
    "birthData": {
      "dateOfBirth": "1990-06-21"
    },
    "email": "s.eller@example.com",
    "name": {
      "firstName": "Shelly",
      "lastName": "Eller"
    },
    "phone": {
      "number": "+14153671502",
      "type": "mobile"
    },
    "residentialAddress": {
      "city": "New York",
      "country": "US",
      "postalCode": "10003",
      "stateOrProvince": "NY",
      "street": "71 5th Avenue",
      "street2": "11th floor"
    }
  },
  "type": "individual"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "entityAssociations": [
    {
      "associatorId": "YOUR_LEGAL_ENTITY_2",
      "entityType": "individual",
      "jobTitle": "CEO",
      "legalEntityId": "YOUR_LEGAL_ENTITY_1",
      "name": "Simone Hopper",
      "type": "signatory"
    }
  ],
  "id": "YOUR_LEGAL_ENTITY_2",
  "organization": {
    "doingBusinessAs": "API Company Trading",
    "email": "organization@example.com",
    "legalName": "Explorer Company based in NL",
    "registeredAddress": {
      "city": "Amsterdam",
      "country": "NL",
      "postalCode": "1011DJ",
      "street": "Simon Carmiggeltstraat 6 - 50"
    },
    "registrationNumber": "34179503",
    "type": "privateCompany"
  },
  "type": "organization"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "id": "YOUR_LEGAL_ENTITY",
  "organization": {
    "legalName": "Explorer Company based in US",
    "registeredAddress": {
      "city": "New York",
      "country": "US",
      "postalCode": "10003",
      "stateOrProvince": "NY",
      "street": "71 5th Avenue",
      "street2": "11th floor"
    },
    "registrationNumber": "101002749",
    "taxExempt": false,
    "type": "privateCompany"
  },
  "type": "organization"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "id": "YOUR_LEGAL_ENTITY",
  "soleProprietorship": {
    "countryOfGoverningLaw": "NL",
    "name": "Shelly Seller Sole Trader",
    "registeredAddress": {
      "city": "Amsterdam",
      "country": "NL",
      "postalCode": "1011DJ",
      "street": "Simon Carmiggeltstraat 6 - 50"
    }
  },
  "type": "soleProprietorship"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "id": "YOUR_LEGAL_ENTITY",
  "soleProprietorship": {
    "countryOfGoverningLaw": "US",
    "name": "Shelly Eller Sole Trader",
    "registeredAddress": {
      "city": "New York",
      "country": "US",
      "postalCode": "10003",
      "stateOrProvince": "NY",
      "street": "71 5th Avenue",
      "street2": "11th floor"
    }
  },
  "type": "soleProprietorship"
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/legalEntities/: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}}/legalEntities/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/legalEntities/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/: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/legalEntities/:id HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/: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}}/legalEntities/:id',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/: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}}/legalEntities/: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}}/legalEntities/: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}}/legalEntities/:id'};

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

const url = '{{baseUrl}}/legalEntities/: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}}/legalEntities/: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}}/legalEntities/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/: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}}/legalEntities/:id');

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/legalEntities/: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/legalEntities/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/legalEntities/: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}}/legalEntities/:id
http GET {{baseUrl}}/legalEntities/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/legalEntities/:id
import Foundation

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

{
  "capabilities": {
    "receiveFromBalanceAccount": {
      "allowed": false,
      "requested": true,
      "verificationStatus": "pending"
    },
    "receiveFromPlatformPayments": {
      "allowed": false,
      "requested": true,
      "verificationStatus": "pending"
    },
    "receivePayments": {
      "allowed": false,
      "requested": true,
      "verificationStatus": "pending"
    },
    "sendToBalanceAccount": {
      "allowed": false,
      "requested": true,
      "verificationStatus": "pending"
    },
    "sendToTransferInstrument": {
      "allowed": false,
      "requested": true,
      "verificationStatus": "pending"
    }
  },
  "id": "YOUR_LEGAL_ENTITY",
  "individual": {
    "birthData": {
      "dateOfBirth": "1990-06-21"
    },
    "email": "s.hopper@example.com",
    "name": {
      "firstName": "Simone",
      "lastName": "Hopper"
    },
    "residentialAddress": {
      "city": "Amsterdam",
      "country": "NL",
      "postalCode": "1011DJ",
      "street": "Simon Carmiggeltstraat 6 - 50",
      "street2": "274"
    }
  },
  "type": "individual"
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/legalEntities/:id/businessLines"

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}}/legalEntities/:id/businessLines"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/legalEntities/:id/businessLines");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/businessLines"

	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/legalEntities/:id/businessLines HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/businessLines';
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}}/legalEntities/:id/businessLines',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/businessLines',
  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}}/legalEntities/:id/businessLines'
};

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

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

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

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

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

const url = '{{baseUrl}}/legalEntities/:id/businessLines';
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}}/legalEntities/:id/businessLines"]
                                                       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}}/legalEntities/:id/businessLines" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/businessLines",
  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}}/legalEntities/:id/businessLines');

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/legalEntities/:id/businessLines"

response = requests.get(url)

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

url <- "{{baseUrl}}/legalEntities/:id/businessLines"

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

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

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

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/legalEntities/:id/businessLines') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/legalEntities/:id/businessLines
http GET {{baseUrl}}/legalEntities/:id/businessLines
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/businessLines
import Foundation

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

{
  "businessLines": [
    {
      "id": "SE322JV223222F5GVGMLNB83F",
      "industryCode": "55",
      "legalEntityId": "YOUR_LEGAL_ENTITY",
      "service": "banking",
      "sourceOfFunds": {
        "adyenProcessedFunds": false,
        "description": "Funds from my flower shop business",
        "type": "business"
      },
      "webData": [
        {
          "webAddress": "https://www.adyen.com",
          "webAddressId": "SE577HA334222K5H8V87B3BPU"
        }
      ]
    },
    {
      "id": "SE322JV223222F5GVGPNRB9GJ",
      "industryCode": "339E",
      "legalEntityId": "YOUR_LEGAL_ENTITY",
      "salesChannels": [
        "eCommerce",
        "ecomMoto"
      ],
      "service": "paymentProcessing",
      "webData": [
        {
          "webAddress": "https://yoururl.com",
          "webAddressId": "SE908HJ723222F5GVGPNR55YH"
        }
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id");

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  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}");

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

(client/patch "{{baseUrl}}/legalEntities/:id" {:content-type :json
                                                               :form-params {:capabilities {}
                                                                             :entityAssociations [{:associatorId ""
                                                                                                   :entityType ""
                                                                                                   :jobTitle ""
                                                                                                   :legalEntityId ""
                                                                                                   :name ""
                                                                                                   :type ""}]
                                                                             :individual {:birthData {:dateOfBirth ""}
                                                                                          :email ""
                                                                                          :identificationData {:cardNumber ""
                                                                                                               :expiryDate ""
                                                                                                               :issuerCountry ""
                                                                                                               :issuerState ""
                                                                                                               :nationalIdExempt false
                                                                                                               :number ""
                                                                                                               :type ""}
                                                                                          :name {:firstName ""
                                                                                                 :infix ""
                                                                                                 :lastName ""}
                                                                                          :nationality ""
                                                                                          :phone {:number ""
                                                                                                  :type ""}
                                                                                          :residentialAddress {:city ""
                                                                                                               :country ""
                                                                                                               :postalCode ""
                                                                                                               :stateOrProvince ""
                                                                                                               :street ""
                                                                                                               :street2 ""}
                                                                                          :taxInformation [{:country ""
                                                                                                            :number ""
                                                                                                            :type ""}]
                                                                                          :webData {:webAddress ""
                                                                                                    :webAddressId ""}}
                                                                             :organization {:dateOfIncorporation ""
                                                                                            :description ""
                                                                                            :doingBusinessAs ""
                                                                                            :email ""
                                                                                            :legalName ""
                                                                                            :phone {}
                                                                                            :principalPlaceOfBusiness {}
                                                                                            :registeredAddress {}
                                                                                            :registrationNumber ""
                                                                                            :stockData {:marketIdentifier ""
                                                                                                        :stockNumber ""
                                                                                                        :tickerSymbol ""}
                                                                                            :taxInformation [{}]
                                                                                            :taxReportingClassification {:businessType ""
                                                                                                                         :financialInstitutionNumber ""
                                                                                                                         :mainSourceOfIncome ""
                                                                                                                         :type ""}
                                                                                            :type ""
                                                                                            :vatAbsenceReason ""
                                                                                            :vatNumber ""
                                                                                            :webData {}}
                                                                             :reference ""
                                                                             :soleProprietorship {:countryOfGoverningLaw ""
                                                                                                  :dateOfIncorporation ""
                                                                                                  :doingBusinessAs ""
                                                                                                  :name ""
                                                                                                  :principalPlaceOfBusiness {}
                                                                                                  :registeredAddress {}
                                                                                                  :registrationNumber ""
                                                                                                  :vatAbsenceReason ""
                                                                                                  :vatNumber ""}
                                                                             :type ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/legalEntities/:id"),
    Content = new StringContent("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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}}/legalEntities/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/legalEntities/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1969

{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/legalEntities/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/legalEntities/:id")
  .header("content-type", "application/json")
  .body("{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {
      dateOfBirth: ''
    },
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {
      firstName: '',
      infix: '',
      lastName: ''
    },
    nationality: '',
    phone: {
      number: '',
      type: ''
    },
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [
      {
        country: '',
        number: '',
        type: ''
      }
    ],
    webData: {
      webAddress: '',
      webAddressId: ''
    }
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {
      marketIdentifier: '',
      stockNumber: '',
      tickerSymbol: ''
    },
    taxInformation: [
      {}
    ],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/legalEntities/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id',
  headers: {'content-type': 'application/json'},
  data: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"capabilities":{},"entityAssociations":[{"associatorId":"","entityType":"","jobTitle":"","legalEntityId":"","name":"","type":""}],"individual":{"birthData":{"dateOfBirth":""},"email":"","identificationData":{"cardNumber":"","expiryDate":"","issuerCountry":"","issuerState":"","nationalIdExempt":false,"number":"","type":""},"name":{"firstName":"","infix":"","lastName":""},"nationality":"","phone":{"number":"","type":""},"residentialAddress":{"city":"","country":"","postalCode":"","stateOrProvince":"","street":"","street2":""},"taxInformation":[{"country":"","number":"","type":""}],"webData":{"webAddress":"","webAddressId":""}},"organization":{"dateOfIncorporation":"","description":"","doingBusinessAs":"","email":"","legalName":"","phone":{},"principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","stockData":{"marketIdentifier":"","stockNumber":"","tickerSymbol":""},"taxInformation":[{}],"taxReportingClassification":{"businessType":"","financialInstitutionNumber":"","mainSourceOfIncome":"","type":""},"type":"","vatAbsenceReason":"","vatNumber":"","webData":{}},"reference":"","soleProprietorship":{"countryOfGoverningLaw":"","dateOfIncorporation":"","doingBusinessAs":"","name":"","principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","vatAbsenceReason":"","vatNumber":""},"type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/legalEntities/:id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "capabilities": {},\n  "entityAssociations": [\n    {\n      "associatorId": "",\n      "entityType": "",\n      "jobTitle": "",\n      "legalEntityId": "",\n      "name": "",\n      "type": ""\n    }\n  ],\n  "individual": {\n    "birthData": {\n      "dateOfBirth": ""\n    },\n    "email": "",\n    "identificationData": {\n      "cardNumber": "",\n      "expiryDate": "",\n      "issuerCountry": "",\n      "issuerState": "",\n      "nationalIdExempt": false,\n      "number": "",\n      "type": ""\n    },\n    "name": {\n      "firstName": "",\n      "infix": "",\n      "lastName": ""\n    },\n    "nationality": "",\n    "phone": {\n      "number": "",\n      "type": ""\n    },\n    "residentialAddress": {\n      "city": "",\n      "country": "",\n      "postalCode": "",\n      "stateOrProvince": "",\n      "street": "",\n      "street2": ""\n    },\n    "taxInformation": [\n      {\n        "country": "",\n        "number": "",\n        "type": ""\n      }\n    ],\n    "webData": {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  },\n  "organization": {\n    "dateOfIncorporation": "",\n    "description": "",\n    "doingBusinessAs": "",\n    "email": "",\n    "legalName": "",\n    "phone": {},\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "stockData": {\n      "marketIdentifier": "",\n      "stockNumber": "",\n      "tickerSymbol": ""\n    },\n    "taxInformation": [\n      {}\n    ],\n    "taxReportingClassification": {\n      "businessType": "",\n      "financialInstitutionNumber": "",\n      "mainSourceOfIncome": "",\n      "type": ""\n    },\n    "type": "",\n    "vatAbsenceReason": "",\n    "vatNumber": "",\n    "webData": {}\n  },\n  "reference": "",\n  "soleProprietorship": {\n    "countryOfGoverningLaw": "",\n    "dateOfIncorporation": "",\n    "doingBusinessAs": "",\n    "name": "",\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "vatAbsenceReason": "",\n    "vatNumber": ""\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id',
  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({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {dateOfBirth: ''},
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {firstName: '', infix: '', lastName: ''},
    nationality: '',
    phone: {number: '', type: ''},
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [{country: '', number: '', type: ''}],
    webData: {webAddress: '', webAddressId: ''}
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
    taxInformation: [{}],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id',
  headers: {'content-type': 'application/json'},
  body: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/legalEntities/:id');

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

req.type('json');
req.send({
  capabilities: {},
  entityAssociations: [
    {
      associatorId: '',
      entityType: '',
      jobTitle: '',
      legalEntityId: '',
      name: '',
      type: ''
    }
  ],
  individual: {
    birthData: {
      dateOfBirth: ''
    },
    email: '',
    identificationData: {
      cardNumber: '',
      expiryDate: '',
      issuerCountry: '',
      issuerState: '',
      nationalIdExempt: false,
      number: '',
      type: ''
    },
    name: {
      firstName: '',
      infix: '',
      lastName: ''
    },
    nationality: '',
    phone: {
      number: '',
      type: ''
    },
    residentialAddress: {
      city: '',
      country: '',
      postalCode: '',
      stateOrProvince: '',
      street: '',
      street2: ''
    },
    taxInformation: [
      {
        country: '',
        number: '',
        type: ''
      }
    ],
    webData: {
      webAddress: '',
      webAddressId: ''
    }
  },
  organization: {
    dateOfIncorporation: '',
    description: '',
    doingBusinessAs: '',
    email: '',
    legalName: '',
    phone: {},
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    stockData: {
      marketIdentifier: '',
      stockNumber: '',
      tickerSymbol: ''
    },
    taxInformation: [
      {}
    ],
    taxReportingClassification: {
      businessType: '',
      financialInstitutionNumber: '',
      mainSourceOfIncome: '',
      type: ''
    },
    type: '',
    vatAbsenceReason: '',
    vatNumber: '',
    webData: {}
  },
  reference: '',
  soleProprietorship: {
    countryOfGoverningLaw: '',
    dateOfIncorporation: '',
    doingBusinessAs: '',
    name: '',
    principalPlaceOfBusiness: {},
    registeredAddress: {},
    registrationNumber: '',
    vatAbsenceReason: '',
    vatNumber: ''
  },
  type: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id',
  headers: {'content-type': 'application/json'},
  data: {
    capabilities: {},
    entityAssociations: [
      {
        associatorId: '',
        entityType: '',
        jobTitle: '',
        legalEntityId: '',
        name: '',
        type: ''
      }
    ],
    individual: {
      birthData: {dateOfBirth: ''},
      email: '',
      identificationData: {
        cardNumber: '',
        expiryDate: '',
        issuerCountry: '',
        issuerState: '',
        nationalIdExempt: false,
        number: '',
        type: ''
      },
      name: {firstName: '', infix: '', lastName: ''},
      nationality: '',
      phone: {number: '', type: ''},
      residentialAddress: {
        city: '',
        country: '',
        postalCode: '',
        stateOrProvince: '',
        street: '',
        street2: ''
      },
      taxInformation: [{country: '', number: '', type: ''}],
      webData: {webAddress: '', webAddressId: ''}
    },
    organization: {
      dateOfIncorporation: '',
      description: '',
      doingBusinessAs: '',
      email: '',
      legalName: '',
      phone: {},
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      stockData: {marketIdentifier: '', stockNumber: '', tickerSymbol: ''},
      taxInformation: [{}],
      taxReportingClassification: {
        businessType: '',
        financialInstitutionNumber: '',
        mainSourceOfIncome: '',
        type: ''
      },
      type: '',
      vatAbsenceReason: '',
      vatNumber: '',
      webData: {}
    },
    reference: '',
    soleProprietorship: {
      countryOfGoverningLaw: '',
      dateOfIncorporation: '',
      doingBusinessAs: '',
      name: '',
      principalPlaceOfBusiness: {},
      registeredAddress: {},
      registrationNumber: '',
      vatAbsenceReason: '',
      vatNumber: ''
    },
    type: ''
  }
};

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

const url = '{{baseUrl}}/legalEntities/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"capabilities":{},"entityAssociations":[{"associatorId":"","entityType":"","jobTitle":"","legalEntityId":"","name":"","type":""}],"individual":{"birthData":{"dateOfBirth":""},"email":"","identificationData":{"cardNumber":"","expiryDate":"","issuerCountry":"","issuerState":"","nationalIdExempt":false,"number":"","type":""},"name":{"firstName":"","infix":"","lastName":""},"nationality":"","phone":{"number":"","type":""},"residentialAddress":{"city":"","country":"","postalCode":"","stateOrProvince":"","street":"","street2":""},"taxInformation":[{"country":"","number":"","type":""}],"webData":{"webAddress":"","webAddressId":""}},"organization":{"dateOfIncorporation":"","description":"","doingBusinessAs":"","email":"","legalName":"","phone":{},"principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","stockData":{"marketIdentifier":"","stockNumber":"","tickerSymbol":""},"taxInformation":[{}],"taxReportingClassification":{"businessType":"","financialInstitutionNumber":"","mainSourceOfIncome":"","type":""},"type":"","vatAbsenceReason":"","vatNumber":"","webData":{}},"reference":"","soleProprietorship":{"countryOfGoverningLaw":"","dateOfIncorporation":"","doingBusinessAs":"","name":"","principalPlaceOfBusiness":{},"registeredAddress":{},"registrationNumber":"","vatAbsenceReason":"","vatNumber":""},"type":""}'
};

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 = @{ @"capabilities": @{  },
                              @"entityAssociations": @[ @{ @"associatorId": @"", @"entityType": @"", @"jobTitle": @"", @"legalEntityId": @"", @"name": @"", @"type": @"" } ],
                              @"individual": @{ @"birthData": @{ @"dateOfBirth": @"" }, @"email": @"", @"identificationData": @{ @"cardNumber": @"", @"expiryDate": @"", @"issuerCountry": @"", @"issuerState": @"", @"nationalIdExempt": @NO, @"number": @"", @"type": @"" }, @"name": @{ @"firstName": @"", @"infix": @"", @"lastName": @"" }, @"nationality": @"", @"phone": @{ @"number": @"", @"type": @"" }, @"residentialAddress": @{ @"city": @"", @"country": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"", @"street2": @"" }, @"taxInformation": @[ @{ @"country": @"", @"number": @"", @"type": @"" } ], @"webData": @{ @"webAddress": @"", @"webAddressId": @"" } },
                              @"organization": @{ @"dateOfIncorporation": @"", @"description": @"", @"doingBusinessAs": @"", @"email": @"", @"legalName": @"", @"phone": @{  }, @"principalPlaceOfBusiness": @{  }, @"registeredAddress": @{  }, @"registrationNumber": @"", @"stockData": @{ @"marketIdentifier": @"", @"stockNumber": @"", @"tickerSymbol": @"" }, @"taxInformation": @[ @{  } ], @"taxReportingClassification": @{ @"businessType": @"", @"financialInstitutionNumber": @"", @"mainSourceOfIncome": @"", @"type": @"" }, @"type": @"", @"vatAbsenceReason": @"", @"vatNumber": @"", @"webData": @{  } },
                              @"reference": @"",
                              @"soleProprietorship": @{ @"countryOfGoverningLaw": @"", @"dateOfIncorporation": @"", @"doingBusinessAs": @"", @"name": @"", @"principalPlaceOfBusiness": @{  }, @"registeredAddress": @{  }, @"registrationNumber": @"", @"vatAbsenceReason": @"", @"vatNumber": @"" },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/legalEntities/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'capabilities' => [
        
    ],
    'entityAssociations' => [
        [
                'associatorId' => '',
                'entityType' => '',
                'jobTitle' => '',
                'legalEntityId' => '',
                'name' => '',
                'type' => ''
        ]
    ],
    'individual' => [
        'birthData' => [
                'dateOfBirth' => ''
        ],
        'email' => '',
        'identificationData' => [
                'cardNumber' => '',
                'expiryDate' => '',
                'issuerCountry' => '',
                'issuerState' => '',
                'nationalIdExempt' => null,
                'number' => '',
                'type' => ''
        ],
        'name' => [
                'firstName' => '',
                'infix' => '',
                'lastName' => ''
        ],
        'nationality' => '',
        'phone' => [
                'number' => '',
                'type' => ''
        ],
        'residentialAddress' => [
                'city' => '',
                'country' => '',
                'postalCode' => '',
                'stateOrProvince' => '',
                'street' => '',
                'street2' => ''
        ],
        'taxInformation' => [
                [
                                'country' => '',
                                'number' => '',
                                'type' => ''
                ]
        ],
        'webData' => [
                'webAddress' => '',
                'webAddressId' => ''
        ]
    ],
    'organization' => [
        'dateOfIncorporation' => '',
        'description' => '',
        'doingBusinessAs' => '',
        'email' => '',
        'legalName' => '',
        'phone' => [
                
        ],
        'principalPlaceOfBusiness' => [
                
        ],
        'registeredAddress' => [
                
        ],
        'registrationNumber' => '',
        'stockData' => [
                'marketIdentifier' => '',
                'stockNumber' => '',
                'tickerSymbol' => ''
        ],
        'taxInformation' => [
                [
                                
                ]
        ],
        'taxReportingClassification' => [
                'businessType' => '',
                'financialInstitutionNumber' => '',
                'mainSourceOfIncome' => '',
                'type' => ''
        ],
        'type' => '',
        'vatAbsenceReason' => '',
        'vatNumber' => '',
        'webData' => [
                
        ]
    ],
    'reference' => '',
    'soleProprietorship' => [
        'countryOfGoverningLaw' => '',
        'dateOfIncorporation' => '',
        'doingBusinessAs' => '',
        'name' => '',
        'principalPlaceOfBusiness' => [
                
        ],
        'registeredAddress' => [
                
        ],
        'registrationNumber' => '',
        'vatAbsenceReason' => '',
        'vatNumber' => ''
    ],
    'type' => ''
  ]),
  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('PATCH', '{{baseUrl}}/legalEntities/:id', [
  'body' => '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'capabilities' => [
    
  ],
  'entityAssociations' => [
    [
        'associatorId' => '',
        'entityType' => '',
        'jobTitle' => '',
        'legalEntityId' => '',
        'name' => '',
        'type' => ''
    ]
  ],
  'individual' => [
    'birthData' => [
        'dateOfBirth' => ''
    ],
    'email' => '',
    'identificationData' => [
        'cardNumber' => '',
        'expiryDate' => '',
        'issuerCountry' => '',
        'issuerState' => '',
        'nationalIdExempt' => null,
        'number' => '',
        'type' => ''
    ],
    'name' => [
        'firstName' => '',
        'infix' => '',
        'lastName' => ''
    ],
    'nationality' => '',
    'phone' => [
        'number' => '',
        'type' => ''
    ],
    'residentialAddress' => [
        'city' => '',
        'country' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => '',
        'street2' => ''
    ],
    'taxInformation' => [
        [
                'country' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'webData' => [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'organization' => [
    'dateOfIncorporation' => '',
    'description' => '',
    'doingBusinessAs' => '',
    'email' => '',
    'legalName' => '',
    'phone' => [
        
    ],
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'stockData' => [
        'marketIdentifier' => '',
        'stockNumber' => '',
        'tickerSymbol' => ''
    ],
    'taxInformation' => [
        [
                
        ]
    ],
    'taxReportingClassification' => [
        'businessType' => '',
        'financialInstitutionNumber' => '',
        'mainSourceOfIncome' => '',
        'type' => ''
    ],
    'type' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => '',
    'webData' => [
        
    ]
  ],
  'reference' => '',
  'soleProprietorship' => [
    'countryOfGoverningLaw' => '',
    'dateOfIncorporation' => '',
    'doingBusinessAs' => '',
    'name' => '',
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => ''
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'capabilities' => [
    
  ],
  'entityAssociations' => [
    [
        'associatorId' => '',
        'entityType' => '',
        'jobTitle' => '',
        'legalEntityId' => '',
        'name' => '',
        'type' => ''
    ]
  ],
  'individual' => [
    'birthData' => [
        'dateOfBirth' => ''
    ],
    'email' => '',
    'identificationData' => [
        'cardNumber' => '',
        'expiryDate' => '',
        'issuerCountry' => '',
        'issuerState' => '',
        'nationalIdExempt' => null,
        'number' => '',
        'type' => ''
    ],
    'name' => [
        'firstName' => '',
        'infix' => '',
        'lastName' => ''
    ],
    'nationality' => '',
    'phone' => [
        'number' => '',
        'type' => ''
    ],
    'residentialAddress' => [
        'city' => '',
        'country' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => '',
        'street2' => ''
    ],
    'taxInformation' => [
        [
                'country' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'webData' => [
        'webAddress' => '',
        'webAddressId' => ''
    ]
  ],
  'organization' => [
    'dateOfIncorporation' => '',
    'description' => '',
    'doingBusinessAs' => '',
    'email' => '',
    'legalName' => '',
    'phone' => [
        
    ],
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'stockData' => [
        'marketIdentifier' => '',
        'stockNumber' => '',
        'tickerSymbol' => ''
    ],
    'taxInformation' => [
        [
                
        ]
    ],
    'taxReportingClassification' => [
        'businessType' => '',
        'financialInstitutionNumber' => '',
        'mainSourceOfIncome' => '',
        'type' => ''
    ],
    'type' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => '',
    'webData' => [
        
    ]
  ],
  'reference' => '',
  'soleProprietorship' => [
    'countryOfGoverningLaw' => '',
    'dateOfIncorporation' => '',
    'doingBusinessAs' => '',
    'name' => '',
    'principalPlaceOfBusiness' => [
        
    ],
    'registeredAddress' => [
        
    ],
    'registrationNumber' => '',
    'vatAbsenceReason' => '',
    'vatNumber' => ''
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id');
$request->setRequestMethod('PATCH');
$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}}/legalEntities/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/legalEntities/:id", payload, headers)

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

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

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

payload = {
    "capabilities": {},
    "entityAssociations": [
        {
            "associatorId": "",
            "entityType": "",
            "jobTitle": "",
            "legalEntityId": "",
            "name": "",
            "type": ""
        }
    ],
    "individual": {
        "birthData": { "dateOfBirth": "" },
        "email": "",
        "identificationData": {
            "cardNumber": "",
            "expiryDate": "",
            "issuerCountry": "",
            "issuerState": "",
            "nationalIdExempt": False,
            "number": "",
            "type": ""
        },
        "name": {
            "firstName": "",
            "infix": "",
            "lastName": ""
        },
        "nationality": "",
        "phone": {
            "number": "",
            "type": ""
        },
        "residentialAddress": {
            "city": "",
            "country": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": "",
            "street2": ""
        },
        "taxInformation": [
            {
                "country": "",
                "number": "",
                "type": ""
            }
        ],
        "webData": {
            "webAddress": "",
            "webAddressId": ""
        }
    },
    "organization": {
        "dateOfIncorporation": "",
        "description": "",
        "doingBusinessAs": "",
        "email": "",
        "legalName": "",
        "phone": {},
        "principalPlaceOfBusiness": {},
        "registeredAddress": {},
        "registrationNumber": "",
        "stockData": {
            "marketIdentifier": "",
            "stockNumber": "",
            "tickerSymbol": ""
        },
        "taxInformation": [{}],
        "taxReportingClassification": {
            "businessType": "",
            "financialInstitutionNumber": "",
            "mainSourceOfIncome": "",
            "type": ""
        },
        "type": "",
        "vatAbsenceReason": "",
        "vatNumber": "",
        "webData": {}
    },
    "reference": "",
    "soleProprietorship": {
        "countryOfGoverningLaw": "",
        "dateOfIncorporation": "",
        "doingBusinessAs": "",
        "name": "",
        "principalPlaceOfBusiness": {},
        "registeredAddress": {},
        "registrationNumber": "",
        "vatAbsenceReason": "",
        "vatNumber": ""
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\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.patch('/baseUrl/legalEntities/:id') do |req|
  req.body = "{\n  \"capabilities\": {},\n  \"entityAssociations\": [\n    {\n      \"associatorId\": \"\",\n      \"entityType\": \"\",\n      \"jobTitle\": \"\",\n      \"legalEntityId\": \"\",\n      \"name\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"individual\": {\n    \"birthData\": {\n      \"dateOfBirth\": \"\"\n    },\n    \"email\": \"\",\n    \"identificationData\": {\n      \"cardNumber\": \"\",\n      \"expiryDate\": \"\",\n      \"issuerCountry\": \"\",\n      \"issuerState\": \"\",\n      \"nationalIdExempt\": false,\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"name\": {\n      \"firstName\": \"\",\n      \"infix\": \"\",\n      \"lastName\": \"\"\n    },\n    \"nationality\": \"\",\n    \"phone\": {\n      \"number\": \"\",\n      \"type\": \"\"\n    },\n    \"residentialAddress\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\",\n      \"street\": \"\",\n      \"street2\": \"\"\n    },\n    \"taxInformation\": [\n      {\n        \"country\": \"\",\n        \"number\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"webData\": {\n      \"webAddress\": \"\",\n      \"webAddressId\": \"\"\n    }\n  },\n  \"organization\": {\n    \"dateOfIncorporation\": \"\",\n    \"description\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"email\": \"\",\n    \"legalName\": \"\",\n    \"phone\": {},\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"stockData\": {\n      \"marketIdentifier\": \"\",\n      \"stockNumber\": \"\",\n      \"tickerSymbol\": \"\"\n    },\n    \"taxInformation\": [\n      {}\n    ],\n    \"taxReportingClassification\": {\n      \"businessType\": \"\",\n      \"financialInstitutionNumber\": \"\",\n      \"mainSourceOfIncome\": \"\",\n      \"type\": \"\"\n    },\n    \"type\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\",\n    \"webData\": {}\n  },\n  \"reference\": \"\",\n  \"soleProprietorship\": {\n    \"countryOfGoverningLaw\": \"\",\n    \"dateOfIncorporation\": \"\",\n    \"doingBusinessAs\": \"\",\n    \"name\": \"\",\n    \"principalPlaceOfBusiness\": {},\n    \"registeredAddress\": {},\n    \"registrationNumber\": \"\",\n    \"vatAbsenceReason\": \"\",\n    \"vatNumber\": \"\"\n  },\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

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

    let payload = json!({
        "capabilities": json!({}),
        "entityAssociations": (
            json!({
                "associatorId": "",
                "entityType": "",
                "jobTitle": "",
                "legalEntityId": "",
                "name": "",
                "type": ""
            })
        ),
        "individual": json!({
            "birthData": json!({"dateOfBirth": ""}),
            "email": "",
            "identificationData": json!({
                "cardNumber": "",
                "expiryDate": "",
                "issuerCountry": "",
                "issuerState": "",
                "nationalIdExempt": false,
                "number": "",
                "type": ""
            }),
            "name": json!({
                "firstName": "",
                "infix": "",
                "lastName": ""
            }),
            "nationality": "",
            "phone": json!({
                "number": "",
                "type": ""
            }),
            "residentialAddress": json!({
                "city": "",
                "country": "",
                "postalCode": "",
                "stateOrProvince": "",
                "street": "",
                "street2": ""
            }),
            "taxInformation": (
                json!({
                    "country": "",
                    "number": "",
                    "type": ""
                })
            ),
            "webData": json!({
                "webAddress": "",
                "webAddressId": ""
            })
        }),
        "organization": json!({
            "dateOfIncorporation": "",
            "description": "",
            "doingBusinessAs": "",
            "email": "",
            "legalName": "",
            "phone": json!({}),
            "principalPlaceOfBusiness": json!({}),
            "registeredAddress": json!({}),
            "registrationNumber": "",
            "stockData": json!({
                "marketIdentifier": "",
                "stockNumber": "",
                "tickerSymbol": ""
            }),
            "taxInformation": (json!({})),
            "taxReportingClassification": json!({
                "businessType": "",
                "financialInstitutionNumber": "",
                "mainSourceOfIncome": "",
                "type": ""
            }),
            "type": "",
            "vatAbsenceReason": "",
            "vatNumber": "",
            "webData": json!({})
        }),
        "reference": "",
        "soleProprietorship": json!({
            "countryOfGoverningLaw": "",
            "dateOfIncorporation": "",
            "doingBusinessAs": "",
            "name": "",
            "principalPlaceOfBusiness": json!({}),
            "registeredAddress": json!({}),
            "registrationNumber": "",
            "vatAbsenceReason": "",
            "vatNumber": ""
        }),
        "type": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/legalEntities/:id \
  --header 'content-type: application/json' \
  --data '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}'
echo '{
  "capabilities": {},
  "entityAssociations": [
    {
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    }
  ],
  "individual": {
    "birthData": {
      "dateOfBirth": ""
    },
    "email": "",
    "identificationData": {
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    },
    "name": {
      "firstName": "",
      "infix": "",
      "lastName": ""
    },
    "nationality": "",
    "phone": {
      "number": "",
      "type": ""
    },
    "residentialAddress": {
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    },
    "taxInformation": [
      {
        "country": "",
        "number": "",
        "type": ""
      }
    ],
    "webData": {
      "webAddress": "",
      "webAddressId": ""
    }
  },
  "organization": {
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": {},
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    },
    "taxInformation": [
      {}
    ],
    "taxReportingClassification": {
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    },
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": {}
  },
  "reference": "",
  "soleProprietorship": {
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": {},
    "registeredAddress": {},
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  },
  "type": ""
}' |  \
  http PATCH {{baseUrl}}/legalEntities/:id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "capabilities": {},\n  "entityAssociations": [\n    {\n      "associatorId": "",\n      "entityType": "",\n      "jobTitle": "",\n      "legalEntityId": "",\n      "name": "",\n      "type": ""\n    }\n  ],\n  "individual": {\n    "birthData": {\n      "dateOfBirth": ""\n    },\n    "email": "",\n    "identificationData": {\n      "cardNumber": "",\n      "expiryDate": "",\n      "issuerCountry": "",\n      "issuerState": "",\n      "nationalIdExempt": false,\n      "number": "",\n      "type": ""\n    },\n    "name": {\n      "firstName": "",\n      "infix": "",\n      "lastName": ""\n    },\n    "nationality": "",\n    "phone": {\n      "number": "",\n      "type": ""\n    },\n    "residentialAddress": {\n      "city": "",\n      "country": "",\n      "postalCode": "",\n      "stateOrProvince": "",\n      "street": "",\n      "street2": ""\n    },\n    "taxInformation": [\n      {\n        "country": "",\n        "number": "",\n        "type": ""\n      }\n    ],\n    "webData": {\n      "webAddress": "",\n      "webAddressId": ""\n    }\n  },\n  "organization": {\n    "dateOfIncorporation": "",\n    "description": "",\n    "doingBusinessAs": "",\n    "email": "",\n    "legalName": "",\n    "phone": {},\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "stockData": {\n      "marketIdentifier": "",\n      "stockNumber": "",\n      "tickerSymbol": ""\n    },\n    "taxInformation": [\n      {}\n    ],\n    "taxReportingClassification": {\n      "businessType": "",\n      "financialInstitutionNumber": "",\n      "mainSourceOfIncome": "",\n      "type": ""\n    },\n    "type": "",\n    "vatAbsenceReason": "",\n    "vatNumber": "",\n    "webData": {}\n  },\n  "reference": "",\n  "soleProprietorship": {\n    "countryOfGoverningLaw": "",\n    "dateOfIncorporation": "",\n    "doingBusinessAs": "",\n    "name": "",\n    "principalPlaceOfBusiness": {},\n    "registeredAddress": {},\n    "registrationNumber": "",\n    "vatAbsenceReason": "",\n    "vatNumber": ""\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "capabilities": [],
  "entityAssociations": [
    [
      "associatorId": "",
      "entityType": "",
      "jobTitle": "",
      "legalEntityId": "",
      "name": "",
      "type": ""
    ]
  ],
  "individual": [
    "birthData": ["dateOfBirth": ""],
    "email": "",
    "identificationData": [
      "cardNumber": "",
      "expiryDate": "",
      "issuerCountry": "",
      "issuerState": "",
      "nationalIdExempt": false,
      "number": "",
      "type": ""
    ],
    "name": [
      "firstName": "",
      "infix": "",
      "lastName": ""
    ],
    "nationality": "",
    "phone": [
      "number": "",
      "type": ""
    ],
    "residentialAddress": [
      "city": "",
      "country": "",
      "postalCode": "",
      "stateOrProvince": "",
      "street": "",
      "street2": ""
    ],
    "taxInformation": [
      [
        "country": "",
        "number": "",
        "type": ""
      ]
    ],
    "webData": [
      "webAddress": "",
      "webAddressId": ""
    ]
  ],
  "organization": [
    "dateOfIncorporation": "",
    "description": "",
    "doingBusinessAs": "",
    "email": "",
    "legalName": "",
    "phone": [],
    "principalPlaceOfBusiness": [],
    "registeredAddress": [],
    "registrationNumber": "",
    "stockData": [
      "marketIdentifier": "",
      "stockNumber": "",
      "tickerSymbol": ""
    ],
    "taxInformation": [[]],
    "taxReportingClassification": [
      "businessType": "",
      "financialInstitutionNumber": "",
      "mainSourceOfIncome": "",
      "type": ""
    ],
    "type": "",
    "vatAbsenceReason": "",
    "vatNumber": "",
    "webData": []
  ],
  "reference": "",
  "soleProprietorship": [
    "countryOfGoverningLaw": "",
    "dateOfIncorporation": "",
    "doingBusinessAs": "",
    "name": "",
    "principalPlaceOfBusiness": [],
    "registeredAddress": [],
    "registrationNumber": "",
    "vatAbsenceReason": "",
    "vatNumber": ""
  ],
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/legalEntities/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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

{
  "id": "YOUR_LEGAL_ENTITY",
  "individual": {
    "name": {
      "firstName": "Explorer",
      "lastName": "Company based in US"
    },
    "residentialAddress": {
      "country": "US"
    }
  },
  "type": "individual"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "entityAssociations": [
    {
      "associatorId": "YOUR_LEGAL_ENTITY_1",
      "entityType": "individual",
      "jobTitle": "CEO",
      "legalEntityId": "YOUR_LEGAL_ENTITY_2",
      "name": "Simone Hopper",
      "type": "uboThroughControl"
    }
  ],
  "id": "YOUR_LEGAL_ENTITY_1",
  "organization": {
    "description": "FinTech",
    "doingBusinessAs": "Adyen BV",
    "email": "john.doe@adyen.com",
    "legalName": "Adyen BV",
    "phone": {
      "countryCode": "NL",
      "number": "646467363",
      "type": "mobile"
    },
    "registeredAddress": {
      "city": "AMS",
      "country": "NL",
      "postalCode": "1234EE",
      "stateOrProvince": "NH",
      "street": "Simon Carmiggeltstraat 6 - 50"
    },
    "registrationNumber": "",
    "stockData": {
      "marketIdentifier": "ADYN",
      "stockNumber": "NL012345ABC4",
      "tickerSymbol": "ADYN.M"
    },
    "taxExempt": false,
    "type": "listedPublicCompany"
  },
  "type": "organization"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "entityAssociations": [
    {
      "associatorId": "YOUR_LEGAL_ENTITY_1",
      "entityType": "soleProprietorship",
      "legalEntityId": "YOUR_LEGAL_ENTITY_2",
      "type": "soleProprietorship"
    }
  ],
  "id": "YOUR_LEGAL_ENTITY_1",
  "individual": {
    "birthData": {
      "dateOfBirth": "1990-06-21"
    },
    "email": "s.eller@example.com",
    "name": {
      "firstName": "Shelly",
      "lastName": "Eller"
    },
    "residentialAddress": {
      "city": "Amsterdam",
      "country": "NL",
      "postalCode": "1011DJ",
      "street": "Simon Carmiggeltstraat 6 - 50"
    }
  },
  "type": "individual"
}
POST Generate PCI questionnaire
{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates
QUERY PARAMS

id
BODY json

{
  "language": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates");

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  \"language\": \"\"\n}");

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

(client/post "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates" {:content-type :json
                                                                                                     :form-params {:language ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"language\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"),
    Content = new StringContent("{\n  \"language\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"language\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"

	payload := strings.NewReader("{\n  \"language\": \"\"\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/legalEntities/:id/pciQuestionnaires/generatePciTemplates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 20

{
  "language": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"language\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"language\": \"\"\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  \"language\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates")
  .header("content-type", "application/json")
  .body("{\n  \"language\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  language: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates',
  headers: {'content-type': 'application/json'},
  data: {language: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"language":""}'
};

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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "language": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"language\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates")
  .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/legalEntities/:id/pciQuestionnaires/generatePciTemplates',
  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({language: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates',
  headers: {'content-type': 'application/json'},
  body: {language: ''},
  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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates');

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

req.type('json');
req.send({
  language: ''
});

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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates',
  headers: {'content-type': 'application/json'},
  data: {language: ''}
};

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

const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"language":""}'
};

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 = @{ @"language": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"]
                                                       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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"language\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates",
  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([
    'language' => ''
  ]),
  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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates', [
  'body' => '{
  "language": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'language' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'language' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates');
$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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "language": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "language": ""
}'
import http.client

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

payload = "{\n  \"language\": \"\"\n}"

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

conn.request("POST", "/baseUrl/legalEntities/:id/pciQuestionnaires/generatePciTemplates", payload, headers)

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

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

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"

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

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

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

url <- "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates"

payload <- "{\n  \"language\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates")

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  \"language\": \"\"\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/legalEntities/:id/pciQuestionnaires/generatePciTemplates') do |req|
  req.body = "{\n  \"language\": \"\"\n}"
end

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

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

    let payload = json!({"language": ""});

    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}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates \
  --header 'content-type: application/json' \
  --data '{
  "language": ""
}'
echo '{
  "language": ""
}' |  \
  http POST {{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "language": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/pciQuestionnaires/generatePciTemplates
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["language": ""] as [String : Any]

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

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

{
  "content": "l345JKNFj345FJLG3lk...",
  "language": "fr",
  "pciTemplateReferences": [
    "PCIT-T7KC6VGL",
    "PCIT-PKB6DKS4"
  ]
}
GET Get PCI questionnaire details
{{baseUrl}}/legalEntities/:id/pciQuestionnaires
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires"

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}}/legalEntities/:id/pciQuestionnaires"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/legalEntities/:id/pciQuestionnaires");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/pciQuestionnaires"

	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/legalEntities/:id/pciQuestionnaires HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires';
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}}/legalEntities/:id/pciQuestionnaires',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/pciQuestionnaires',
  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}}/legalEntities/:id/pciQuestionnaires'
};

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

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

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

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

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

const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires';
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}}/legalEntities/:id/pciQuestionnaires"]
                                                       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}}/legalEntities/:id/pciQuestionnaires" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/pciQuestionnaires",
  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}}/legalEntities/:id/pciQuestionnaires');

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires"

response = requests.get(url)

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

url <- "{{baseUrl}}/legalEntities/:id/pciQuestionnaires"

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

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

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

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/legalEntities/:id/pciQuestionnaires') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/legalEntities/:id/pciQuestionnaires
http GET {{baseUrl}}/legalEntities/:id/pciQuestionnaires
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/pciQuestionnaires
import Foundation

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

{
  "data": [
    {
      "createdAt": "2023-03-02T17:54:19.538365Z",
      "id": "PCID422GZ22322565HHMH48CW63CPH",
      "validUntil": "2024-03-01T17:54:19.538365Z"
    },
    {
      "createdAt": "2023-03-02T17:54:19.538365Z",
      "id": "PCID422GZ22322565HHMH49CW75Z9H",
      "validUntil": "2024-03-01T17:54:19.538365Z"
    }
  ]
}
GET Get PCI questionnaire
{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid
QUERY PARAMS

id
pciid
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid")
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid"

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}}/legalEntities/:id/pciQuestionnaires/:pciid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid"

	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/legalEntities/:id/pciQuestionnaires/:pciid HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid';
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}}/legalEntities/:id/pciQuestionnaires/:pciid',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/pciQuestionnaires/:pciid',
  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}}/legalEntities/:id/pciQuestionnaires/:pciid'
};

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

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

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

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}}/legalEntities/:id/pciQuestionnaires/:pciid'
};

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

const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid';
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}}/legalEntities/:id/pciQuestionnaires/:pciid"]
                                                       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}}/legalEntities/:id/pciQuestionnaires/:pciid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid",
  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}}/legalEntities/:id/pciQuestionnaires/:pciid');

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

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

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

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

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

conn.request("GET", "/baseUrl/legalEntities/:id/pciQuestionnaires/:pciid")

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

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

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid"

response = requests.get(url)

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

url <- "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid"

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

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

url = URI("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid")

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/legalEntities/:id/pciQuestionnaires/:pciid') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/legalEntities/:id/pciQuestionnaires/:pciid
http GET {{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/pciQuestionnaires/:pciid
import Foundation

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

{
  "content": "JVBERi0xLjUKJdDUxdgKMTAg.....",
  "createdAt": "2023-03-02T17:54:19.538365Z",
  "id": "PCID422GZ22322565HHMH48CW63CPH",
  "validUntil": "2024-03-01T17:54:19.538365Z"
}
POST Sign PCI questionnaire
{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates
QUERY PARAMS

id
BODY json

{
  "pciTemplateReferences": [],
  "signedBy": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates");

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  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}");

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

(client/post "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates" {:content-type :json
                                                                                                 :form-params {:pciTemplateReferences []
                                                                                                               :signedBy ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"),
    Content = new StringContent("{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"

	payload := strings.NewReader("{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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/legalEntities/:id/pciQuestionnaires/signPciTemplates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 51

{
  "pciTemplateReferences": [],
  "signedBy": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates")
  .header("content-type", "application/json")
  .body("{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  pciTemplateReferences: [],
  signedBy: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates',
  headers: {'content-type': 'application/json'},
  data: {pciTemplateReferences: [], signedBy: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"pciTemplateReferences":[],"signedBy":""}'
};

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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "pciTemplateReferences": [],\n  "signedBy": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates")
  .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/legalEntities/:id/pciQuestionnaires/signPciTemplates',
  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({pciTemplateReferences: [], signedBy: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates',
  headers: {'content-type': 'application/json'},
  body: {pciTemplateReferences: [], signedBy: ''},
  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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates');

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

req.type('json');
req.send({
  pciTemplateReferences: [],
  signedBy: ''
});

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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates',
  headers: {'content-type': 'application/json'},
  data: {pciTemplateReferences: [], signedBy: ''}
};

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

const url = '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"pciTemplateReferences":[],"signedBy":""}'
};

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 = @{ @"pciTemplateReferences": @[  ],
                              @"signedBy": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"]
                                                       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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates",
  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([
    'pciTemplateReferences' => [
        
    ],
    'signedBy' => ''
  ]),
  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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates', [
  'body' => '{
  "pciTemplateReferences": [],
  "signedBy": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'pciTemplateReferences' => [
    
  ],
  'signedBy' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'pciTemplateReferences' => [
    
  ],
  'signedBy' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates');
$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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "pciTemplateReferences": [],
  "signedBy": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "pciTemplateReferences": [],
  "signedBy": ""
}'
import http.client

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

payload = "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}"

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

conn.request("POST", "/baseUrl/legalEntities/:id/pciQuestionnaires/signPciTemplates", payload, headers)

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

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

url = "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"

payload = {
    "pciTemplateReferences": [],
    "signedBy": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates"

payload <- "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates")

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  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\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/legalEntities/:id/pciQuestionnaires/signPciTemplates') do |req|
  req.body = "{\n  \"pciTemplateReferences\": [],\n  \"signedBy\": \"\"\n}"
end

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

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

    let payload = json!({
        "pciTemplateReferences": (),
        "signedBy": ""
    });

    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}}/legalEntities/:id/pciQuestionnaires/signPciTemplates \
  --header 'content-type: application/json' \
  --data '{
  "pciTemplateReferences": [],
  "signedBy": ""
}'
echo '{
  "pciTemplateReferences": [],
  "signedBy": ""
}' |  \
  http POST {{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "pciTemplateReferences": [],\n  "signedBy": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/pciQuestionnaires/signPciTemplates
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "pciTemplateReferences": [],
  "signedBy": ""
] as [String : Any]

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

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

{
  "pciQuestionnaireIds": [
    "PCID422GZ22322565HHMH48CW63CPH",
    "PCID422GZ22322565HHMH49CW75Z9H"
  ]
}
PATCH Accept Terms of Service
{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid
QUERY PARAMS

id
termsofservicedocumentid
BODY json

{
  "acceptedBy": "",
  "ipAddress": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid");

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  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}");

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

(client/patch "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid" {:content-type :json
                                                                                                        :form-params {:acceptedBy ""
                                                                                                                      :ipAddress ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"),
    Content = new StringContent("{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\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}}/legalEntities/:id/termsOfService/:termsofservicedocumentid");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"

	payload := strings.NewReader("{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/legalEntities/:id/termsOfService/:termsofservicedocumentid HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 41

{
  "acceptedBy": "",
  "ipAddress": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\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  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")
  .header("content-type", "application/json")
  .body("{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  acceptedBy: '',
  ipAddress: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid',
  headers: {'content-type': 'application/json'},
  data: {acceptedBy: '', ipAddress: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"acceptedBy":"","ipAddress":""}'
};

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}}/legalEntities/:id/termsOfService/:termsofservicedocumentid',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "acceptedBy": "",\n  "ipAddress": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/termsOfService/:termsofservicedocumentid',
  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({acceptedBy: '', ipAddress: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid',
  headers: {'content-type': 'application/json'},
  body: {acceptedBy: '', ipAddress: ''},
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid');

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

req.type('json');
req.send({
  acceptedBy: '',
  ipAddress: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid',
  headers: {'content-type': 'application/json'},
  data: {acceptedBy: '', ipAddress: ''}
};

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

const url = '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"acceptedBy":"","ipAddress":""}'
};

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 = @{ @"acceptedBy": @"",
                              @"ipAddress": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/legalEntities/:id/termsOfService/:termsofservicedocumentid" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'acceptedBy' => '',
    'ipAddress' => ''
  ]),
  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('PATCH', '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid', [
  'body' => '{
  "acceptedBy": "",
  "ipAddress": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'acceptedBy' => '',
  'ipAddress' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'acceptedBy' => '',
  'ipAddress' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid');
$request->setRequestMethod('PATCH');
$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}}/legalEntities/:id/termsOfService/:termsofservicedocumentid' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "acceptedBy": "",
  "ipAddress": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "acceptedBy": "",
  "ipAddress": ""
}'
import http.client

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

payload = "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/legalEntities/:id/termsOfService/:termsofservicedocumentid", payload, headers)

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

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

url = "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"

payload = {
    "acceptedBy": "",
    "ipAddress": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid"

payload <- "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\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.patch('/baseUrl/legalEntities/:id/termsOfService/:termsofservicedocumentid') do |req|
  req.body = "{\n  \"acceptedBy\": \"\",\n  \"ipAddress\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

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

    let payload = json!({
        "acceptedBy": "",
        "ipAddress": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid \
  --header 'content-type: application/json' \
  --data '{
  "acceptedBy": "",
  "ipAddress": ""
}'
echo '{
  "acceptedBy": "",
  "ipAddress": ""
}' |  \
  http PATCH {{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "acceptedBy": "",\n  "ipAddress": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "acceptedBy": "",
  "ipAddress": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/legalEntities/:id/termsOfService/:termsofservicedocumentid")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
POST Get Terms of Service document
{{baseUrl}}/legalEntities/:id/termsOfService
QUERY PARAMS

id
BODY json

{
  "language": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/legalEntities/:id/termsOfService");

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  \"language\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/legalEntities/:id/termsOfService" {:content-type :json
                                                                             :form-params {:language ""
                                                                                           :type ""}})
require "http/client"

url = "{{baseUrl}}/legalEntities/:id/termsOfService"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"language\": \"\",\n  \"type\": \"\"\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}}/legalEntities/:id/termsOfService"),
    Content = new StringContent("{\n  \"language\": \"\",\n  \"type\": \"\"\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}}/legalEntities/:id/termsOfService");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"language\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/termsOfService"

	payload := strings.NewReader("{\n  \"language\": \"\",\n  \"type\": \"\"\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/legalEntities/:id/termsOfService HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 34

{
  "language": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/legalEntities/:id/termsOfService")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"language\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/legalEntities/:id/termsOfService"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"language\": \"\",\n  \"type\": \"\"\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  \"language\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/termsOfService")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/legalEntities/:id/termsOfService")
  .header("content-type", "application/json")
  .body("{\n  \"language\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  language: '',
  type: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/legalEntities/:id/termsOfService');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService',
  headers: {'content-type': 'application/json'},
  data: {language: '', type: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/termsOfService';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"language":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/legalEntities/:id/termsOfService',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "language": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"language\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/legalEntities/:id/termsOfService")
  .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/legalEntities/:id/termsOfService',
  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({language: '', type: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService',
  headers: {'content-type': 'application/json'},
  body: {language: '', type: ''},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/legalEntities/:id/termsOfService');

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

req.type('json');
req.send({
  language: '',
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/legalEntities/:id/termsOfService',
  headers: {'content-type': 'application/json'},
  data: {language: '', type: ''}
};

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

const url = '{{baseUrl}}/legalEntities/:id/termsOfService';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"language":"","type":""}'
};

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 = @{ @"language": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/legalEntities/:id/termsOfService"]
                                                       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}}/legalEntities/:id/termsOfService" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"language\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/termsOfService",
  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([
    'language' => '',
    'type' => ''
  ]),
  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}}/legalEntities/:id/termsOfService', [
  'body' => '{
  "language": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/legalEntities/:id/termsOfService');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'language' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'language' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/legalEntities/:id/termsOfService');
$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}}/legalEntities/:id/termsOfService' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "language": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/legalEntities/:id/termsOfService' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "language": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"language\": \"\",\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/legalEntities/:id/termsOfService", payload, headers)

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

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

url = "{{baseUrl}}/legalEntities/:id/termsOfService"

payload = {
    "language": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/legalEntities/:id/termsOfService"

payload <- "{\n  \"language\": \"\",\n  \"type\": \"\"\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}}/legalEntities/:id/termsOfService")

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  \"language\": \"\",\n  \"type\": \"\"\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/legalEntities/:id/termsOfService') do |req|
  req.body = "{\n  \"language\": \"\",\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "language": "",
        "type": ""
    });

    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}}/legalEntities/:id/termsOfService \
  --header 'content-type: application/json' \
  --data '{
  "language": "",
  "type": ""
}'
echo '{
  "language": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/legalEntities/:id/termsOfService \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "language": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/termsOfService
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "language": "",
  "type": ""
] as [String : Any]

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

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

{
  "document": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBv+f/ub0j6JPRX+E3EmC==",
  "id": "YOUR_LEGAL_ENTITY",
  "language": "en",
  "termsOfServiceDocumentId": "abc123",
  "type": "adyenIssuing"
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos"

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}}/legalEntities/:id/termsOfServiceAcceptanceInfos"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos"

	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/legalEntities/:id/termsOfServiceAcceptanceInfos HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos';
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}}/legalEntities/:id/termsOfServiceAcceptanceInfos',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/legalEntities/:id/termsOfServiceAcceptanceInfos',
  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}}/legalEntities/:id/termsOfServiceAcceptanceInfos'
};

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

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

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

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

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

const url = '{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos';
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}}/legalEntities/:id/termsOfServiceAcceptanceInfos"]
                                                       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}}/legalEntities/:id/termsOfServiceAcceptanceInfos" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos",
  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}}/legalEntities/:id/termsOfServiceAcceptanceInfos');

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos"

response = requests.get(url)

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

url <- "{{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos"

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

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

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

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/legalEntities/:id/termsOfServiceAcceptanceInfos') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/legalEntities/:id/termsOfServiceAcceptanceInfos
http GET {{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/legalEntities/:id/termsOfServiceAcceptanceInfos
import Foundation

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

{
  "data": [
    {
      "acceptedBy": "YOUR_LEGAL_ENTITY_2",
      "acceptedFor": "YOUR_LEGAL_ENTITY_1",
      "createdAt": "2022-12-05T13:36:58.212253Z",
      "id": "TOSA000AB00000000B2AAAB2BA0AA0",
      "type": "adyenIssuing"
    }
  ]
}
POST Create a transfer instrument
{{baseUrl}}/transferInstruments
BODY json

{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/transferInstruments" {:content-type :json
                                                                :form-params {:bankAccount {:accountIdentification ""
                                                                                            :accountType ""
                                                                                            :countryCode ""}
                                                                              :legalEntityId ""
                                                                              :type ""}})
require "http/client"

url = "{{baseUrl}}/transferInstruments"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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}}/transferInstruments"),
    Content = new StringContent("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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}}/transferInstruments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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/transferInstruments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 141

{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/transferInstruments")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transferInstruments"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/transferInstruments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/transferInstruments")
  .header("content-type", "application/json")
  .body("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  bankAccount: {
    accountIdentification: '',
    accountType: '',
    countryCode: ''
  },
  legalEntityId: '',
  type: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transferInstruments',
  headers: {'content-type': 'application/json'},
  data: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transferInstruments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"accountIdentification":"","accountType":"","countryCode":""},"legalEntityId":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/transferInstruments',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "bankAccount": {\n    "accountIdentification": "",\n    "accountType": "",\n    "countryCode": ""\n  },\n  "legalEntityId": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/transferInstruments")
  .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/transferInstruments',
  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({
  bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
  legalEntityId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transferInstruments',
  headers: {'content-type': 'application/json'},
  body: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  bankAccount: {
    accountIdentification: '',
    accountType: '',
    countryCode: ''
  },
  legalEntityId: '',
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/transferInstruments',
  headers: {'content-type': 'application/json'},
  data: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/transferInstruments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"accountIdentification":"","accountType":"","countryCode":""},"legalEntityId":"","type":""}'
};

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 = @{ @"bankAccount": @{ @"accountIdentification": @"", @"accountType": @"", @"countryCode": @"" },
                              @"legalEntityId": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/transferInstruments"]
                                                       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}}/transferInstruments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transferInstruments",
  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([
    'bankAccount' => [
        'accountIdentification' => '',
        'accountType' => '',
        'countryCode' => ''
    ],
    'legalEntityId' => '',
    'type' => ''
  ]),
  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}}/transferInstruments', [
  'body' => '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'bankAccount' => [
    'accountIdentification' => '',
    'accountType' => '',
    'countryCode' => ''
  ],
  'legalEntityId' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'bankAccount' => [
    'accountIdentification' => '',
    'accountType' => '',
    'countryCode' => ''
  ],
  'legalEntityId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/transferInstruments');
$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}}/transferInstruments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transferInstruments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/transferInstruments"

payload = {
    "bankAccount": {
        "accountIdentification": "",
        "accountType": "",
        "countryCode": ""
    },
    "legalEntityId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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}}/transferInstruments")

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  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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/transferInstruments') do |req|
  req.body = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "bankAccount": json!({
            "accountIdentification": "",
            "accountType": "",
            "countryCode": ""
        }),
        "legalEntityId": "",
        "type": ""
    });

    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}}/transferInstruments \
  --header 'content-type: application/json' \
  --data '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
echo '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/transferInstruments \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "bankAccount": {\n    "accountIdentification": "",\n    "accountType": "",\n    "countryCode": ""\n  },\n  "legalEntityId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/transferInstruments
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "bankAccount": [
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  ],
  "legalEntityId": "",
  "type": ""
] as [String : Any]

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

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

{
  "bankAccount": {
    "accountIdentification": {
      "iban": "NL62ABNA0000000123",
      "type": "iban"
    },
    "countryCode": "NL"
  },
  "id": "SE322KH223222F5GXZFNM3BGP",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "type": "bankAccount"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "bankAccount": {
    "accountIdentification": {
      "accountNumber": "0000000123",
      "accountType": "checking",
      "routingNumber": "121202211",
      "type": "usLocal"
    },
    "countryCode": "US"
  },
  "id": "SE322JV223222F5GJVKHH8DTC",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "type": "bankAccount"
}
DELETE Delete a transfer instrument
{{baseUrl}}/transferInstruments/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transferInstruments/:id");

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

(client/delete "{{baseUrl}}/transferInstruments/:id")
require "http/client"

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

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

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

func main() {

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

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

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

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

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

}
DELETE /baseUrl/transferInstruments/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transferInstruments/:id"))
    .method("DELETE", 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}}/transferInstruments/:id")
  .delete(null)
  .build();

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/transferInstruments/:id'};

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/transferInstruments/:id")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transferInstruments/: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: 'DELETE', url: '{{baseUrl}}/transferInstruments/:id'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/transferInstruments/: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: 'DELETE', url: '{{baseUrl}}/transferInstruments/:id'};

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

const url = '{{baseUrl}}/transferInstruments/:id';
const options = {method: 'DELETE'};

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}}/transferInstruments/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/transferInstruments/:id")

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

response = conn.delete('/baseUrl/transferInstruments/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

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

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

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

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()
GET Get a transfer instrument
{{baseUrl}}/transferInstruments/: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}}/transferInstruments/:id");

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

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

url = "{{baseUrl}}/transferInstruments/: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}}/transferInstruments/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transferInstruments/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/transferInstruments/: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/transferInstruments/:id HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transferInstruments/: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}}/transferInstruments/:id',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transferInstruments/: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}}/transferInstruments/: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}}/transferInstruments/: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}}/transferInstruments/:id'};

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

const url = '{{baseUrl}}/transferInstruments/: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}}/transferInstruments/: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}}/transferInstruments/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transferInstruments/: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}}/transferInstruments/:id');

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/transferInstruments/: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/transferInstruments/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transferInstruments/: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}}/transferInstruments/:id
http GET {{baseUrl}}/transferInstruments/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/transferInstruments/:id
import Foundation

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

{
  "bankAccount": {
    "accountIdentification": {
      "iban": "NL62ABNA0000000123",
      "type": "iban"
    },
    "countryCode": "NL"
  },
  "id": "SE322KH223222F5GXZFNM3BGP",
  "legalEntityId": "YOUR_LEGAL_ENTITY",
  "type": "bankAccount"
}
PATCH Update a transfer instrument
{{baseUrl}}/transferInstruments/:id
QUERY PARAMS

id
BODY json

{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transferInstruments/:id");

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  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}");

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

(client/patch "{{baseUrl}}/transferInstruments/:id" {:content-type :json
                                                                     :form-params {:bankAccount {:accountIdentification ""
                                                                                                 :accountType ""
                                                                                                 :countryCode ""}
                                                                                   :legalEntityId ""
                                                                                   :type ""}})
require "http/client"

url = "{{baseUrl}}/transferInstruments/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/transferInstruments/:id"),
    Content = new StringContent("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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}}/transferInstruments/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/transferInstruments/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 141

{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/transferInstruments/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transferInstruments/:id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/transferInstruments/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/transferInstruments/:id")
  .header("content-type", "application/json")
  .body("{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  bankAccount: {
    accountIdentification: '',
    accountType: '',
    countryCode: ''
  },
  legalEntityId: '',
  type: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/transferInstruments/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/transferInstruments/:id',
  headers: {'content-type': 'application/json'},
  data: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transferInstruments/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"accountIdentification":"","accountType":"","countryCode":""},"legalEntityId":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/transferInstruments/:id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "bankAccount": {\n    "accountIdentification": "",\n    "accountType": "",\n    "countryCode": ""\n  },\n  "legalEntityId": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/transferInstruments/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transferInstruments/:id',
  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({
  bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
  legalEntityId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/transferInstruments/:id',
  headers: {'content-type': 'application/json'},
  body: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/transferInstruments/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  bankAccount: {
    accountIdentification: '',
    accountType: '',
    countryCode: ''
  },
  legalEntityId: '',
  type: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/transferInstruments/:id',
  headers: {'content-type': 'application/json'},
  data: {
    bankAccount: {accountIdentification: '', accountType: '', countryCode: ''},
    legalEntityId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transferInstruments/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"accountIdentification":"","accountType":"","countryCode":""},"legalEntityId":"","type":""}'
};

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 = @{ @"bankAccount": @{ @"accountIdentification": @"", @"accountType": @"", @"countryCode": @"" },
                              @"legalEntityId": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/transferInstruments/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/transferInstruments/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transferInstruments/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'bankAccount' => [
        'accountIdentification' => '',
        'accountType' => '',
        'countryCode' => ''
    ],
    'legalEntityId' => '',
    'type' => ''
  ]),
  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('PATCH', '{{baseUrl}}/transferInstruments/:id', [
  'body' => '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/transferInstruments/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'bankAccount' => [
    'accountIdentification' => '',
    'accountType' => '',
    'countryCode' => ''
  ],
  'legalEntityId' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'bankAccount' => [
    'accountIdentification' => '',
    'accountType' => '',
    'countryCode' => ''
  ],
  'legalEntityId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/transferInstruments/:id');
$request->setRequestMethod('PATCH');
$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}}/transferInstruments/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transferInstruments/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/transferInstruments/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transferInstruments/:id"

payload = {
    "bankAccount": {
        "accountIdentification": "",
        "accountType": "",
        "countryCode": ""
    },
    "legalEntityId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transferInstruments/:id"

payload <- "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transferInstruments/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\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.patch('/baseUrl/transferInstruments/:id') do |req|
  req.body = "{\n  \"bankAccount\": {\n    \"accountIdentification\": \"\",\n    \"accountType\": \"\",\n    \"countryCode\": \"\"\n  },\n  \"legalEntityId\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transferInstruments/:id";

    let payload = json!({
        "bankAccount": json!({
            "accountIdentification": "",
            "accountType": "",
            "countryCode": ""
        }),
        "legalEntityId": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/transferInstruments/:id \
  --header 'content-type: application/json' \
  --data '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}'
echo '{
  "bankAccount": {
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  },
  "legalEntityId": "",
  "type": ""
}' |  \
  http PATCH {{baseUrl}}/transferInstruments/:id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "bankAccount": {\n    "accountIdentification": "",\n    "accountType": "",\n    "countryCode": ""\n  },\n  "legalEntityId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/transferInstruments/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "bankAccount": [
    "accountIdentification": "",
    "accountType": "",
    "countryCode": ""
  ],
  "legalEntityId": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transferInstruments/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()