POST Action a Real-Time Decision
{{baseUrl}}/real_time_decisions/:real_time_decision_id/action
QUERY PARAMS

real_time_decision_id
BODY json

{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action");

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  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action" {:content-type :json
                                                                                              :form-params {:card_authorization {:decision ""}
                                                                                                            :digital_wallet_authentication {:result ""}
                                                                                                            :digital_wallet_token {:approval {:card_profile_id ""
                                                                                                                                              :email ""
                                                                                                                                              :phone ""}
                                                                                                                                   :decline {:reason ""}}}})
require "http/client"

url = "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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}}/real_time_decisions/:real_time_decision_id/action"),
    Content = new StringContent("{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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}}/real_time_decisions/:real_time_decision_id/action");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"

	payload := strings.NewReader("{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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/real_time_decisions/:real_time_decision_id/action HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 277

{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/real_time_decisions/:real_time_decision_id/action")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/real_time_decisions/:real_time_decision_id/action")
  .header("content-type", "application/json")
  .body("{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  card_authorization: {
    decision: ''
  },
  digital_wallet_authentication: {
    result: ''
  },
  digital_wallet_token: {
    approval: {
      card_profile_id: '',
      email: '',
      phone: ''
    },
    decline: {
      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}}/real_time_decisions/:real_time_decision_id/action');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/real_time_decisions/:real_time_decision_id/action',
  headers: {'content-type': 'application/json'},
  data: {
    card_authorization: {decision: ''},
    digital_wallet_authentication: {result: ''},
    digital_wallet_token: {approval: {card_profile_id: '', email: '', phone: ''}, decline: {reason: ''}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/real_time_decisions/:real_time_decision_id/action';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_authorization":{"decision":""},"digital_wallet_authentication":{"result":""},"digital_wallet_token":{"approval":{"card_profile_id":"","email":"","phone":""},"decline":{"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}}/real_time_decisions/:real_time_decision_id/action',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "card_authorization": {\n    "decision": ""\n  },\n  "digital_wallet_authentication": {\n    "result": ""\n  },\n  "digital_wallet_token": {\n    "approval": {\n      "card_profile_id": "",\n      "email": "",\n      "phone": ""\n    },\n    "decline": {\n      "reason": ""\n    }\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  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/real_time_decisions/:real_time_decision_id/action")
  .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/real_time_decisions/:real_time_decision_id/action',
  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({
  card_authorization: {decision: ''},
  digital_wallet_authentication: {result: ''},
  digital_wallet_token: {approval: {card_profile_id: '', email: '', phone: ''}, decline: {reason: ''}}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/real_time_decisions/:real_time_decision_id/action',
  headers: {'content-type': 'application/json'},
  body: {
    card_authorization: {decision: ''},
    digital_wallet_authentication: {result: ''},
    digital_wallet_token: {approval: {card_profile_id: '', email: '', phone: ''}, decline: {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}}/real_time_decisions/:real_time_decision_id/action');

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

req.type('json');
req.send({
  card_authorization: {
    decision: ''
  },
  digital_wallet_authentication: {
    result: ''
  },
  digital_wallet_token: {
    approval: {
      card_profile_id: '',
      email: '',
      phone: ''
    },
    decline: {
      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}}/real_time_decisions/:real_time_decision_id/action',
  headers: {'content-type': 'application/json'},
  data: {
    card_authorization: {decision: ''},
    digital_wallet_authentication: {result: ''},
    digital_wallet_token: {approval: {card_profile_id: '', email: '', phone: ''}, decline: {reason: ''}}
  }
};

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

const url = '{{baseUrl}}/real_time_decisions/:real_time_decision_id/action';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_authorization":{"decision":""},"digital_wallet_authentication":{"result":""},"digital_wallet_token":{"approval":{"card_profile_id":"","email":"","phone":""},"decline":{"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 = @{ @"card_authorization": @{ @"decision": @"" },
                              @"digital_wallet_authentication": @{ @"result": @"" },
                              @"digital_wallet_token": @{ @"approval": @{ @"card_profile_id": @"", @"email": @"", @"phone": @"" }, @"decline": @{ @"reason": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"]
                                                       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}}/real_time_decisions/:real_time_decision_id/action" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action",
  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([
    'card_authorization' => [
        'decision' => ''
    ],
    'digital_wallet_authentication' => [
        'result' => ''
    ],
    'digital_wallet_token' => [
        'approval' => [
                'card_profile_id' => '',
                'email' => '',
                'phone' => ''
        ],
        'decline' => [
                '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}}/real_time_decisions/:real_time_decision_id/action', [
  'body' => '{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/real_time_decisions/:real_time_decision_id/action');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'card_authorization' => [
    'decision' => ''
  ],
  'digital_wallet_authentication' => [
    'result' => ''
  ],
  'digital_wallet_token' => [
    'approval' => [
        'card_profile_id' => '',
        'email' => '',
        'phone' => ''
    ],
    'decline' => [
        'reason' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'card_authorization' => [
    'decision' => ''
  ],
  'digital_wallet_authentication' => [
    'result' => ''
  ],
  'digital_wallet_token' => [
    'approval' => [
        'card_profile_id' => '',
        'email' => '',
        'phone' => ''
    ],
    'decline' => [
        'reason' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/real_time_decisions/:real_time_decision_id/action');
$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}}/real_time_decisions/:real_time_decision_id/action' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/real_time_decisions/:real_time_decision_id/action' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}"

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

conn.request("POST", "/baseUrl/real_time_decisions/:real_time_decision_id/action", payload, headers)

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

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

url = "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"

payload = {
    "card_authorization": { "decision": "" },
    "digital_wallet_authentication": { "result": "" },
    "digital_wallet_token": {
        "approval": {
            "card_profile_id": "",
            "email": "",
            "phone": ""
        },
        "decline": { "reason": "" }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/real_time_decisions/:real_time_decision_id/action"

payload <- "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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}}/real_time_decisions/:real_time_decision_id/action")

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  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\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/real_time_decisions/:real_time_decision_id/action') do |req|
  req.body = "{\n  \"card_authorization\": {\n    \"decision\": \"\"\n  },\n  \"digital_wallet_authentication\": {\n    \"result\": \"\"\n  },\n  \"digital_wallet_token\": {\n    \"approval\": {\n      \"card_profile_id\": \"\",\n      \"email\": \"\",\n      \"phone\": \"\"\n    },\n    \"decline\": {\n      \"reason\": \"\"\n    }\n  }\n}"
end

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

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

    let payload = json!({
        "card_authorization": json!({"decision": ""}),
        "digital_wallet_authentication": json!({"result": ""}),
        "digital_wallet_token": json!({
            "approval": json!({
                "card_profile_id": "",
                "email": "",
                "phone": ""
            }),
            "decline": 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}}/real_time_decisions/:real_time_decision_id/action \
  --header 'content-type: application/json' \
  --data '{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}'
echo '{
  "card_authorization": {
    "decision": ""
  },
  "digital_wallet_authentication": {
    "result": ""
  },
  "digital_wallet_token": {
    "approval": {
      "card_profile_id": "",
      "email": "",
      "phone": ""
    },
    "decline": {
      "reason": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/real_time_decisions/:real_time_decision_id/action \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "card_authorization": {\n    "decision": ""\n  },\n  "digital_wallet_authentication": {\n    "result": ""\n  },\n  "digital_wallet_token": {\n    "approval": {\n      "card_profile_id": "",\n      "email": "",\n      "phone": ""\n    },\n    "decline": {\n      "reason": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/real_time_decisions/:real_time_decision_id/action
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "card_authorization": ["decision": ""],
  "digital_wallet_authentication": ["result": ""],
  "digital_wallet_token": [
    "approval": [
      "card_profile_id": "",
      "email": "",
      "phone": ""
    ],
    "decline": ["reason": ""]
  ]
] as [String : Any]

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

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

{
  "card_authorization": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "card_id": "card_oubs0hwk5rn6knuecxg2",
    "decision": "approve",
    "merchant_acceptor_id": "5665270011000168",
    "merchant_category_code": "5734",
    "merchant_city": "New York",
    "merchant_country": "US",
    "merchant_descriptor": "AMAZON.COM",
    "network": "visa",
    "network_details": {
      "visa": {
        "electronic_commerce_indicator": "secure_electronic_commerce",
        "point_of_service_entry_mode": "manual"
      }
    },
    "presentment_amount": 100,
    "presentment_currency": "USD",
    "settlement_amount": 100,
    "settlement_currency": "USD"
  },
  "category": "card_authorization_requested",
  "created_at": "2020-01-31T23:59:59Z",
  "digital_wallet_authentication": null,
  "digital_wallet_token": null,
  "id": "real_time_decision_j76n2e810ezcg3zh5qtn",
  "status": "pending",
  "timeout_at": "2020-01-31T23:59:59Z",
  "type": "real_time_decision"
}
POST Approve a Check Transfer
{{baseUrl}}/check_transfers/:check_transfer_id/approve
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_transfers/:check_transfer_id/approve");

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

(client/post "{{baseUrl}}/check_transfers/:check_transfer_id/approve")
require "http/client"

url = "{{baseUrl}}/check_transfers/:check_transfer_id/approve"

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

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

func main() {

	url := "{{baseUrl}}/check_transfers/:check_transfer_id/approve"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers/:check_transfer_id/approve"))
    .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}}/check_transfers/:check_transfer_id/approve")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_transfers/:check_transfer_id/approve'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers/:check_transfer_id/approve")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/check_transfers/:check_transfer_id/approve');

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}}/check_transfers/:check_transfer_id/approve'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/check_transfers/:check_transfer_id/approve');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/check_transfers/:check_transfer_id/approve")

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

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

url = "{{baseUrl}}/check_transfers/:check_transfer_id/approve"

response = requests.post(url)

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

url <- "{{baseUrl}}/check_transfers/:check_transfer_id/approve"

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

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

url = URI("{{baseUrl}}/check_transfers/:check_transfer_id/approve")

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/check_transfers/:check_transfer_id/approve') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/check_transfers/:check_transfer_id/approve
http POST {{baseUrl}}/check_transfers/:check_transfer_id/approve
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/check_transfers/:check_transfer_id/approve
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
POST Approve a Wire Transfer
{{baseUrl}}/wire_transfers/:wire_transfer_id/approve
QUERY PARAMS

wire_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve");

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

(client/post "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve")
require "http/client"

url = "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve"

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

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

func main() {

	url := "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_transfers/:wire_transfer_id/approve"))
    .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}}/wire_transfers/:wire_transfer_id/approve")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_transfers/:wire_transfer_id/approve'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/wire_transfers/:wire_transfer_id/approve")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/wire_transfers/:wire_transfer_id/approve');

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}}/wire_transfers/:wire_transfer_id/approve'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/wire_transfers/:wire_transfer_id/approve');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/wire_transfers/:wire_transfer_id/approve")

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

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

url = "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve"

response = requests.post(url)

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

url <- "{{baseUrl}}/wire_transfers/:wire_transfer_id/approve"

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

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

url = URI("{{baseUrl}}/wire_transfers/:wire_transfer_id/approve")

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/wire_transfers/:wire_transfer_id/approve') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/wire_transfers/:wire_transfer_id/approve
http POST {{baseUrl}}/wire_transfers/:wire_transfer_id/approve
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/wire_transfers/:wire_transfer_id/approve
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
POST Approve an ACH Transfer
{{baseUrl}}/ach_transfers/:ach_transfer_id/approve
QUERY PARAMS

ach_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve");

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

(client/post "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve")
require "http/client"

url = "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve"

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

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

func main() {

	url := "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_transfers/:ach_transfer_id/approve"))
    .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}}/ach_transfers/:ach_transfer_id/approve")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_transfers/:ach_transfer_id/approve'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/ach_transfers/:ach_transfer_id/approve")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/ach_transfers/:ach_transfer_id/approve');

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}}/ach_transfers/:ach_transfer_id/approve'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/ach_transfers/:ach_transfer_id/approve');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/ach_transfers/:ach_transfer_id/approve")

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

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

url = "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve"

response = requests.post(url)

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

url <- "{{baseUrl}}/ach_transfers/:ach_transfer_id/approve"

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

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

url = URI("{{baseUrl}}/ach_transfers/:ach_transfer_id/approve")

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/ach_transfers/:ach_transfer_id/approve') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/ach_transfers/:ach_transfer_id/approve
http POST {{baseUrl}}/ach_transfers/:ach_transfer_id/approve
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/ach_transfers/:ach_transfer_id/approve
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
POST Approve an Account Transfer
{{baseUrl}}/account_transfers/:account_transfer_id/approve
QUERY PARAMS

account_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_transfers/:account_transfer_id/approve");

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

(client/post "{{baseUrl}}/account_transfers/:account_transfer_id/approve")
require "http/client"

url = "{{baseUrl}}/account_transfers/:account_transfer_id/approve"

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

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

func main() {

	url := "{{baseUrl}}/account_transfers/:account_transfer_id/approve"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_transfers/:account_transfer_id/approve"))
    .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}}/account_transfers/:account_transfer_id/approve")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_transfers/:account_transfer_id/approve'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/account_transfers/:account_transfer_id/approve")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/account_transfers/:account_transfer_id/approve');

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}}/account_transfers/:account_transfer_id/approve'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/account_transfers/:account_transfer_id/approve');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/account_transfers/:account_transfer_id/approve")

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

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

url = "{{baseUrl}}/account_transfers/:account_transfer_id/approve"

response = requests.post(url)

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

url <- "{{baseUrl}}/account_transfers/:account_transfer_id/approve"

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

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

url = URI("{{baseUrl}}/account_transfers/:account_transfer_id/approve")

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/account_transfers/:account_transfer_id/approve') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/account_transfers/:account_transfer_id/approve
http POST {{baseUrl}}/account_transfers/:account_transfer_id/approve
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/account_transfers/:account_transfer_id/approve
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Move money into savings",
  "destination_account_id": "account_uf16sut2ct5bevmq3eh",
  "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
  "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
  "network": "account",
  "status": "complete",
  "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "account_transfer"
}
POST Cancel a pending ACH Transfer
{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel
QUERY PARAMS

ach_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel");

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

(client/post "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel")
require "http/client"

url = "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel"

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

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

func main() {

	url := "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel"))
    .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}}/ach_transfers/:ach_transfer_id/cancel")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel');

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}}/ach_transfers/:ach_transfer_id/cancel'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/ach_transfers/:ach_transfer_id/cancel")

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

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

url = "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel"

response = requests.post(url)

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

url <- "{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel"

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

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

url = URI("{{baseUrl}}/ach_transfers/:ach_transfer_id/cancel")

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/ach_transfers/:ach_transfer_id/cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/ach_transfers/:ach_transfer_id/cancel
http POST {{baseUrl}}/ach_transfers/:ach_transfer_id/cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/ach_transfers/:ach_transfer_id/cancel
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
POST Cancel a pending Check Transfer
{{baseUrl}}/check_transfers/:check_transfer_id/cancel
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_transfers/:check_transfer_id/cancel");

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

(client/post "{{baseUrl}}/check_transfers/:check_transfer_id/cancel")
require "http/client"

url = "{{baseUrl}}/check_transfers/:check_transfer_id/cancel"

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

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

func main() {

	url := "{{baseUrl}}/check_transfers/:check_transfer_id/cancel"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers/:check_transfer_id/cancel"))
    .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}}/check_transfers/:check_transfer_id/cancel")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_transfers/:check_transfer_id/cancel'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers/:check_transfer_id/cancel")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/check_transfers/:check_transfer_id/cancel');

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}}/check_transfers/:check_transfer_id/cancel'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/check_transfers/:check_transfer_id/cancel');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/check_transfers/:check_transfer_id/cancel")

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

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

url = "{{baseUrl}}/check_transfers/:check_transfer_id/cancel"

response = requests.post(url)

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

url <- "{{baseUrl}}/check_transfers/:check_transfer_id/cancel"

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

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

url = URI("{{baseUrl}}/check_transfers/:check_transfer_id/cancel")

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/check_transfers/:check_transfer_id/cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/check_transfers/:check_transfer_id/cancel
http POST {{baseUrl}}/check_transfers/:check_transfer_id/cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/check_transfers/:check_transfer_id/cancel
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
POST Cancel a pending Wire Transfer
{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel
QUERY PARAMS

wire_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel");

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

(client/post "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel")
require "http/client"

url = "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel"

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

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

func main() {

	url := "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel"))
    .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}}/wire_transfers/:wire_transfer_id/cancel")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel');

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}}/wire_transfers/:wire_transfer_id/cancel'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/wire_transfers/:wire_transfer_id/cancel")

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

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

url = "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel"

response = requests.post(url)

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

url <- "{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel"

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

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

url = URI("{{baseUrl}}/wire_transfers/:wire_transfer_id/cancel")

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/wire_transfers/:wire_transfer_id/cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/wire_transfers/:wire_transfer_id/cancel
http POST {{baseUrl}}/wire_transfers/:wire_transfer_id/cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/wire_transfers/:wire_transfer_id/cancel
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
POST Cancel an Account Transfer
{{baseUrl}}/account_transfers/:account_transfer_id/cancel
QUERY PARAMS

account_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_transfers/:account_transfer_id/cancel");

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

(client/post "{{baseUrl}}/account_transfers/:account_transfer_id/cancel")
require "http/client"

url = "{{baseUrl}}/account_transfers/:account_transfer_id/cancel"

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

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

func main() {

	url := "{{baseUrl}}/account_transfers/:account_transfer_id/cancel"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_transfers/:account_transfer_id/cancel"))
    .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}}/account_transfers/:account_transfer_id/cancel")
  .post(null)
  .build();

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_transfers/:account_transfer_id/cancel'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/account_transfers/:account_transfer_id/cancel")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/account_transfers/:account_transfer_id/cancel');

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}}/account_transfers/:account_transfer_id/cancel'
};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/account_transfers/:account_transfer_id/cancel');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/account_transfers/:account_transfer_id/cancel")

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

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

url = "{{baseUrl}}/account_transfers/:account_transfer_id/cancel"

response = requests.post(url)

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

url <- "{{baseUrl}}/account_transfers/:account_transfer_id/cancel"

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

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

url = URI("{{baseUrl}}/account_transfers/:account_transfer_id/cancel")

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/account_transfers/:account_transfer_id/cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/account_transfers/:account_transfer_id/cancel
http POST {{baseUrl}}/account_transfers/:account_transfer_id/cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/account_transfers/:account_transfer_id/cancel
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Move money into savings",
  "destination_account_id": "account_uf16sut2ct5bevmq3eh",
  "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
  "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
  "network": "account",
  "status": "complete",
  "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "account_transfer"
}
POST Close an Account
{{baseUrl}}/accounts/:account_id/close
QUERY PARAMS

account_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account_id/close");

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

(client/post "{{baseUrl}}/accounts/:account_id/close")
require "http/client"

url = "{{baseUrl}}/accounts/:account_id/close"

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

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

func main() {

	url := "{{baseUrl}}/accounts/:account_id/close"

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

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

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

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

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

const options = {method: 'POST', url: '{{baseUrl}}/accounts/:account_id/close'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account_id/close")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/accounts/:account_id/close');

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}}/accounts/:account_id/close'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account_id/close');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/accounts/:account_id/close")

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

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

url = "{{baseUrl}}/accounts/:account_id/close"

response = requests.post(url)

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

url <- "{{baseUrl}}/accounts/:account_id/close"

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

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

url = URI("{{baseUrl}}/accounts/:account_id/close")

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/accounts/:account_id/close') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/accounts/:account_id/close
http POST {{baseUrl}}/accounts/:account_id/close
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/accounts/:account_id/close
import Foundation

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

{
  "balances": {
    "available_balance": 100,
    "current_balance": 100
  },
  "bank": "first_internet_bank",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "id": "account_in71c4amph0vgo2qllky",
  "informational_entity_id": null,
  "interest_accrued": "0.01",
  "interest_accrued_at": "2020-01-31",
  "name": "My first account!",
  "replacement": {
    "replaced_account_id": null,
    "replaced_by_account_id": null
  },
  "status": "open",
  "type": "account"
}
POST Complete a Sandbox Account Transfer
{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete
QUERY PARAMS

account_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete");

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

(client/post "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete")
require "http/client"

url = "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete"

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

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

func main() {

	url := "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete"

	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/simulations/account_transfers/:account_transfer_id/complete HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete"))
    .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}}/simulations/account_transfers/:account_transfer_id/complete")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete")
  .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}}/simulations/account_transfers/:account_transfer_id/complete');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/account_transfers/:account_transfer_id/complete',
  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}}/simulations/account_transfers/:account_transfer_id/complete'
};

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

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

const req = unirest('POST', '{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete');

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}}/simulations/account_transfers/:account_transfer_id/complete'
};

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

const url = '{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete';
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}}/simulations/account_transfers/:account_transfer_id/complete"]
                                                       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}}/simulations/account_transfers/:account_transfer_id/complete" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/simulations/account_transfers/:account_transfer_id/complete")

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

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

url = "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete"

response = requests.post(url)

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

url <- "{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete"

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

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

url = URI("{{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete")

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/simulations/account_transfers/:account_transfer_id/complete') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/simulations/account_transfers/:account_transfer_id/complete
http POST {{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/account_transfers/:account_transfer_id/complete
import Foundation

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Move money into savings",
  "destination_account_id": "account_uf16sut2ct5bevmq3eh",
  "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
  "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
  "network": "account",
  "status": "complete",
  "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "account_transfer"
}
POST Create a Card Dispute
{{baseUrl}}/card_disputes
BODY json

{
  "disputed_transaction_id": "",
  "explanation": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\n}");

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

(client/post "{{baseUrl}}/card_disputes" {:content-type :json
                                                          :form-params {:disputed_transaction_id ""
                                                                        :explanation ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\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/card_disputes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 56

{
  "disputed_transaction_id": "",
  "explanation": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/card_disputes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/card_disputes")
  .header("content-type", "application/json")
  .body("{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  disputed_transaction_id: '',
  explanation: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/card_disputes',
  headers: {'content-type': 'application/json'},
  data: {disputed_transaction_id: '', explanation: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_disputes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disputed_transaction_id":"","explanation":""}'
};

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}}/card_disputes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "disputed_transaction_id": "",\n  "explanation": ""\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/card_disputes',
  headers: {'content-type': 'application/json'},
  body: {disputed_transaction_id: '', explanation: ''},
  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}}/card_disputes');

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

req.type('json');
req.send({
  disputed_transaction_id: '',
  explanation: ''
});

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}}/card_disputes',
  headers: {'content-type': 'application/json'},
  data: {disputed_transaction_id: '', explanation: ''}
};

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

const url = '{{baseUrl}}/card_disputes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disputed_transaction_id":"","explanation":""}'
};

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 = @{ @"disputed_transaction_id": @"",
                              @"explanation": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'disputed_transaction_id' => '',
  'explanation' => ''
]));

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

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

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

payload = "{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/card_disputes"

payload = {
    "disputed_transaction_id": "",
    "explanation": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\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}}/card_disputes")

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  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\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/card_disputes') do |req|
  req.body = "{\n  \"disputed_transaction_id\": \"\",\n  \"explanation\": \"\"\n}"
end

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

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

    let payload = json!({
        "disputed_transaction_id": "",
        "explanation": ""
    });

    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}}/card_disputes \
  --header 'content-type: application/json' \
  --data '{
  "disputed_transaction_id": "",
  "explanation": ""
}'
echo '{
  "disputed_transaction_id": "",
  "explanation": ""
}' |  \
  http POST {{baseUrl}}/card_disputes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "disputed_transaction_id": "",\n  "explanation": ""\n}' \
  --output-document \
  - {{baseUrl}}/card_disputes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "disputed_transaction_id": "",
  "explanation": ""
] as [String : Any]

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

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

{
  "acceptance": null,
  "created_at": "2020-01-31T23:59:59Z",
  "disputed_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "explanation": "Unauthorized recurring purchase",
  "id": "card_dispute_h9sc95nbl1cgltpp7men",
  "rejection": null,
  "status": "pending_reviewing",
  "type": "card_dispute"
}
POST Create a Card Profile
{{baseUrl}}/card_profiles
BODY json

{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/card_profiles" {:content-type :json
                                                          :form-params {:description ""
                                                                        :digital_wallets {:app_icon_file_id ""
                                                                                          :background_image_file_id ""
                                                                                          :card_description ""
                                                                                          :contact_email ""
                                                                                          :contact_phone ""
                                                                                          :contact_website ""
                                                                                          :issuer_name ""
                                                                                          :text_color {:blue 0
                                                                                                       :green 0
                                                                                                       :red 0}}}})
require "http/client"

url = "{{baseUrl}}/card_profiles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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}}/card_profiles"),
    Content = new StringContent("{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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}}/card_profiles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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/card_profiles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 319

{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/card_profiles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/card_profiles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/card_profiles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/card_profiles")
  .header("content-type", "application/json")
  .body("{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  digital_wallets: {
    app_icon_file_id: '',
    background_image_file_id: '',
    card_description: '',
    contact_email: '',
    contact_phone: '',
    contact_website: '',
    issuer_name: '',
    text_color: {
      blue: 0,
      green: 0,
      red: 0
    }
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/card_profiles',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    digital_wallets: {
      app_icon_file_id: '',
      background_image_file_id: '',
      card_description: '',
      contact_email: '',
      contact_phone: '',
      contact_website: '',
      issuer_name: '',
      text_color: {blue: 0, green: 0, red: 0}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_profiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","digital_wallets":{"app_icon_file_id":"","background_image_file_id":"","card_description":"","contact_email":"","contact_phone":"","contact_website":"","issuer_name":"","text_color":{"blue":0,"green":0,"red":0}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/card_profiles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "description": "",\n  "digital_wallets": {\n    "app_icon_file_id": "",\n    "background_image_file_id": "",\n    "card_description": "",\n    "contact_email": "",\n    "contact_phone": "",\n    "contact_website": "",\n    "issuer_name": "",\n    "text_color": {\n      "blue": 0,\n      "green": 0,\n      "red": 0\n    }\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  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/card_profiles")
  .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/card_profiles',
  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({
  description: '',
  digital_wallets: {
    app_icon_file_id: '',
    background_image_file_id: '',
    card_description: '',
    contact_email: '',
    contact_phone: '',
    contact_website: '',
    issuer_name: '',
    text_color: {blue: 0, green: 0, red: 0}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/card_profiles',
  headers: {'content-type': 'application/json'},
  body: {
    description: '',
    digital_wallets: {
      app_icon_file_id: '',
      background_image_file_id: '',
      card_description: '',
      contact_email: '',
      contact_phone: '',
      contact_website: '',
      issuer_name: '',
      text_color: {blue: 0, green: 0, red: 0}
    }
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  description: '',
  digital_wallets: {
    app_icon_file_id: '',
    background_image_file_id: '',
    card_description: '',
    contact_email: '',
    contact_phone: '',
    contact_website: '',
    issuer_name: '',
    text_color: {
      blue: 0,
      green: 0,
      red: 0
    }
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/card_profiles',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    digital_wallets: {
      app_icon_file_id: '',
      background_image_file_id: '',
      card_description: '',
      contact_email: '',
      contact_phone: '',
      contact_website: '',
      issuer_name: '',
      text_color: {blue: 0, green: 0, red: 0}
    }
  }
};

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

const url = '{{baseUrl}}/card_profiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","digital_wallets":{"app_icon_file_id":"","background_image_file_id":"","card_description":"","contact_email":"","contact_phone":"","contact_website":"","issuer_name":"","text_color":{"blue":0,"green":0,"red":0}}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"description": @"",
                              @"digital_wallets": @{ @"app_icon_file_id": @"", @"background_image_file_id": @"", @"card_description": @"", @"contact_email": @"", @"contact_phone": @"", @"contact_website": @"", @"issuer_name": @"", @"text_color": @{ @"blue": @0, @"green": @0, @"red": @0 } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/card_profiles"]
                                                       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}}/card_profiles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/card_profiles",
  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([
    'description' => '',
    'digital_wallets' => [
        'app_icon_file_id' => '',
        'background_image_file_id' => '',
        'card_description' => '',
        'contact_email' => '',
        'contact_phone' => '',
        'contact_website' => '',
        'issuer_name' => '',
        'text_color' => [
                'blue' => 0,
                'green' => 0,
                'red' => 0
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/card_profiles', [
  'body' => '{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'digital_wallets' => [
    'app_icon_file_id' => '',
    'background_image_file_id' => '',
    'card_description' => '',
    'contact_email' => '',
    'contact_phone' => '',
    'contact_website' => '',
    'issuer_name' => '',
    'text_color' => [
        'blue' => 0,
        'green' => 0,
        'red' => 0
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'digital_wallets' => [
    'app_icon_file_id' => '',
    'background_image_file_id' => '',
    'card_description' => '',
    'contact_email' => '',
    'contact_phone' => '',
    'contact_website' => '',
    'issuer_name' => '',
    'text_color' => [
        'blue' => 0,
        'green' => 0,
        'red' => 0
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/card_profiles');
$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}}/card_profiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/card_profiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}'
import http.client

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

payload = "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/card_profiles"

payload = {
    "description": "",
    "digital_wallets": {
        "app_icon_file_id": "",
        "background_image_file_id": "",
        "card_description": "",
        "contact_email": "",
        "contact_phone": "",
        "contact_website": "",
        "issuer_name": "",
        "text_color": {
            "blue": 0,
            "green": 0,
            "red": 0
        }
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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}}/card_profiles")

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  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\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/card_profiles') do |req|
  req.body = "{\n  \"description\": \"\",\n  \"digital_wallets\": {\n    \"app_icon_file_id\": \"\",\n    \"background_image_file_id\": \"\",\n    \"card_description\": \"\",\n    \"contact_email\": \"\",\n    \"contact_phone\": \"\",\n    \"contact_website\": \"\",\n    \"issuer_name\": \"\",\n    \"text_color\": {\n      \"blue\": 0,\n      \"green\": 0,\n      \"red\": 0\n    }\n  }\n}"
end

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

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

    let payload = json!({
        "description": "",
        "digital_wallets": json!({
            "app_icon_file_id": "",
            "background_image_file_id": "",
            "card_description": "",
            "contact_email": "",
            "contact_phone": "",
            "contact_website": "",
            "issuer_name": "",
            "text_color": json!({
                "blue": 0,
                "green": 0,
                "red": 0
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/card_profiles \
  --header 'content-type: application/json' \
  --data '{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}'
echo '{
  "description": "",
  "digital_wallets": {
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": {
      "blue": 0,
      "green": 0,
      "red": 0
    }
  }
}' |  \
  http POST {{baseUrl}}/card_profiles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "description": "",\n  "digital_wallets": {\n    "app_icon_file_id": "",\n    "background_image_file_id": "",\n    "card_description": "",\n    "contact_email": "",\n    "contact_phone": "",\n    "contact_website": "",\n    "issuer_name": "",\n    "text_color": {\n      "blue": 0,\n      "green": 0,\n      "red": 0\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/card_profiles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "description": "",
  "digital_wallets": [
    "app_icon_file_id": "",
    "background_image_file_id": "",
    "card_description": "",
    "contact_email": "",
    "contact_phone": "",
    "contact_website": "",
    "issuer_name": "",
    "text_color": [
      "blue": 0,
      "green": 0,
      "red": 0
    ]
  ]
] as [String : Any]

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

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

{
  "created_at": "2020-01-31T23:59:59Z",
  "description": "My Card Profile",
  "digital_wallets": {
    "app_icon_file_id": "file_8zxqkwlh43wo144u8yec",
    "background_image_file_id": "file_1ai913suu1zfn1pdetru",
    "card_description": "MyBank Signature Card",
    "contact_email": "user@example.com",
    "contact_phone": "+18885551212",
    "contact_website": "https://example.com",
    "issuer_name": "MyBank",
    "text_color": {
      "blue": 59,
      "green": 43,
      "red": 26
    }
  },
  "id": "card_profile_cox5y73lob2eqly18piy",
  "status": "active",
  "type": "card_profile"
}
POST Create a Card
{{baseUrl}}/cards
BODY json

{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/cards" {:content-type :json
                                                  :form-params {:account_id ""
                                                                :billing_address {:city ""
                                                                                  :line1 ""
                                                                                  :line2 ""
                                                                                  :postal_code ""
                                                                                  :state ""}
                                                                :description ""
                                                                :digital_wallet {:card_profile_id ""
                                                                                 :email ""
                                                                                 :phone ""}}})
require "http/client"

url = "{{baseUrl}}/cards"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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}}/cards"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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}}/cards");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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/cards HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 247

{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/cards")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cards"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cards")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/cards")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  billing_address: {
    city: '',
    line1: '',
    line2: '',
    postal_code: '',
    state: ''
  },
  description: '',
  digital_wallet: {
    card_profile_id: '',
    email: '',
    phone: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cards',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cards';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","billing_address":{"city":"","line1":"","line2":"","postal_code":"","state":""},"description":"","digital_wallet":{"card_profile_id":"","email":"","phone":""}}'
};

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}}/cards',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "billing_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "postal_code": "",\n    "state": ""\n  },\n  "description": "",\n  "digital_wallet": {\n    "card_profile_id": "",\n    "email": "",\n    "phone": ""\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  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cards")
  .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/cards',
  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({
  account_id: '',
  billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
  description: '',
  digital_wallet: {card_profile_id: '', email: '', phone: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cards',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''}
  },
  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}}/cards');

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

req.type('json');
req.send({
  account_id: '',
  billing_address: {
    city: '',
    line1: '',
    line2: '',
    postal_code: '',
    state: ''
  },
  description: '',
  digital_wallet: {
    card_profile_id: '',
    email: '',
    phone: ''
  }
});

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}}/cards',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''}
  }
};

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

const url = '{{baseUrl}}/cards';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","billing_address":{"city":"","line1":"","line2":"","postal_code":"","state":""},"description":"","digital_wallet":{"card_profile_id":"","email":"","phone":""}}'
};

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 = @{ @"account_id": @"",
                              @"billing_address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"postal_code": @"", @"state": @"" },
                              @"description": @"",
                              @"digital_wallet": @{ @"card_profile_id": @"", @"email": @"", @"phone": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cards"]
                                                       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}}/cards" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cards",
  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([
    'account_id' => '',
    'billing_address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'postal_code' => '',
        'state' => ''
    ],
    'description' => '',
    'digital_wallet' => [
        'card_profile_id' => '',
        'email' => '',
        'phone' => ''
    ]
  ]),
  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}}/cards', [
  'body' => '{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'billing_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'postal_code' => '',
    'state' => ''
  ],
  'description' => '',
  'digital_wallet' => [
    'card_profile_id' => '',
    'email' => '',
    'phone' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'billing_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'postal_code' => '',
    'state' => ''
  ],
  'description' => '',
  'digital_wallet' => [
    'card_profile_id' => '',
    'email' => '',
    'phone' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/cards');
$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}}/cards' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cards' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/cards"

payload = {
    "account_id": "",
    "billing_address": {
        "city": "",
        "line1": "",
        "line2": "",
        "postal_code": "",
        "state": ""
    },
    "description": "",
    "digital_wallet": {
        "card_profile_id": "",
        "email": "",
        "phone": ""
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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}}/cards")

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  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\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/cards') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "billing_address": json!({
            "city": "",
            "line1": "",
            "line2": "",
            "postal_code": "",
            "state": ""
        }),
        "description": "",
        "digital_wallet": json!({
            "card_profile_id": "",
            "email": "",
            "phone": ""
        })
    });

    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}}/cards \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}'
echo '{
  "account_id": "",
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  }
}' |  \
  http POST {{baseUrl}}/cards \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "billing_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "postal_code": "",\n    "state": ""\n  },\n  "description": "",\n  "digital_wallet": {\n    "card_profile_id": "",\n    "email": "",\n    "phone": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/cards
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "billing_address": [
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  ],
  "description": "",
  "digital_wallet": [
    "card_profile_id": "",
    "email": "",
    "phone": ""
  ]
] as [String : Any]

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

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "billing_address": {
    "city": "New York",
    "line1": "33 Liberty Street",
    "line2": null,
    "postal_code": "10045",
    "state": "NY"
  },
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Office Expenses",
  "digital_wallet": {
    "card_profile_id": "card_profile_cox5y73lob2eqly18piy",
    "email": "user@example.com",
    "phone": "+15551234567"
  },
  "expiration_month": 11,
  "expiration_year": 2028,
  "id": "card_oubs0hwk5rn6knuecxg2",
  "last4": "4242",
  "replacement": {
    "replaced_by_card_id": null,
    "replaced_card_id": null
  },
  "status": "active",
  "type": "card"
}
POST Create a Check Deposit
{{baseUrl}}/check_deposits
BODY json

{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}");

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

(client/post "{{baseUrl}}/check_deposits" {:content-type :json
                                                           :form-params {:account_id ""
                                                                         :amount 0
                                                                         :back_image_file_id ""
                                                                         :currency ""
                                                                         :front_image_file_id ""}})
require "http/client"

url = "{{baseUrl}}/check_deposits"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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}}/check_deposits"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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}}/check_deposits");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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/check_deposits HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 112

{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/check_deposits")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_deposits"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/check_deposits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/check_deposits")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  amount: 0,
  back_image_file_id: '',
  currency: '',
  front_image_file_id: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_deposits',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    amount: 0,
    back_image_file_id: '',
    currency: '',
    front_image_file_id: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_deposits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","amount":0,"back_image_file_id":"","currency":"","front_image_file_id":""}'
};

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}}/check_deposits',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "amount": 0,\n  "back_image_file_id": "",\n  "currency": "",\n  "front_image_file_id": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/check_deposits")
  .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/check_deposits',
  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({
  account_id: '',
  amount: 0,
  back_image_file_id: '',
  currency: '',
  front_image_file_id: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_deposits',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    amount: 0,
    back_image_file_id: '',
    currency: '',
    front_image_file_id: ''
  },
  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}}/check_deposits');

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

req.type('json');
req.send({
  account_id: '',
  amount: 0,
  back_image_file_id: '',
  currency: '',
  front_image_file_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: 'POST',
  url: '{{baseUrl}}/check_deposits',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    amount: 0,
    back_image_file_id: '',
    currency: '',
    front_image_file_id: ''
  }
};

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

const url = '{{baseUrl}}/check_deposits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","amount":0,"back_image_file_id":"","currency":"","front_image_file_id":""}'
};

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 = @{ @"account_id": @"",
                              @"amount": @0,
                              @"back_image_file_id": @"",
                              @"currency": @"",
                              @"front_image_file_id": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/check_deposits"]
                                                       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}}/check_deposits" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_deposits",
  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([
    'account_id' => '',
    'amount' => 0,
    'back_image_file_id' => '',
    'currency' => '',
    'front_image_file_id' => ''
  ]),
  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}}/check_deposits', [
  'body' => '{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'amount' => 0,
  'back_image_file_id' => '',
  'currency' => '',
  'front_image_file_id' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'amount' => 0,
  'back_image_file_id' => '',
  'currency' => '',
  'front_image_file_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/check_deposits');
$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}}/check_deposits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_deposits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/check_deposits"

payload = {
    "account_id": "",
    "amount": 0,
    "back_image_file_id": "",
    "currency": "",
    "front_image_file_id": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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}}/check_deposits")

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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\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/check_deposits') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"back_image_file_id\": \"\",\n  \"currency\": \"\",\n  \"front_image_file_id\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "amount": 0,
        "back_image_file_id": "",
        "currency": "",
        "front_image_file_id": ""
    });

    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}}/check_deposits \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}'
echo '{
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
}' |  \
  http POST {{baseUrl}}/check_deposits \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "amount": 0,\n  "back_image_file_id": "",\n  "currency": "",\n  "front_image_file_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/check_deposits
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "amount": 0,
  "back_image_file_id": "",
  "currency": "",
  "front_image_file_id": ""
] as [String : Any]

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

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "back_image_file_id": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit_acceptance": null,
  "deposit_rejection": null,
  "deposit_return": null,
  "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
  "status": "submitted",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_deposit"
}
POST Create a Check Transfer
{{baseUrl}}/check_transfers
BODY json

{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/check_transfers" {:content-type :json
                                                            :form-params {:account_id ""
                                                                          :address_city ""
                                                                          :address_line1 ""
                                                                          :address_line2 ""
                                                                          :address_state ""
                                                                          :address_zip ""
                                                                          :amount 0
                                                                          :message ""
                                                                          :note ""
                                                                          :recipient_name ""
                                                                          :require_approval false
                                                                          :return_address {:city ""
                                                                                           :line1 ""
                                                                                           :line2 ""
                                                                                           :name ""
                                                                                           :state ""
                                                                                           :zip ""}}})
require "http/client"

url = "{{baseUrl}}/check_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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}}/check_transfers"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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}}/check_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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/check_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 357

{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/check_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/check_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/check_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  address_city: '',
  address_line1: '',
  address_line2: '',
  address_state: '',
  address_zip: '',
  amount: 0,
  message: '',
  note: '',
  recipient_name: '',
  require_approval: false,
  return_address: {
    city: '',
    line1: '',
    line2: '',
    name: '',
    state: '',
    zip: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    address_city: '',
    address_line1: '',
    address_line2: '',
    address_state: '',
    address_zip: '',
    amount: 0,
    message: '',
    note: '',
    recipient_name: '',
    require_approval: false,
    return_address: {city: '', line1: '', line2: '', name: '', state: '', zip: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","address_city":"","address_line1":"","address_line2":"","address_state":"","address_zip":"","amount":0,"message":"","note":"","recipient_name":"","require_approval":false,"return_address":{"city":"","line1":"","line2":"","name":"","state":"","zip":""}}'
};

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}}/check_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "address_city": "",\n  "address_line1": "",\n  "address_line2": "",\n  "address_state": "",\n  "address_zip": "",\n  "amount": 0,\n  "message": "",\n  "note": "",\n  "recipient_name": "",\n  "require_approval": false,\n  "return_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "name": "",\n    "state": "",\n    "zip": ""\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  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers")
  .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/check_transfers',
  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({
  account_id: '',
  address_city: '',
  address_line1: '',
  address_line2: '',
  address_state: '',
  address_zip: '',
  amount: 0,
  message: '',
  note: '',
  recipient_name: '',
  require_approval: false,
  return_address: {city: '', line1: '', line2: '', name: '', state: '', zip: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    address_city: '',
    address_line1: '',
    address_line2: '',
    address_state: '',
    address_zip: '',
    amount: 0,
    message: '',
    note: '',
    recipient_name: '',
    require_approval: false,
    return_address: {city: '', line1: '', line2: '', name: '', state: '', zip: ''}
  },
  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}}/check_transfers');

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

req.type('json');
req.send({
  account_id: '',
  address_city: '',
  address_line1: '',
  address_line2: '',
  address_state: '',
  address_zip: '',
  amount: 0,
  message: '',
  note: '',
  recipient_name: '',
  require_approval: false,
  return_address: {
    city: '',
    line1: '',
    line2: '',
    name: '',
    state: '',
    zip: ''
  }
});

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}}/check_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    address_city: '',
    address_line1: '',
    address_line2: '',
    address_state: '',
    address_zip: '',
    amount: 0,
    message: '',
    note: '',
    recipient_name: '',
    require_approval: false,
    return_address: {city: '', line1: '', line2: '', name: '', state: '', zip: ''}
  }
};

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

const url = '{{baseUrl}}/check_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","address_city":"","address_line1":"","address_line2":"","address_state":"","address_zip":"","amount":0,"message":"","note":"","recipient_name":"","require_approval":false,"return_address":{"city":"","line1":"","line2":"","name":"","state":"","zip":""}}'
};

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 = @{ @"account_id": @"",
                              @"address_city": @"",
                              @"address_line1": @"",
                              @"address_line2": @"",
                              @"address_state": @"",
                              @"address_zip": @"",
                              @"amount": @0,
                              @"message": @"",
                              @"note": @"",
                              @"recipient_name": @"",
                              @"require_approval": @NO,
                              @"return_address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"name": @"", @"state": @"", @"zip": @"" } };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/check_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_id' => '',
    'address_city' => '',
    'address_line1' => '',
    'address_line2' => '',
    'address_state' => '',
    'address_zip' => '',
    'amount' => 0,
    'message' => '',
    'note' => '',
    'recipient_name' => '',
    'require_approval' => null,
    'return_address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'name' => '',
        'state' => '',
        'zip' => ''
    ]
  ]),
  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}}/check_transfers', [
  'body' => '{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'address_city' => '',
  'address_line1' => '',
  'address_line2' => '',
  'address_state' => '',
  'address_zip' => '',
  'amount' => 0,
  'message' => '',
  'note' => '',
  'recipient_name' => '',
  'require_approval' => null,
  'return_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'name' => '',
    'state' => '',
    'zip' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'address_city' => '',
  'address_line1' => '',
  'address_line2' => '',
  'address_state' => '',
  'address_zip' => '',
  'amount' => 0,
  'message' => '',
  'note' => '',
  'recipient_name' => '',
  'require_approval' => null,
  'return_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'name' => '',
    'state' => '',
    'zip' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/check_transfers');
$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}}/check_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/check_transfers"

payload = {
    "account_id": "",
    "address_city": "",
    "address_line1": "",
    "address_line2": "",
    "address_state": "",
    "address_zip": "",
    "amount": 0,
    "message": "",
    "note": "",
    "recipient_name": "",
    "require_approval": False,
    "return_address": {
        "city": "",
        "line1": "",
        "line2": "",
        "name": "",
        "state": "",
        "zip": ""
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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}}/check_transfers")

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  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\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/check_transfers') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"address_city\": \"\",\n  \"address_line1\": \"\",\n  \"address_line2\": \"\",\n  \"address_state\": \"\",\n  \"address_zip\": \"\",\n  \"amount\": 0,\n  \"message\": \"\",\n  \"note\": \"\",\n  \"recipient_name\": \"\",\n  \"require_approval\": false,\n  \"return_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"zip\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "address_city": "",
        "address_line1": "",
        "address_line2": "",
        "address_state": "",
        "address_zip": "",
        "amount": 0,
        "message": "",
        "note": "",
        "recipient_name": "",
        "require_approval": false,
        "return_address": json!({
            "city": "",
            "line1": "",
            "line2": "",
            "name": "",
            "state": "",
            "zip": ""
        })
    });

    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}}/check_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}'
echo '{
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  }
}' |  \
  http POST {{baseUrl}}/check_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "address_city": "",\n  "address_line1": "",\n  "address_line2": "",\n  "address_state": "",\n  "address_zip": "",\n  "amount": 0,\n  "message": "",\n  "note": "",\n  "recipient_name": "",\n  "require_approval": false,\n  "return_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "name": "",\n    "state": "",\n    "zip": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/check_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "address_city": "",
  "address_line1": "",
  "address_line2": "",
  "address_state": "",
  "address_zip": "",
  "amount": 0,
  "message": "",
  "note": "",
  "recipient_name": "",
  "require_approval": false,
  "return_address": [
    "city": "",
    "line1": "",
    "line2": "",
    "name": "",
    "state": "",
    "zip": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
POST Create a File
{{baseUrl}}/files
BODY multipartForm

Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: multipart/form-data; boundary=---011000010111000001101001");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");

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

(client/post "{{baseUrl}}/files" {:multipart [{:name "description"
                                                               :content ""} {:name "file"
                                                               :content ""} {:name "purpose"
                                                               :content ""}]})
require "http/client"

url = "{{baseUrl}}/files"
headers = HTTP::Headers{
  "content-type" => "multipart/form-data; boundary=---011000010111000001101001"
}
reqBody = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\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}}/files"),
    Content = new MultipartFormDataContent
    {
        new StringContent("")
        {
            Headers =
            {
                ContentDisposition = new ContentDispositionHeaderValue("form-data")
                {
                    Name = "description",
                }
            }
        },
        new StringContent("")
        {
            Headers =
            {
                ContentDisposition = new ContentDispositionHeaderValue("form-data")
                {
                    Name = "file",
                }
            }
        },
        new StringContent("")
        {
            Headers =
            {
                ContentDisposition = new ContentDispositionHeaderValue("form-data")
                {
                    Name = "purpose",
                }
            }
        },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/files");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001");
request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")

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

	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")

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

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

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

}
POST /baseUrl/files HTTP/1.1
Content-Type: multipart/form-data; boundary=---011000010111000001101001
Host: example.com
Content-Length: 283

-----011000010111000001101001
Content-Disposition: form-data; name="description"


-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001
Content-Disposition: form-data; name="purpose"


-----011000010111000001101001--
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/files")
  .setHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .setBody("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/files"))
    .header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
    .method("POST", HttpRequest.BodyPublishers.ofString("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001");
RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");
Request request = new Request.Builder()
  .url("{{baseUrl}}/files")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/files")
  .header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
const data = new FormData();
data.append('description', '');
data.append('file', '');
data.append('purpose', '');

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

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

xhr.open('POST', '{{baseUrl}}/files');

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

const form = new FormData();
form.append('description', '');
form.append('file', '');
form.append('purpose', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/files',
  headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
  data: '[form]'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/files';
const form = new FormData();
form.append('description', '');
form.append('file', '');
form.append('purpose', '');

const options = {method: 'POST'};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const form = new FormData();
form.append('description', '');
form.append('file', '');
form.append('purpose', '');

const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/files',
  method: 'POST',
  headers: {},
  processData: false,
  contentType: false,
  mimeType: 'multipart/form-data',
  data: form
};

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

val mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001")
val body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
val request = Request.Builder()
  .url("{{baseUrl}}/files")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/files',
  headers: {
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  }
};

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('-----011000010111000001101001\r\nContent-Disposition: form-data; name="description"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="purpose"\r\n\r\n\r\n-----011000010111000001101001--\r\n');
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/files',
  headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
  formData: {description: '', file: '', purpose: ''}
};

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

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

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

req.headers({
  'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
});

req.multipart([]);

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}}/files',
  headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
  data: '-----011000010111000001101001\r\nContent-Disposition: form-data; name="description"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="purpose"\r\n\r\n\r\n-----011000010111000001101001--\r\n'
};

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

const formData = new FormData();
formData.append('description', '');
formData.append('file', '');
formData.append('purpose', '');

const url = '{{baseUrl}}/files';
const options = {method: 'POST'};
options.body = formData;

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": @"multipart/form-data; boundary=---011000010111000001101001" };
NSArray *parameters = @[ @{ @"name": @"description", @"value": @"" },
                         @{ @"name": @"file", @"value": @"" },
                         @{ @"name": @"purpose", @"value": @"" } ];
NSString *boundary = @"---011000010111000001101001";

NSError *error;
NSMutableString *body = [NSMutableString string];
for (NSDictionary *param in parameters) {
    [body appendFormat:@"--%@\r\n", boundary];
    if (param[@"fileName"]) {
        [body appendFormat:@"Content-Disposition:form-data; name=\"%@\"; filename=\"%@\"\r\n", param[@"name"], param[@"fileName"]];
        [body appendFormat:@"Content-Type: %@\r\n\r\n", param[@"contentType"]];
        [body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];
        if (error) {
            NSLog(@"%@", error);
        }
    } else {
        [body appendFormat:@"Content-Disposition:form-data; name=\"%@\"\r\n\r\n", param[@"name"]];
        [body appendFormat:@"%@", param[@"value"]];
    }
}
[body appendFormat:@"\r\n--%@--\r\n", boundary];
NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/files"]
                                                       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}}/files" in
let headers = Header.add (Header.init ()) "content-type" "multipart/form-data; boundary=---011000010111000001101001" in
let body = Cohttp_lwt_body.of_string "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/files",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n",
  CURLOPT_HTTPHEADER => [
    "content-type: multipart/form-data; boundary=---011000010111000001101001"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/files', [
  'headers' => [
    'content-type' => 'multipart/form-data; boundary=---011000010111000001101001',
  ],
]);

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

$request->setHeaders([
  'content-type' => 'multipart/form-data; boundary=---011000010111000001101001'
]);

$request->setBody('-----011000010111000001101001
Content-Disposition: form-data; name="description"


-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001
Content-Disposition: form-data; name="purpose"


-----011000010111000001101001--
');

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
addForm(null, null);

$request->setRequestUrl('{{baseUrl}}/files');
$request->setRequestMethod('POST');
$request->setBody($body);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/files' -Method POST -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="description"


-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001
Content-Disposition: form-data; name="purpose"


-----011000010111000001101001--
'
$headers=@{}
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/files' -Method POST -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="description"


-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001
Content-Disposition: form-data; name="purpose"


-----011000010111000001101001--
'
import http.client

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

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

headers = { 'content-type': "multipart/form-data; boundary=---011000010111000001101001" }

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

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

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

url = "{{baseUrl}}/files"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
headers = {"content-type": "multipart/form-data; boundary=---011000010111000001101001"}

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

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

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

payload <- "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

encode <- "multipart"

response <- VERB("POST", url, body = payload, content_type("multipart/form-data"), encode = encode)

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

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

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'multipart/form-data; boundary=---011000010111000001101001'}
)

response = conn.post('/baseUrl/files') do |req|
  req.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"purpose\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
end

puts response.status
puts response.body
use reqwest;

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

    let form = reqwest::multipart::Form::new()
        .text("description", "")
        .text("file", "")
        .text("purpose", "");
    let mut headers = reqwest::header::HeaderMap::new();

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/files \
  --header 'content-type: multipart/form-data' \
  --form description= \
  --form file= \
  --form purpose=
echo '-----011000010111000001101001
Content-Disposition: form-data; name="description"


-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001
Content-Disposition: form-data; name="purpose"


-----011000010111000001101001--
' |  \
  http POST {{baseUrl}}/files \
  content-type:'multipart/form-data; boundary=---011000010111000001101001'
wget --quiet \
  --method POST \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \
  --body-data '-----011000010111000001101001\r\nContent-Disposition: form-data; name="description"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="purpose"\r\n\r\n\r\n-----011000010111000001101001--\r\n' \
  --output-document \
  - {{baseUrl}}/files
import Foundation

let headers = ["content-type": "multipart/form-data; boundary=---011000010111000001101001"]
let parameters = [
  [
    "name": "description",
    "value": ""
  ],
  [
    "name": "file",
    "value": ""
  ],
  [
    "name": "purpose",
    "value": ""
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

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

{
  "created_at": "2020-01-31T23:59:59Z",
  "description": "2022-05 statement for checking account",
  "direction": "from_increase",
  "download_url": "https://api.increase.com/files/file_makxrc67oh9l6sg7w9yc/download",
  "filename": "statement.pdf",
  "id": "file_makxrc67oh9l6sg7w9yc",
  "purpose": "increase_statement",
  "type": "file"
}
POST Create a Limit
{{baseUrl}}/limits
BODY json

{
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}");

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

(client/post "{{baseUrl}}/limits" {:content-type :json
                                                   :form-params {:interval ""
                                                                 :metric ""
                                                                 :model_id ""
                                                                 :value 0}})
require "http/client"

url = "{{baseUrl}}/limits"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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}}/limits"),
    Content = new StringContent("{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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}}/limits");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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/limits HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 68

{
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/limits")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/limits"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/limits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/limits")
  .header("content-type", "application/json")
  .body("{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}")
  .asString();
const data = JSON.stringify({
  interval: '',
  metric: '',
  model_id: '',
  value: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/limits',
  headers: {'content-type': 'application/json'},
  data: {interval: '', metric: '', model_id: '', value: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/limits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"interval":"","metric":"","model_id":"","value":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/limits',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "interval": "",\n  "metric": "",\n  "model_id": "",\n  "value": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/limits")
  .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/limits',
  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({interval: '', metric: '', model_id: '', value: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/limits',
  headers: {'content-type': 'application/json'},
  body: {interval: '', metric: '', model_id: '', value: 0},
  json: true
};

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

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

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

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

req.type('json');
req.send({
  interval: '',
  metric: '',
  model_id: '',
  value: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/limits',
  headers: {'content-type': 'application/json'},
  data: {interval: '', metric: '', model_id: '', value: 0}
};

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

const url = '{{baseUrl}}/limits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"interval":"","metric":"","model_id":"","value":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"interval": @"",
                              @"metric": @"",
                              @"model_id": @"",
                              @"value": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/limits"]
                                                       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}}/limits" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/limits",
  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([
    'interval' => '',
    'metric' => '',
    'model_id' => '',
    'value' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/limits', [
  'body' => '{
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'interval' => '',
  'metric' => '',
  'model_id' => '',
  'value' => 0
]));

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

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

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

payload = "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/limits"

payload = {
    "interval": "",
    "metric": "",
    "model_id": "",
    "value": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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}}/limits")

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  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\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/limits') do |req|
  req.body = "{\n  \"interval\": \"\",\n  \"metric\": \"\",\n  \"model_id\": \"\",\n  \"value\": 0\n}"
end

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

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

    let payload = json!({
        "interval": "",
        "metric": "",
        "model_id": "",
        "value": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/limits \
  --header 'content-type: application/json' \
  --data '{
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
}'
echo '{
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
}' |  \
  http POST {{baseUrl}}/limits \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "interval": "",\n  "metric": "",\n  "model_id": "",\n  "value": 0\n}' \
  --output-document \
  - {{baseUrl}}/limits
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "interval": "",
  "metric": "",
  "model_id": "",
  "value": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/limits")! 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": "limit_fku42k0qtc8ulsuas38q",
  "interval": "month",
  "metric": "volume",
  "model_id": "account_number_v18nkfqm6afpsrvy82b2",
  "model_type": "account_number",
  "status": "active",
  "type": "limit",
  "value": 0
}
POST Create a Wire Drawdown Request
{{baseUrl}}/wire_drawdown_requests
BODY json

{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}");

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

(client/post "{{baseUrl}}/wire_drawdown_requests" {:content-type :json
                                                                   :form-params {:account_number_id ""
                                                                                 :amount 0
                                                                                 :message_to_recipient ""
                                                                                 :recipient_account_number ""
                                                                                 :recipient_address_line1 ""
                                                                                 :recipient_address_line2 ""
                                                                                 :recipient_address_line3 ""
                                                                                 :recipient_name ""
                                                                                 :recipient_routing_number ""}})
require "http/client"

url = "{{baseUrl}}/wire_drawdown_requests"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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}}/wire_drawdown_requests"),
    Content = new StringContent("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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}}/wire_drawdown_requests");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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/wire_drawdown_requests HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 265

{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/wire_drawdown_requests")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_drawdown_requests"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/wire_drawdown_requests")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/wire_drawdown_requests")
  .header("content-type", "application/json")
  .body("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number_id: '',
  amount: 0,
  message_to_recipient: '',
  recipient_account_number: '',
  recipient_address_line1: '',
  recipient_address_line2: '',
  recipient_address_line3: '',
  recipient_name: '',
  recipient_routing_number: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    message_to_recipient: '',
    recipient_account_number: '',
    recipient_address_line1: '',
    recipient_address_line2: '',
    recipient_address_line3: '',
    recipient_name: '',
    recipient_routing_number: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_drawdown_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"message_to_recipient":"","recipient_account_number":"","recipient_address_line1":"","recipient_address_line2":"","recipient_address_line3":"","recipient_name":"","recipient_routing_number":""}'
};

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}}/wire_drawdown_requests',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number_id": "",\n  "amount": 0,\n  "message_to_recipient": "",\n  "recipient_account_number": "",\n  "recipient_address_line1": "",\n  "recipient_address_line2": "",\n  "recipient_address_line3": "",\n  "recipient_name": "",\n  "recipient_routing_number": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/wire_drawdown_requests")
  .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/wire_drawdown_requests',
  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({
  account_number_id: '',
  amount: 0,
  message_to_recipient: '',
  recipient_account_number: '',
  recipient_address_line1: '',
  recipient_address_line2: '',
  recipient_address_line3: '',
  recipient_name: '',
  recipient_routing_number: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  body: {
    account_number_id: '',
    amount: 0,
    message_to_recipient: '',
    recipient_account_number: '',
    recipient_address_line1: '',
    recipient_address_line2: '',
    recipient_address_line3: '',
    recipient_name: '',
    recipient_routing_number: ''
  },
  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}}/wire_drawdown_requests');

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

req.type('json');
req.send({
  account_number_id: '',
  amount: 0,
  message_to_recipient: '',
  recipient_account_number: '',
  recipient_address_line1: '',
  recipient_address_line2: '',
  recipient_address_line3: '',
  recipient_name: '',
  recipient_routing_number: ''
});

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}}/wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    message_to_recipient: '',
    recipient_account_number: '',
    recipient_address_line1: '',
    recipient_address_line2: '',
    recipient_address_line3: '',
    recipient_name: '',
    recipient_routing_number: ''
  }
};

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

const url = '{{baseUrl}}/wire_drawdown_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"message_to_recipient":"","recipient_account_number":"","recipient_address_line1":"","recipient_address_line2":"","recipient_address_line3":"","recipient_name":"","recipient_routing_number":""}'
};

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 = @{ @"account_number_id": @"",
                              @"amount": @0,
                              @"message_to_recipient": @"",
                              @"recipient_account_number": @"",
                              @"recipient_address_line1": @"",
                              @"recipient_address_line2": @"",
                              @"recipient_address_line3": @"",
                              @"recipient_name": @"",
                              @"recipient_routing_number": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/wire_drawdown_requests"]
                                                       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}}/wire_drawdown_requests" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_drawdown_requests",
  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([
    'account_number_id' => '',
    'amount' => 0,
    'message_to_recipient' => '',
    'recipient_account_number' => '',
    'recipient_address_line1' => '',
    'recipient_address_line2' => '',
    'recipient_address_line3' => '',
    'recipient_name' => '',
    'recipient_routing_number' => ''
  ]),
  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}}/wire_drawdown_requests', [
  'body' => '{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'message_to_recipient' => '',
  'recipient_account_number' => '',
  'recipient_address_line1' => '',
  'recipient_address_line2' => '',
  'recipient_address_line3' => '',
  'recipient_name' => '',
  'recipient_routing_number' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'message_to_recipient' => '',
  'recipient_account_number' => '',
  'recipient_address_line1' => '',
  'recipient_address_line2' => '',
  'recipient_address_line3' => '',
  'recipient_name' => '',
  'recipient_routing_number' => ''
]));
$request->setRequestUrl('{{baseUrl}}/wire_drawdown_requests');
$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}}/wire_drawdown_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_drawdown_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}'
import http.client

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

payload = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/wire_drawdown_requests"

payload = {
    "account_number_id": "",
    "amount": 0,
    "message_to_recipient": "",
    "recipient_account_number": "",
    "recipient_address_line1": "",
    "recipient_address_line2": "",
    "recipient_address_line3": "",
    "recipient_name": "",
    "recipient_routing_number": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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}}/wire_drawdown_requests")

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\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/wire_drawdown_requests') do |req|
  req.body = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"message_to_recipient\": \"\",\n  \"recipient_account_number\": \"\",\n  \"recipient_address_line1\": \"\",\n  \"recipient_address_line2\": \"\",\n  \"recipient_address_line3\": \"\",\n  \"recipient_name\": \"\",\n  \"recipient_routing_number\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_number_id": "",
        "amount": 0,
        "message_to_recipient": "",
        "recipient_account_number": "",
        "recipient_address_line1": "",
        "recipient_address_line2": "",
        "recipient_address_line3": "",
        "recipient_name": "",
        "recipient_routing_number": ""
    });

    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}}/wire_drawdown_requests \
  --header 'content-type: application/json' \
  --data '{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}'
echo '{
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
}' |  \
  http POST {{baseUrl}}/wire_drawdown_requests \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number_id": "",\n  "amount": 0,\n  "message_to_recipient": "",\n  "recipient_account_number": "",\n  "recipient_address_line1": "",\n  "recipient_address_line2": "",\n  "recipient_address_line3": "",\n  "recipient_name": "",\n  "recipient_routing_number": ""\n}' \
  --output-document \
  - {{baseUrl}}/wire_drawdown_requests
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number_id": "",
  "amount": 0,
  "message_to_recipient": "",
  "recipient_account_number": "",
  "recipient_address_line1": "",
  "recipient_address_line2": "",
  "recipient_address_line3": "",
  "recipient_name": "",
  "recipient_routing_number": ""
] as [String : Any]

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

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

{
  "account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
  "amount": 10000,
  "currency": "USD",
  "fulfillment_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "id": "wire_drawdown_request_q6lmocus3glo0lr2bfv3",
  "message_to_recipient": "Invoice 29582",
  "recipient_account_number": "987654321",
  "recipient_address_line1": "33 Liberty Street",
  "recipient_address_line2": "New York, NY, 10045",
  "recipient_address_line3": null,
  "recipient_name": "Ian Crease",
  "recipient_routing_number": "101050001",
  "status": "fulfilled",
  "submission": {
    "input_message_accountability_data": "20220118MMQFMP0P000003"
  },
  "type": "wire_drawdown_request"
}
POST Create a Wire Transfer
{{baseUrl}}/wire_transfers
BODY json

{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}");

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

(client/post "{{baseUrl}}/wire_transfers" {:content-type :json
                                                           :form-params {:account_id ""
                                                                         :account_number ""
                                                                         :amount 0
                                                                         :beneficiary_address_line1 ""
                                                                         :beneficiary_address_line2 ""
                                                                         :beneficiary_address_line3 ""
                                                                         :beneficiary_name ""
                                                                         :external_account_id ""
                                                                         :message_to_recipient ""
                                                                         :require_approval false
                                                                         :routing_number ""}})
require "http/client"

url = "{{baseUrl}}/wire_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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}}/wire_transfers"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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}}/wire_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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/wire_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 304

{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/wire_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/wire_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/wire_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  account_number: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  external_account_id: '',
  message_to_recipient: '',
  require_approval: false,
  routing_number: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    account_number: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    external_account_id: '',
    message_to_recipient: '',
    require_approval: false,
    routing_number: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","account_number":"","amount":0,"beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","external_account_id":"","message_to_recipient":"","require_approval":false,"routing_number":""}'
};

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}}/wire_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "account_number": "",\n  "amount": 0,\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "external_account_id": "",\n  "message_to_recipient": "",\n  "require_approval": false,\n  "routing_number": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/wire_transfers")
  .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/wire_transfers',
  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({
  account_id: '',
  account_number: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  external_account_id: '',
  message_to_recipient: '',
  require_approval: false,
  routing_number: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wire_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    account_number: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    external_account_id: '',
    message_to_recipient: '',
    require_approval: false,
    routing_number: ''
  },
  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}}/wire_transfers');

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

req.type('json');
req.send({
  account_id: '',
  account_number: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  external_account_id: '',
  message_to_recipient: '',
  require_approval: false,
  routing_number: ''
});

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}}/wire_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    account_number: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    external_account_id: '',
    message_to_recipient: '',
    require_approval: false,
    routing_number: ''
  }
};

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

const url = '{{baseUrl}}/wire_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","account_number":"","amount":0,"beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","external_account_id":"","message_to_recipient":"","require_approval":false,"routing_number":""}'
};

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 = @{ @"account_id": @"",
                              @"account_number": @"",
                              @"amount": @0,
                              @"beneficiary_address_line1": @"",
                              @"beneficiary_address_line2": @"",
                              @"beneficiary_address_line3": @"",
                              @"beneficiary_name": @"",
                              @"external_account_id": @"",
                              @"message_to_recipient": @"",
                              @"require_approval": @NO,
                              @"routing_number": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/wire_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_id' => '',
    'account_number' => '',
    'amount' => 0,
    'beneficiary_address_line1' => '',
    'beneficiary_address_line2' => '',
    'beneficiary_address_line3' => '',
    'beneficiary_name' => '',
    'external_account_id' => '',
    'message_to_recipient' => '',
    'require_approval' => null,
    'routing_number' => ''
  ]),
  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}}/wire_transfers', [
  'body' => '{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'account_number' => '',
  'amount' => 0,
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'external_account_id' => '',
  'message_to_recipient' => '',
  'require_approval' => null,
  'routing_number' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'account_number' => '',
  'amount' => 0,
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'external_account_id' => '',
  'message_to_recipient' => '',
  'require_approval' => null,
  'routing_number' => ''
]));
$request->setRequestUrl('{{baseUrl}}/wire_transfers');
$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}}/wire_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/wire_transfers"

payload = {
    "account_id": "",
    "account_number": "",
    "amount": 0,
    "beneficiary_address_line1": "",
    "beneficiary_address_line2": "",
    "beneficiary_address_line3": "",
    "beneficiary_name": "",
    "external_account_id": "",
    "message_to_recipient": "",
    "require_approval": False,
    "routing_number": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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}}/wire_transfers")

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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\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/wire_transfers') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"external_account_id\": \"\",\n  \"message_to_recipient\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "account_number": "",
        "amount": 0,
        "beneficiary_address_line1": "",
        "beneficiary_address_line2": "",
        "beneficiary_address_line3": "",
        "beneficiary_name": "",
        "external_account_id": "",
        "message_to_recipient": "",
        "require_approval": false,
        "routing_number": ""
    });

    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}}/wire_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}'
echo '{
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
}' |  \
  http POST {{baseUrl}}/wire_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "account_number": "",\n  "amount": 0,\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "external_account_id": "",\n  "message_to_recipient": "",\n  "require_approval": false,\n  "routing_number": ""\n}' \
  --output-document \
  - {{baseUrl}}/wire_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "account_number": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "external_account_id": "",
  "message_to_recipient": "",
  "require_approval": false,
  "routing_number": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
POST Create a supplemental document for an Entity
{{baseUrl}}/entities/:entity_id/supplemental_documents
QUERY PARAMS

entity_id
BODY json

{
  "file_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/entities/:entity_id/supplemental_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  \"file_id\": \"\"\n}");

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

(client/post "{{baseUrl}}/entities/:entity_id/supplemental_documents" {:content-type :json
                                                                                       :form-params {:file_id ""}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/entities/:entity_id/supplemental_documents"

	payload := strings.NewReader("{\n  \"file_id\": \"\"\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/entities/:entity_id/supplemental_documents HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "file_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/entities/:entity_id/supplemental_documents")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"file_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/entities/:entity_id/supplemental_documents")
  .header("content-type", "application/json")
  .body("{\n  \"file_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  file_id: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/entities/:entity_id/supplemental_documents');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entities/:entity_id/supplemental_documents',
  headers: {'content-type': 'application/json'},
  data: {file_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entities/:entity_id/supplemental_documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"file_id":""}'
};

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}}/entities/:entity_id/supplemental_documents',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "file_id": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"file_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/entities/:entity_id/supplemental_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/entities/:entity_id/supplemental_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({file_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entities/:entity_id/supplemental_documents',
  headers: {'content-type': 'application/json'},
  body: {file_id: ''},
  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}}/entities/:entity_id/supplemental_documents');

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

req.type('json');
req.send({
  file_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: 'POST',
  url: '{{baseUrl}}/entities/:entity_id/supplemental_documents',
  headers: {'content-type': 'application/json'},
  data: {file_id: ''}
};

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

const url = '{{baseUrl}}/entities/:entity_id/supplemental_documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"file_id":""}'
};

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 = @{ @"file_id": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/entities/:entity_id/supplemental_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}}/entities/:entity_id/supplemental_documents" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"file_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entities/:entity_id/supplemental_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([
    'file_id' => ''
  ]),
  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}}/entities/:entity_id/supplemental_documents', [
  'body' => '{
  "file_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/entities/:entity_id/supplemental_documents');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'file_id' => ''
]));

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

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

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

payload = "{\n  \"file_id\": \"\"\n}"

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

conn.request("POST", "/baseUrl/entities/:entity_id/supplemental_documents", payload, headers)

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

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

url = "{{baseUrl}}/entities/:entity_id/supplemental_documents"

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

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

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

url <- "{{baseUrl}}/entities/:entity_id/supplemental_documents"

payload <- "{\n  \"file_id\": \"\"\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}}/entities/:entity_id/supplemental_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  \"file_id\": \"\"\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/entities/:entity_id/supplemental_documents') do |req|
  req.body = "{\n  \"file_id\": \"\"\n}"
end

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

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

    let payload = json!({"file_id": ""});

    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}}/entities/:entity_id/supplemental_documents \
  --header 'content-type: application/json' \
  --data '{
  "file_id": ""
}'
echo '{
  "file_id": ""
}' |  \
  http POST {{baseUrl}}/entities/:entity_id/supplemental_documents \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "file_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/entities/:entity_id/supplemental_documents
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["file_id": ""] as [String : Any]

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

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

{
  "corporation": {
    "address": {
      "city": "New York",
      "line1": "33 Liberty Street",
      "line2": null,
      "state": "NY",
      "zip": "10045"
    },
    "beneficial_owners": [
      {
        "company_title": "CEO",
        "individual": {
          "address": {
            "city": "New York",
            "line1": "33 Liberty Street",
            "line2": null,
            "state": "NY",
            "zip": "10045"
          },
          "date_of_birth": "1970-01-31",
          "identification": {
            "country": "US",
            "method": "social_security_number",
            "number_last4": "1120"
          },
          "name": "Ian Crease"
        },
        "prong": "control"
      }
    ],
    "incorporation_state": "NY",
    "name": "National Phonograph Company",
    "tax_identifier": "602214076",
    "website": "https://example.com"
  },
  "description": null,
  "id": "entity_n8y8tnk2p9339ti393yi",
  "joint": null,
  "natural_person": null,
  "relationship": "informational",
  "structure": "corporation",
  "supplemental_documents": [
    {
      "file_id": "file_makxrc67oh9l6sg7w9yc"
    }
  ],
  "trust": null,
  "type": "entity"
}
POST Create an ACH Prenotification
{{baseUrl}}/ach_prenotifications
BODY json

{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}");

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

(client/post "{{baseUrl}}/ach_prenotifications" {:content-type :json
                                                                 :form-params {:account_number ""
                                                                               :addendum ""
                                                                               :company_descriptive_date ""
                                                                               :company_discretionary_data ""
                                                                               :company_entry_description ""
                                                                               :company_name ""
                                                                               :credit_debit_indicator ""
                                                                               :effective_date ""
                                                                               :individual_id ""
                                                                               :individual_name ""
                                                                               :routing_number ""
                                                                               :standard_entry_class_code ""}})
require "http/client"

url = "{{baseUrl}}/ach_prenotifications"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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}}/ach_prenotifications"),
    Content = new StringContent("{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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}}/ach_prenotifications");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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/ach_prenotifications HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 334

{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ach_prenotifications")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_prenotifications"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ach_prenotifications")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ach_prenotifications")
  .header("content-type", "application/json")
  .body("{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number: '',
  addendum: '',
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  credit_debit_indicator: '',
  effective_date: '',
  individual_id: '',
  individual_name: '',
  routing_number: '',
  standard_entry_class_code: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_prenotifications',
  headers: {'content-type': 'application/json'},
  data: {
    account_number: '',
    addendum: '',
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    credit_debit_indicator: '',
    effective_date: '',
    individual_id: '',
    individual_name: '',
    routing_number: '',
    standard_entry_class_code: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_prenotifications';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number":"","addendum":"","company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_name":"","credit_debit_indicator":"","effective_date":"","individual_id":"","individual_name":"","routing_number":"","standard_entry_class_code":""}'
};

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}}/ach_prenotifications',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number": "",\n  "addendum": "",\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_name": "",\n  "credit_debit_indicator": "",\n  "effective_date": "",\n  "individual_id": "",\n  "individual_name": "",\n  "routing_number": "",\n  "standard_entry_class_code": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ach_prenotifications")
  .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/ach_prenotifications',
  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({
  account_number: '',
  addendum: '',
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  credit_debit_indicator: '',
  effective_date: '',
  individual_id: '',
  individual_name: '',
  routing_number: '',
  standard_entry_class_code: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_prenotifications',
  headers: {'content-type': 'application/json'},
  body: {
    account_number: '',
    addendum: '',
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    credit_debit_indicator: '',
    effective_date: '',
    individual_id: '',
    individual_name: '',
    routing_number: '',
    standard_entry_class_code: ''
  },
  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}}/ach_prenotifications');

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

req.type('json');
req.send({
  account_number: '',
  addendum: '',
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  credit_debit_indicator: '',
  effective_date: '',
  individual_id: '',
  individual_name: '',
  routing_number: '',
  standard_entry_class_code: ''
});

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}}/ach_prenotifications',
  headers: {'content-type': 'application/json'},
  data: {
    account_number: '',
    addendum: '',
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    credit_debit_indicator: '',
    effective_date: '',
    individual_id: '',
    individual_name: '',
    routing_number: '',
    standard_entry_class_code: ''
  }
};

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

const url = '{{baseUrl}}/ach_prenotifications';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number":"","addendum":"","company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_name":"","credit_debit_indicator":"","effective_date":"","individual_id":"","individual_name":"","routing_number":"","standard_entry_class_code":""}'
};

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 = @{ @"account_number": @"",
                              @"addendum": @"",
                              @"company_descriptive_date": @"",
                              @"company_discretionary_data": @"",
                              @"company_entry_description": @"",
                              @"company_name": @"",
                              @"credit_debit_indicator": @"",
                              @"effective_date": @"",
                              @"individual_id": @"",
                              @"individual_name": @"",
                              @"routing_number": @"",
                              @"standard_entry_class_code": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ach_prenotifications"]
                                                       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}}/ach_prenotifications" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_prenotifications",
  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([
    'account_number' => '',
    'addendum' => '',
    'company_descriptive_date' => '',
    'company_discretionary_data' => '',
    'company_entry_description' => '',
    'company_name' => '',
    'credit_debit_indicator' => '',
    'effective_date' => '',
    'individual_id' => '',
    'individual_name' => '',
    'routing_number' => '',
    'standard_entry_class_code' => ''
  ]),
  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}}/ach_prenotifications', [
  'body' => '{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number' => '',
  'addendum' => '',
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_name' => '',
  'credit_debit_indicator' => '',
  'effective_date' => '',
  'individual_id' => '',
  'individual_name' => '',
  'routing_number' => '',
  'standard_entry_class_code' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number' => '',
  'addendum' => '',
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_name' => '',
  'credit_debit_indicator' => '',
  'effective_date' => '',
  'individual_id' => '',
  'individual_name' => '',
  'routing_number' => '',
  'standard_entry_class_code' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ach_prenotifications');
$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}}/ach_prenotifications' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_prenotifications' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}'
import http.client

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

payload = "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/ach_prenotifications"

payload = {
    "account_number": "",
    "addendum": "",
    "company_descriptive_date": "",
    "company_discretionary_data": "",
    "company_entry_description": "",
    "company_name": "",
    "credit_debit_indicator": "",
    "effective_date": "",
    "individual_id": "",
    "individual_name": "",
    "routing_number": "",
    "standard_entry_class_code": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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}}/ach_prenotifications")

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  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\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/ach_prenotifications') do |req|
  req.body = "{\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"credit_debit_indicator\": \"\",\n  \"effective_date\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_number": "",
        "addendum": "",
        "company_descriptive_date": "",
        "company_discretionary_data": "",
        "company_entry_description": "",
        "company_name": "",
        "credit_debit_indicator": "",
        "effective_date": "",
        "individual_id": "",
        "individual_name": "",
        "routing_number": "",
        "standard_entry_class_code": ""
    });

    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}}/ach_prenotifications \
  --header 'content-type: application/json' \
  --data '{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}'
echo '{
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
}' |  \
  http POST {{baseUrl}}/ach_prenotifications \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number": "",\n  "addendum": "",\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_name": "",\n  "credit_debit_indicator": "",\n  "effective_date": "",\n  "individual_id": "",\n  "individual_name": "",\n  "routing_number": "",\n  "standard_entry_class_code": ""\n}' \
  --output-document \
  - {{baseUrl}}/ach_prenotifications
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number": "",
  "addendum": "",
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "credit_debit_indicator": "",
  "effective_date": "",
  "individual_id": "",
  "individual_name": "",
  "routing_number": "",
  "standard_entry_class_code": ""
] as [String : Any]

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

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

{
  "account_number": "987654321",
  "addendum": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": null,
  "created_at": "2020-01-31T23:59:59Z",
  "credit_debit_indicator": null,
  "effective_date": null,
  "id": "ach_prenotification_ubjf9qqsxl3obbcn1u34",
  "prenotification_return": null,
  "routing_number": "101050001",
  "status": "submitted",
  "type": "ach_prenotification"
}
POST Create an ACH Return
{{baseUrl}}/inbound_ach_transfer_returns
BODY json

{
  "reason": "",
  "transaction_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"reason\": \"\",\n  \"transaction_id\": \"\"\n}");

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

(client/post "{{baseUrl}}/inbound_ach_transfer_returns" {:content-type :json
                                                                         :form-params {:reason ""
                                                                                       :transaction_id ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\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/inbound_ach_transfer_returns HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 42

{
  "reason": "",
  "transaction_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/inbound_ach_transfer_returns")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/inbound_ach_transfer_returns")
  .header("content-type", "application/json")
  .body("{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  reason: '',
  transaction_id: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/inbound_ach_transfer_returns',
  headers: {'content-type': 'application/json'},
  data: {reason: '', transaction_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/inbound_ach_transfer_returns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"reason":"","transaction_id":""}'
};

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}}/inbound_ach_transfer_returns',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "reason": "",\n  "transaction_id": ""\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/inbound_ach_transfer_returns',
  headers: {'content-type': 'application/json'},
  body: {reason: '', transaction_id: ''},
  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}}/inbound_ach_transfer_returns');

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

req.type('json');
req.send({
  reason: '',
  transaction_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: 'POST',
  url: '{{baseUrl}}/inbound_ach_transfer_returns',
  headers: {'content-type': 'application/json'},
  data: {reason: '', transaction_id: ''}
};

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

const url = '{{baseUrl}}/inbound_ach_transfer_returns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"reason":"","transaction_id":""}'
};

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 = @{ @"reason": @"",
                              @"transaction_id": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'reason' => '',
  'transaction_id' => ''
]));

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

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

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

payload = "{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/inbound_ach_transfer_returns"

payload = {
    "reason": "",
    "transaction_id": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\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}}/inbound_ach_transfer_returns")

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  \"reason\": \"\",\n  \"transaction_id\": \"\"\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/inbound_ach_transfer_returns') do |req|
  req.body = "{\n  \"reason\": \"\",\n  \"transaction_id\": \"\"\n}"
end

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

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

    let payload = json!({
        "reason": "",
        "transaction_id": ""
    });

    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}}/inbound_ach_transfer_returns \
  --header 'content-type: application/json' \
  --data '{
  "reason": "",
  "transaction_id": ""
}'
echo '{
  "reason": "",
  "transaction_id": ""
}' |  \
  http POST {{baseUrl}}/inbound_ach_transfer_returns \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "reason": "",\n  "transaction_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/inbound_ach_transfer_returns
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "reason": "",
  "transaction_id": ""
] as [String : Any]

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

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

{
  "class_name": "inbound_ach_transfer_return",
  "id": "inbound_ach_transfer_return_fhcxk5huskwhmt7iz0gk",
  "inbound_ach_transfer_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "reason": "payment_stopped",
  "status": "submitted",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "transaction_id": null,
  "type": "inbound_ach_transfer_return"
}
POST Create an ACH Transfer
{{baseUrl}}/ach_transfers
BODY json

{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}");

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

(client/post "{{baseUrl}}/ach_transfers" {:content-type :json
                                                          :form-params {:account_id ""
                                                                        :account_number ""
                                                                        :addendum ""
                                                                        :amount 0
                                                                        :company_descriptive_date ""
                                                                        :company_discretionary_data ""
                                                                        :company_entry_description ""
                                                                        :company_name ""
                                                                        :effective_date ""
                                                                        :external_account_id ""
                                                                        :funding ""
                                                                        :individual_id ""
                                                                        :individual_name ""
                                                                        :require_approval false
                                                                        :routing_number ""
                                                                        :standard_entry_class_code ""
                                                                        :statement_descriptor ""}})
require "http/client"

url = "{{baseUrl}}/ach_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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}}/ach_transfers"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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}}/ach_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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/ach_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 442

{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ach_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ach_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ach_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  account_number: '',
  addendum: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  effective_date: '',
  external_account_id: '',
  funding: '',
  individual_id: '',
  individual_name: '',
  require_approval: false,
  routing_number: '',
  standard_entry_class_code: '',
  statement_descriptor: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    account_number: '',
    addendum: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    effective_date: '',
    external_account_id: '',
    funding: '',
    individual_id: '',
    individual_name: '',
    require_approval: false,
    routing_number: '',
    standard_entry_class_code: '',
    statement_descriptor: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","account_number":"","addendum":"","amount":0,"company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_name":"","effective_date":"","external_account_id":"","funding":"","individual_id":"","individual_name":"","require_approval":false,"routing_number":"","standard_entry_class_code":"","statement_descriptor":""}'
};

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}}/ach_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "account_number": "",\n  "addendum": "",\n  "amount": 0,\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_name": "",\n  "effective_date": "",\n  "external_account_id": "",\n  "funding": "",\n  "individual_id": "",\n  "individual_name": "",\n  "require_approval": false,\n  "routing_number": "",\n  "standard_entry_class_code": "",\n  "statement_descriptor": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ach_transfers")
  .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/ach_transfers',
  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({
  account_id: '',
  account_number: '',
  addendum: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  effective_date: '',
  external_account_id: '',
  funding: '',
  individual_id: '',
  individual_name: '',
  require_approval: false,
  routing_number: '',
  standard_entry_class_code: '',
  statement_descriptor: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ach_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    account_number: '',
    addendum: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    effective_date: '',
    external_account_id: '',
    funding: '',
    individual_id: '',
    individual_name: '',
    require_approval: false,
    routing_number: '',
    standard_entry_class_code: '',
    statement_descriptor: ''
  },
  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}}/ach_transfers');

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

req.type('json');
req.send({
  account_id: '',
  account_number: '',
  addendum: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_name: '',
  effective_date: '',
  external_account_id: '',
  funding: '',
  individual_id: '',
  individual_name: '',
  require_approval: false,
  routing_number: '',
  standard_entry_class_code: '',
  statement_descriptor: ''
});

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}}/ach_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    account_number: '',
    addendum: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_name: '',
    effective_date: '',
    external_account_id: '',
    funding: '',
    individual_id: '',
    individual_name: '',
    require_approval: false,
    routing_number: '',
    standard_entry_class_code: '',
    statement_descriptor: ''
  }
};

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

const url = '{{baseUrl}}/ach_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","account_number":"","addendum":"","amount":0,"company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_name":"","effective_date":"","external_account_id":"","funding":"","individual_id":"","individual_name":"","require_approval":false,"routing_number":"","standard_entry_class_code":"","statement_descriptor":""}'
};

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 = @{ @"account_id": @"",
                              @"account_number": @"",
                              @"addendum": @"",
                              @"amount": @0,
                              @"company_descriptive_date": @"",
                              @"company_discretionary_data": @"",
                              @"company_entry_description": @"",
                              @"company_name": @"",
                              @"effective_date": @"",
                              @"external_account_id": @"",
                              @"funding": @"",
                              @"individual_id": @"",
                              @"individual_name": @"",
                              @"require_approval": @NO,
                              @"routing_number": @"",
                              @"standard_entry_class_code": @"",
                              @"statement_descriptor": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/ach_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_id' => '',
    'account_number' => '',
    'addendum' => '',
    'amount' => 0,
    'company_descriptive_date' => '',
    'company_discretionary_data' => '',
    'company_entry_description' => '',
    'company_name' => '',
    'effective_date' => '',
    'external_account_id' => '',
    'funding' => '',
    'individual_id' => '',
    'individual_name' => '',
    'require_approval' => null,
    'routing_number' => '',
    'standard_entry_class_code' => '',
    'statement_descriptor' => ''
  ]),
  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}}/ach_transfers', [
  'body' => '{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'account_number' => '',
  'addendum' => '',
  'amount' => 0,
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_name' => '',
  'effective_date' => '',
  'external_account_id' => '',
  'funding' => '',
  'individual_id' => '',
  'individual_name' => '',
  'require_approval' => null,
  'routing_number' => '',
  'standard_entry_class_code' => '',
  'statement_descriptor' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'account_number' => '',
  'addendum' => '',
  'amount' => 0,
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_name' => '',
  'effective_date' => '',
  'external_account_id' => '',
  'funding' => '',
  'individual_id' => '',
  'individual_name' => '',
  'require_approval' => null,
  'routing_number' => '',
  'standard_entry_class_code' => '',
  'statement_descriptor' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ach_transfers');
$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}}/ach_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/ach_transfers"

payload = {
    "account_id": "",
    "account_number": "",
    "addendum": "",
    "amount": 0,
    "company_descriptive_date": "",
    "company_discretionary_data": "",
    "company_entry_description": "",
    "company_name": "",
    "effective_date": "",
    "external_account_id": "",
    "funding": "",
    "individual_id": "",
    "individual_name": "",
    "require_approval": False,
    "routing_number": "",
    "standard_entry_class_code": "",
    "statement_descriptor": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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}}/ach_transfers")

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  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\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/ach_transfers') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"account_number\": \"\",\n  \"addendum\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_name\": \"\",\n  \"effective_date\": \"\",\n  \"external_account_id\": \"\",\n  \"funding\": \"\",\n  \"individual_id\": \"\",\n  \"individual_name\": \"\",\n  \"require_approval\": false,\n  \"routing_number\": \"\",\n  \"standard_entry_class_code\": \"\",\n  \"statement_descriptor\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "account_number": "",
        "addendum": "",
        "amount": 0,
        "company_descriptive_date": "",
        "company_discretionary_data": "",
        "company_entry_description": "",
        "company_name": "",
        "effective_date": "",
        "external_account_id": "",
        "funding": "",
        "individual_id": "",
        "individual_name": "",
        "require_approval": false,
        "routing_number": "",
        "standard_entry_class_code": "",
        "statement_descriptor": ""
    });

    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}}/ach_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}'
echo '{
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
}' |  \
  http POST {{baseUrl}}/ach_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "account_number": "",\n  "addendum": "",\n  "amount": 0,\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_name": "",\n  "effective_date": "",\n  "external_account_id": "",\n  "funding": "",\n  "individual_id": "",\n  "individual_name": "",\n  "require_approval": false,\n  "routing_number": "",\n  "standard_entry_class_code": "",\n  "statement_descriptor": ""\n}' \
  --output-document \
  - {{baseUrl}}/ach_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "account_number": "",
  "addendum": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_name": "",
  "effective_date": "",
  "external_account_id": "",
  "funding": "",
  "individual_id": "",
  "individual_name": "",
  "require_approval": false,
  "routing_number": "",
  "standard_entry_class_code": "",
  "statement_descriptor": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
POST Create an Account Number
{{baseUrl}}/account_numbers
BODY json

{
  "account_id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"name\": \"\"\n}");

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

(client/post "{{baseUrl}}/account_numbers" {:content-type :json
                                                            :form-params {:account_id ""
                                                                          :name ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"name\": \"\"\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/account_numbers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 36

{
  "account_id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/account_numbers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/account_numbers")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  name: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_numbers',
  headers: {'content-type': 'application/json'},
  data: {account_id: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_numbers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","name":""}'
};

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}}/account_numbers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "name": ""\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_numbers',
  headers: {'content-type': 'application/json'},
  body: {account_id: '', name: ''},
  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}}/account_numbers');

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

req.type('json');
req.send({
  account_id: '',
  name: ''
});

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}}/account_numbers',
  headers: {'content-type': 'application/json'},
  data: {account_id: '', name: ''}
};

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

const url = '{{baseUrl}}/account_numbers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","name":""}'
};

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 = @{ @"account_id": @"",
                              @"name": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'name' => ''
]));

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

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

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

payload = "{\n  \"account_id\": \"\",\n  \"name\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/account_numbers"

payload = {
    "account_id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"name\": \"\"\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}}/account_numbers")

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  \"account_id\": \"\",\n  \"name\": \"\"\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/account_numbers') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"name\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "name": ""
    });

    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}}/account_numbers \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "name": ""
}'
echo '{
  "account_id": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/account_numbers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/account_numbers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "name": ""
] as [String : Any]

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

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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "account_number_v18nkfqm6afpsrvy82b2",
  "name": "ACH",
  "replacement": {
    "replaced_account_number_id": null,
    "replaced_by_account_number_id": null
  },
  "routing_number": "101050001",
  "status": "active",
  "type": "account_number"
}
POST Create an Account Transfer
{{baseUrl}}/account_transfers
BODY json

{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}");

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

(client/post "{{baseUrl}}/account_transfers" {:content-type :json
                                                              :form-params {:account_id ""
                                                                            :amount 0
                                                                            :description ""
                                                                            :destination_account_id ""
                                                                            :require_approval false}})
require "http/client"

url = "{{baseUrl}}/account_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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}}/account_transfers"),
    Content = new StringContent("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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}}/account_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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/account_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 119

{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/account_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/account_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/account_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}")
  .asString();
const data = JSON.stringify({
  account_id: '',
  amount: 0,
  description: '',
  destination_account_id: '',
  require_approval: false
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    amount: 0,
    description: '',
    destination_account_id: '',
    require_approval: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","amount":0,"description":"","destination_account_id":"","require_approval":false}'
};

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}}/account_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": "",\n  "amount": 0,\n  "description": "",\n  "destination_account_id": "",\n  "require_approval": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/account_transfers")
  .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/account_transfers',
  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({
  account_id: '',
  amount: 0,
  description: '',
  destination_account_id: '',
  require_approval: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/account_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_id: '',
    amount: 0,
    description: '',
    destination_account_id: '',
    require_approval: false
  },
  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}}/account_transfers');

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

req.type('json');
req.send({
  account_id: '',
  amount: 0,
  description: '',
  destination_account_id: '',
  require_approval: false
});

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}}/account_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_id: '',
    amount: 0,
    description: '',
    destination_account_id: '',
    require_approval: false
  }
};

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

const url = '{{baseUrl}}/account_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":"","amount":0,"description":"","destination_account_id":"","require_approval":false}'
};

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 = @{ @"account_id": @"",
                              @"amount": @0,
                              @"description": @"",
                              @"destination_account_id": @"",
                              @"require_approval": @NO };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/account_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_id' => '',
    'amount' => 0,
    'description' => '',
    'destination_account_id' => '',
    'require_approval' => null
  ]),
  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}}/account_transfers', [
  'body' => '{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => '',
  'amount' => 0,
  'description' => '',
  'destination_account_id' => '',
  'require_approval' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => '',
  'amount' => 0,
  'description' => '',
  'destination_account_id' => '',
  'require_approval' => null
]));
$request->setRequestUrl('{{baseUrl}}/account_transfers');
$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}}/account_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}'
import http.client

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

payload = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}"

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

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

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

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

url = "{{baseUrl}}/account_transfers"

payload = {
    "account_id": "",
    "amount": 0,
    "description": "",
    "destination_account_id": "",
    "require_approval": False
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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}}/account_transfers")

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  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\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/account_transfers') do |req|
  req.body = "{\n  \"account_id\": \"\",\n  \"amount\": 0,\n  \"description\": \"\",\n  \"destination_account_id\": \"\",\n  \"require_approval\": false\n}"
end

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

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

    let payload = json!({
        "account_id": "",
        "amount": 0,
        "description": "",
        "destination_account_id": "",
        "require_approval": false
    });

    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}}/account_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}'
echo '{
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
}' |  \
  http POST {{baseUrl}}/account_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": "",\n  "amount": 0,\n  "description": "",\n  "destination_account_id": "",\n  "require_approval": false\n}' \
  --output-document \
  - {{baseUrl}}/account_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_id": "",
  "amount": 0,
  "description": "",
  "destination_account_id": "",
  "require_approval": false
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Move money into savings",
  "destination_account_id": "account_uf16sut2ct5bevmq3eh",
  "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
  "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
  "network": "account",
  "status": "complete",
  "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "account_transfer"
}
POST Create an Account
{{baseUrl}}/accounts
BODY json

{
  "entity_id": "",
  "informational_entity_id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}");

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

(client/post "{{baseUrl}}/accounts" {:content-type :json
                                                     :form-params {:entity_id ""
                                                                   :informational_entity_id ""
                                                                   :name ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\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/accounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 68

{
  "entity_id": "",
  "informational_entity_id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounts")
  .header("content-type", "application/json")
  .body("{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  entity_id: '',
  informational_entity_id: '',
  name: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts',
  headers: {'content-type': 'application/json'},
  data: {entity_id: '', informational_entity_id: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entity_id":"","informational_entity_id":"","name":""}'
};

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}}/accounts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entity_id": "",\n  "informational_entity_id": "",\n  "name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts")
  .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/accounts',
  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({entity_id: '', informational_entity_id: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts',
  headers: {'content-type': 'application/json'},
  body: {entity_id: '', informational_entity_id: '', name: ''},
  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}}/accounts');

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

req.type('json');
req.send({
  entity_id: '',
  informational_entity_id: '',
  name: ''
});

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}}/accounts',
  headers: {'content-type': 'application/json'},
  data: {entity_id: '', informational_entity_id: '', name: ''}
};

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

const url = '{{baseUrl}}/accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entity_id":"","informational_entity_id":"","name":""}'
};

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 = @{ @"entity_id": @"",
                              @"informational_entity_id": @"",
                              @"name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts"]
                                                       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}}/accounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}" in

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entity_id' => '',
  'informational_entity_id' => '',
  'name' => ''
]));

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

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

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

payload = "{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/accounts"

payload = {
    "entity_id": "",
    "informational_entity_id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\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}}/accounts")

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  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\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/accounts') do |req|
  req.body = "{\n  \"entity_id\": \"\",\n  \"informational_entity_id\": \"\",\n  \"name\": \"\"\n}"
end

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

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

    let payload = json!({
        "entity_id": "",
        "informational_entity_id": "",
        "name": ""
    });

    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}}/accounts \
  --header 'content-type: application/json' \
  --data '{
  "entity_id": "",
  "informational_entity_id": "",
  "name": ""
}'
echo '{
  "entity_id": "",
  "informational_entity_id": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/accounts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entity_id": "",\n  "informational_entity_id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "entity_id": "",
  "informational_entity_id": "",
  "name": ""
] as [String : Any]

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

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

{
  "balances": {
    "available_balance": 100,
    "current_balance": 100
  },
  "bank": "first_internet_bank",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "id": "account_in71c4amph0vgo2qllky",
  "informational_entity_id": null,
  "interest_accrued": "0.01",
  "interest_accrued_at": "2020-01-31",
  "name": "My first account!",
  "replacement": {
    "replaced_account_id": null,
    "replaced_by_account_id": null
  },
  "status": "open",
  "type": "account"
}
POST Create an Entity
{{baseUrl}}/entities
BODY json

{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}");

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

(client/post "{{baseUrl}}/entities" {:content-type :json
                                                     :form-params {:corporation {:address {:city ""
                                                                                           :line1 ""
                                                                                           :line2 ""
                                                                                           :state ""
                                                                                           :zip ""}
                                                                                 :beneficial_owners [{:company_title ""
                                                                                                      :individual {:address {:city ""
                                                                                                                             :line1 ""
                                                                                                                             :line2 ""
                                                                                                                             :state ""
                                                                                                                             :zip ""}
                                                                                                                   :confirmed_no_us_tax_id false
                                                                                                                   :date_of_birth ""
                                                                                                                   :identification {:drivers_license {:expiration_date ""
                                                                                                                                                      :file_id ""
                                                                                                                                                      :state ""}
                                                                                                                                    :method ""
                                                                                                                                    :number ""
                                                                                                                                    :other {:country ""
                                                                                                                                            :description ""
                                                                                                                                            :expiration_date ""
                                                                                                                                            :file_id ""}
                                                                                                                                    :passport {:country ""
                                                                                                                                               :expiration_date ""
                                                                                                                                               :file_id ""}}
                                                                                                                   :name ""}
                                                                                                      :prong ""}]
                                                                                 :incorporation_state ""
                                                                                 :name ""
                                                                                 :tax_identifier ""
                                                                                 :website ""}
                                                                   :description ""
                                                                   :joint {:individuals [{:address {:city ""
                                                                                                    :line1 ""
                                                                                                    :line2 ""
                                                                                                    :state ""
                                                                                                    :zip ""}
                                                                                          :confirmed_no_us_tax_id false
                                                                                          :date_of_birth ""
                                                                                          :identification {:drivers_license {:expiration_date ""
                                                                                                                             :file_id ""
                                                                                                                             :state ""}
                                                                                                           :method ""
                                                                                                           :number ""
                                                                                                           :other {:country ""
                                                                                                                   :description ""
                                                                                                                   :expiration_date ""
                                                                                                                   :file_id ""}
                                                                                                           :passport {:country ""
                                                                                                                      :expiration_date ""
                                                                                                                      :file_id ""}}
                                                                                          :name ""}]
                                                                           :name ""}
                                                                   :natural_person {:address {:city ""
                                                                                              :line1 ""
                                                                                              :line2 ""
                                                                                              :state ""
                                                                                              :zip ""}
                                                                                    :confirmed_no_us_tax_id false
                                                                                    :date_of_birth ""
                                                                                    :identification {:drivers_license {:expiration_date ""
                                                                                                                       :file_id ""
                                                                                                                       :state ""}
                                                                                                     :method ""
                                                                                                     :number ""
                                                                                                     :other {:country ""
                                                                                                             :description ""
                                                                                                             :expiration_date ""
                                                                                                             :file_id ""}
                                                                                                     :passport {:country ""
                                                                                                                :expiration_date ""
                                                                                                                :file_id ""}}
                                                                                    :name ""}
                                                                   :relationship ""
                                                                   :structure ""
                                                                   :supplemental_documents [{:file_id ""}]
                                                                   :trust {:address {:city ""
                                                                                     :line1 ""
                                                                                     :line2 ""
                                                                                     :state ""
                                                                                     :zip ""}
                                                                           :category ""
                                                                           :formation_document_file_id ""
                                                                           :formation_state ""
                                                                           :grantor {:address {:city ""
                                                                                               :line1 ""
                                                                                               :line2 ""
                                                                                               :state ""
                                                                                               :zip ""}
                                                                                     :confirmed_no_us_tax_id false
                                                                                     :date_of_birth ""
                                                                                     :identification {:drivers_license {:expiration_date ""
                                                                                                                        :file_id ""
                                                                                                                        :state ""}
                                                                                                      :method ""
                                                                                                      :number ""
                                                                                                      :other {:country ""
                                                                                                              :description ""
                                                                                                              :expiration_date ""
                                                                                                              :file_id ""}
                                                                                                      :passport {:country ""
                                                                                                                 :expiration_date ""
                                                                                                                 :file_id ""}}
                                                                                     :name ""}
                                                                           :name ""
                                                                           :tax_identifier ""
                                                                           :trustees [{:individual {:address {:city ""
                                                                                                              :line1 ""
                                                                                                              :line2 ""
                                                                                                              :state ""
                                                                                                              :zip ""}
                                                                                                    :confirmed_no_us_tax_id false
                                                                                                    :date_of_birth ""
                                                                                                    :identification {:drivers_license {:expiration_date ""
                                                                                                                                       :file_id ""
                                                                                                                                       :state ""}
                                                                                                                     :method ""
                                                                                                                     :number ""
                                                                                                                     :other {:country ""
                                                                                                                             :description ""
                                                                                                                             :expiration_date ""
                                                                                                                             :file_id ""}
                                                                                                                     :passport {:country ""
                                                                                                                                :expiration_date ""
                                                                                                                                :file_id ""}}
                                                                                                    :name ""}
                                                                                       :structure ""}]}}})
require "http/client"

url = "{{baseUrl}}/entities"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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}}/entities"),
    Content = new StringContent("{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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}}/entities");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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/entities HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4552

{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/entities")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/entities"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/entities")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/entities")
  .header("content-type", "application/json")
  .body("{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  corporation: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    beneficial_owners: [
      {
        company_title: '',
        individual: {
          address: {
            city: '',
            line1: '',
            line2: '',
            state: '',
            zip: ''
          },
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {
              expiration_date: '',
              file_id: '',
              state: ''
            },
            method: '',
            number: '',
            other: {
              country: '',
              description: '',
              expiration_date: '',
              file_id: ''
            },
            passport: {
              country: '',
              expiration_date: '',
              file_id: ''
            }
          },
          name: ''
        },
        prong: ''
      }
    ],
    incorporation_state: '',
    name: '',
    tax_identifier: '',
    website: ''
  },
  description: '',
  joint: {
    individuals: [
      {
        address: {
          city: '',
          line1: '',
          line2: '',
          state: '',
          zip: ''
        },
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {
            expiration_date: '',
            file_id: '',
            state: ''
          },
          method: '',
          number: '',
          other: {
            country: '',
            description: '',
            expiration_date: '',
            file_id: ''
          },
          passport: {
            country: '',
            expiration_date: '',
            file_id: ''
          }
        },
        name: ''
      }
    ],
    name: ''
  },
  natural_person: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    confirmed_no_us_tax_id: false,
    date_of_birth: '',
    identification: {
      drivers_license: {
        expiration_date: '',
        file_id: '',
        state: ''
      },
      method: '',
      number: '',
      other: {
        country: '',
        description: '',
        expiration_date: '',
        file_id: ''
      },
      passport: {
        country: '',
        expiration_date: '',
        file_id: ''
      }
    },
    name: ''
  },
  relationship: '',
  structure: '',
  supplemental_documents: [
    {
      file_id: ''
    }
  ],
  trust: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    category: '',
    formation_document_file_id: '',
    formation_state: '',
    grantor: {
      address: {
        city: '',
        line1: '',
        line2: '',
        state: '',
        zip: ''
      },
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {
          expiration_date: '',
          file_id: '',
          state: ''
        },
        method: '',
        number: '',
        other: {
          country: '',
          description: '',
          expiration_date: '',
          file_id: ''
        },
        passport: {
          country: '',
          expiration_date: '',
          file_id: ''
        }
      },
      name: ''
    },
    name: '',
    tax_identifier: '',
    trustees: [
      {
        individual: {
          address: {
            city: '',
            line1: '',
            line2: '',
            state: '',
            zip: ''
          },
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {
              expiration_date: '',
              file_id: '',
              state: ''
            },
            method: '',
            number: '',
            other: {
              country: '',
              description: '',
              expiration_date: '',
              file_id: ''
            },
            passport: {
              country: '',
              expiration_date: '',
              file_id: ''
            }
          },
          name: ''
        },
        structure: ''
      }
    ]
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entities',
  headers: {'content-type': 'application/json'},
  data: {
    corporation: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      beneficial_owners: [
        {
          company_title: '',
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          prong: ''
        }
      ],
      incorporation_state: '',
      name: '',
      tax_identifier: '',
      website: ''
    },
    description: '',
    joint: {
      individuals: [
        {
          address: {city: '', line1: '', line2: '', state: '', zip: ''},
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {expiration_date: '', file_id: '', state: ''},
            method: '',
            number: '',
            other: {country: '', description: '', expiration_date: '', file_id: ''},
            passport: {country: '', expiration_date: '', file_id: ''}
          },
          name: ''
        }
      ],
      name: ''
    },
    natural_person: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {expiration_date: '', file_id: '', state: ''},
        method: '',
        number: '',
        other: {country: '', description: '', expiration_date: '', file_id: ''},
        passport: {country: '', expiration_date: '', file_id: ''}
      },
      name: ''
    },
    relationship: '',
    structure: '',
    supplemental_documents: [{file_id: ''}],
    trust: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      category: '',
      formation_document_file_id: '',
      formation_state: '',
      grantor: {
        address: {city: '', line1: '', line2: '', state: '', zip: ''},
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {expiration_date: '', file_id: '', state: ''},
          method: '',
          number: '',
          other: {country: '', description: '', expiration_date: '', file_id: ''},
          passport: {country: '', expiration_date: '', file_id: ''}
        },
        name: ''
      },
      name: '',
      tax_identifier: '',
      trustees: [
        {
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          structure: ''
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"corporation":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"beneficial_owners":[{"company_title":"","individual":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"prong":""}],"incorporation_state":"","name":"","tax_identifier":"","website":""},"description":"","joint":{"individuals":[{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""}],"name":""},"natural_person":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"relationship":"","structure":"","supplemental_documents":[{"file_id":""}],"trust":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"category":"","formation_document_file_id":"","formation_state":"","grantor":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"name":"","tax_identifier":"","trustees":[{"individual":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"structure":""}]}}'
};

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}}/entities',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "corporation": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "beneficial_owners": [\n      {\n        "company_title": "",\n        "individual": {\n          "address": {\n            "city": "",\n            "line1": "",\n            "line2": "",\n            "state": "",\n            "zip": ""\n          },\n          "confirmed_no_us_tax_id": false,\n          "date_of_birth": "",\n          "identification": {\n            "drivers_license": {\n              "expiration_date": "",\n              "file_id": "",\n              "state": ""\n            },\n            "method": "",\n            "number": "",\n            "other": {\n              "country": "",\n              "description": "",\n              "expiration_date": "",\n              "file_id": ""\n            },\n            "passport": {\n              "country": "",\n              "expiration_date": "",\n              "file_id": ""\n            }\n          },\n          "name": ""\n        },\n        "prong": ""\n      }\n    ],\n    "incorporation_state": "",\n    "name": "",\n    "tax_identifier": "",\n    "website": ""\n  },\n  "description": "",\n  "joint": {\n    "individuals": [\n      {\n        "address": {\n          "city": "",\n          "line1": "",\n          "line2": "",\n          "state": "",\n          "zip": ""\n        },\n        "confirmed_no_us_tax_id": false,\n        "date_of_birth": "",\n        "identification": {\n          "drivers_license": {\n            "expiration_date": "",\n            "file_id": "",\n            "state": ""\n          },\n          "method": "",\n          "number": "",\n          "other": {\n            "country": "",\n            "description": "",\n            "expiration_date": "",\n            "file_id": ""\n          },\n          "passport": {\n            "country": "",\n            "expiration_date": "",\n            "file_id": ""\n          }\n        },\n        "name": ""\n      }\n    ],\n    "name": ""\n  },\n  "natural_person": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "confirmed_no_us_tax_id": false,\n    "date_of_birth": "",\n    "identification": {\n      "drivers_license": {\n        "expiration_date": "",\n        "file_id": "",\n        "state": ""\n      },\n      "method": "",\n      "number": "",\n      "other": {\n        "country": "",\n        "description": "",\n        "expiration_date": "",\n        "file_id": ""\n      },\n      "passport": {\n        "country": "",\n        "expiration_date": "",\n        "file_id": ""\n      }\n    },\n    "name": ""\n  },\n  "relationship": "",\n  "structure": "",\n  "supplemental_documents": [\n    {\n      "file_id": ""\n    }\n  ],\n  "trust": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "category": "",\n    "formation_document_file_id": "",\n    "formation_state": "",\n    "grantor": {\n      "address": {\n        "city": "",\n        "line1": "",\n        "line2": "",\n        "state": "",\n        "zip": ""\n      },\n      "confirmed_no_us_tax_id": false,\n      "date_of_birth": "",\n      "identification": {\n        "drivers_license": {\n          "expiration_date": "",\n          "file_id": "",\n          "state": ""\n        },\n        "method": "",\n        "number": "",\n        "other": {\n          "country": "",\n          "description": "",\n          "expiration_date": "",\n          "file_id": ""\n        },\n        "passport": {\n          "country": "",\n          "expiration_date": "",\n          "file_id": ""\n        }\n      },\n      "name": ""\n    },\n    "name": "",\n    "tax_identifier": "",\n    "trustees": [\n      {\n        "individual": {\n          "address": {\n            "city": "",\n            "line1": "",\n            "line2": "",\n            "state": "",\n            "zip": ""\n          },\n          "confirmed_no_us_tax_id": false,\n          "date_of_birth": "",\n          "identification": {\n            "drivers_license": {\n              "expiration_date": "",\n              "file_id": "",\n              "state": ""\n            },\n            "method": "",\n            "number": "",\n            "other": {\n              "country": "",\n              "description": "",\n              "expiration_date": "",\n              "file_id": ""\n            },\n            "passport": {\n              "country": "",\n              "expiration_date": "",\n              "file_id": ""\n            }\n          },\n          "name": ""\n        },\n        "structure": ""\n      }\n    ]\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  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/entities")
  .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/entities',
  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({
  corporation: {
    address: {city: '', line1: '', line2: '', state: '', zip: ''},
    beneficial_owners: [
      {
        company_title: '',
        individual: {
          address: {city: '', line1: '', line2: '', state: '', zip: ''},
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {expiration_date: '', file_id: '', state: ''},
            method: '',
            number: '',
            other: {country: '', description: '', expiration_date: '', file_id: ''},
            passport: {country: '', expiration_date: '', file_id: ''}
          },
          name: ''
        },
        prong: ''
      }
    ],
    incorporation_state: '',
    name: '',
    tax_identifier: '',
    website: ''
  },
  description: '',
  joint: {
    individuals: [
      {
        address: {city: '', line1: '', line2: '', state: '', zip: ''},
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {expiration_date: '', file_id: '', state: ''},
          method: '',
          number: '',
          other: {country: '', description: '', expiration_date: '', file_id: ''},
          passport: {country: '', expiration_date: '', file_id: ''}
        },
        name: ''
      }
    ],
    name: ''
  },
  natural_person: {
    address: {city: '', line1: '', line2: '', state: '', zip: ''},
    confirmed_no_us_tax_id: false,
    date_of_birth: '',
    identification: {
      drivers_license: {expiration_date: '', file_id: '', state: ''},
      method: '',
      number: '',
      other: {country: '', description: '', expiration_date: '', file_id: ''},
      passport: {country: '', expiration_date: '', file_id: ''}
    },
    name: ''
  },
  relationship: '',
  structure: '',
  supplemental_documents: [{file_id: ''}],
  trust: {
    address: {city: '', line1: '', line2: '', state: '', zip: ''},
    category: '',
    formation_document_file_id: '',
    formation_state: '',
    grantor: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {expiration_date: '', file_id: '', state: ''},
        method: '',
        number: '',
        other: {country: '', description: '', expiration_date: '', file_id: ''},
        passport: {country: '', expiration_date: '', file_id: ''}
      },
      name: ''
    },
    name: '',
    tax_identifier: '',
    trustees: [
      {
        individual: {
          address: {city: '', line1: '', line2: '', state: '', zip: ''},
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {expiration_date: '', file_id: '', state: ''},
            method: '',
            number: '',
            other: {country: '', description: '', expiration_date: '', file_id: ''},
            passport: {country: '', expiration_date: '', file_id: ''}
          },
          name: ''
        },
        structure: ''
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entities',
  headers: {'content-type': 'application/json'},
  body: {
    corporation: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      beneficial_owners: [
        {
          company_title: '',
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          prong: ''
        }
      ],
      incorporation_state: '',
      name: '',
      tax_identifier: '',
      website: ''
    },
    description: '',
    joint: {
      individuals: [
        {
          address: {city: '', line1: '', line2: '', state: '', zip: ''},
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {expiration_date: '', file_id: '', state: ''},
            method: '',
            number: '',
            other: {country: '', description: '', expiration_date: '', file_id: ''},
            passport: {country: '', expiration_date: '', file_id: ''}
          },
          name: ''
        }
      ],
      name: ''
    },
    natural_person: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {expiration_date: '', file_id: '', state: ''},
        method: '',
        number: '',
        other: {country: '', description: '', expiration_date: '', file_id: ''},
        passport: {country: '', expiration_date: '', file_id: ''}
      },
      name: ''
    },
    relationship: '',
    structure: '',
    supplemental_documents: [{file_id: ''}],
    trust: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      category: '',
      formation_document_file_id: '',
      formation_state: '',
      grantor: {
        address: {city: '', line1: '', line2: '', state: '', zip: ''},
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {expiration_date: '', file_id: '', state: ''},
          method: '',
          number: '',
          other: {country: '', description: '', expiration_date: '', file_id: ''},
          passport: {country: '', expiration_date: '', file_id: ''}
        },
        name: ''
      },
      name: '',
      tax_identifier: '',
      trustees: [
        {
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          structure: ''
        }
      ]
    }
  },
  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}}/entities');

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

req.type('json');
req.send({
  corporation: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    beneficial_owners: [
      {
        company_title: '',
        individual: {
          address: {
            city: '',
            line1: '',
            line2: '',
            state: '',
            zip: ''
          },
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {
              expiration_date: '',
              file_id: '',
              state: ''
            },
            method: '',
            number: '',
            other: {
              country: '',
              description: '',
              expiration_date: '',
              file_id: ''
            },
            passport: {
              country: '',
              expiration_date: '',
              file_id: ''
            }
          },
          name: ''
        },
        prong: ''
      }
    ],
    incorporation_state: '',
    name: '',
    tax_identifier: '',
    website: ''
  },
  description: '',
  joint: {
    individuals: [
      {
        address: {
          city: '',
          line1: '',
          line2: '',
          state: '',
          zip: ''
        },
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {
            expiration_date: '',
            file_id: '',
            state: ''
          },
          method: '',
          number: '',
          other: {
            country: '',
            description: '',
            expiration_date: '',
            file_id: ''
          },
          passport: {
            country: '',
            expiration_date: '',
            file_id: ''
          }
        },
        name: ''
      }
    ],
    name: ''
  },
  natural_person: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    confirmed_no_us_tax_id: false,
    date_of_birth: '',
    identification: {
      drivers_license: {
        expiration_date: '',
        file_id: '',
        state: ''
      },
      method: '',
      number: '',
      other: {
        country: '',
        description: '',
        expiration_date: '',
        file_id: ''
      },
      passport: {
        country: '',
        expiration_date: '',
        file_id: ''
      }
    },
    name: ''
  },
  relationship: '',
  structure: '',
  supplemental_documents: [
    {
      file_id: ''
    }
  ],
  trust: {
    address: {
      city: '',
      line1: '',
      line2: '',
      state: '',
      zip: ''
    },
    category: '',
    formation_document_file_id: '',
    formation_state: '',
    grantor: {
      address: {
        city: '',
        line1: '',
        line2: '',
        state: '',
        zip: ''
      },
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {
          expiration_date: '',
          file_id: '',
          state: ''
        },
        method: '',
        number: '',
        other: {
          country: '',
          description: '',
          expiration_date: '',
          file_id: ''
        },
        passport: {
          country: '',
          expiration_date: '',
          file_id: ''
        }
      },
      name: ''
    },
    name: '',
    tax_identifier: '',
    trustees: [
      {
        individual: {
          address: {
            city: '',
            line1: '',
            line2: '',
            state: '',
            zip: ''
          },
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {
              expiration_date: '',
              file_id: '',
              state: ''
            },
            method: '',
            number: '',
            other: {
              country: '',
              description: '',
              expiration_date: '',
              file_id: ''
            },
            passport: {
              country: '',
              expiration_date: '',
              file_id: ''
            }
          },
          name: ''
        },
        structure: ''
      }
    ]
  }
});

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}}/entities',
  headers: {'content-type': 'application/json'},
  data: {
    corporation: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      beneficial_owners: [
        {
          company_title: '',
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          prong: ''
        }
      ],
      incorporation_state: '',
      name: '',
      tax_identifier: '',
      website: ''
    },
    description: '',
    joint: {
      individuals: [
        {
          address: {city: '', line1: '', line2: '', state: '', zip: ''},
          confirmed_no_us_tax_id: false,
          date_of_birth: '',
          identification: {
            drivers_license: {expiration_date: '', file_id: '', state: ''},
            method: '',
            number: '',
            other: {country: '', description: '', expiration_date: '', file_id: ''},
            passport: {country: '', expiration_date: '', file_id: ''}
          },
          name: ''
        }
      ],
      name: ''
    },
    natural_person: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      confirmed_no_us_tax_id: false,
      date_of_birth: '',
      identification: {
        drivers_license: {expiration_date: '', file_id: '', state: ''},
        method: '',
        number: '',
        other: {country: '', description: '', expiration_date: '', file_id: ''},
        passport: {country: '', expiration_date: '', file_id: ''}
      },
      name: ''
    },
    relationship: '',
    structure: '',
    supplemental_documents: [{file_id: ''}],
    trust: {
      address: {city: '', line1: '', line2: '', state: '', zip: ''},
      category: '',
      formation_document_file_id: '',
      formation_state: '',
      grantor: {
        address: {city: '', line1: '', line2: '', state: '', zip: ''},
        confirmed_no_us_tax_id: false,
        date_of_birth: '',
        identification: {
          drivers_license: {expiration_date: '', file_id: '', state: ''},
          method: '',
          number: '',
          other: {country: '', description: '', expiration_date: '', file_id: ''},
          passport: {country: '', expiration_date: '', file_id: ''}
        },
        name: ''
      },
      name: '',
      tax_identifier: '',
      trustees: [
        {
          individual: {
            address: {city: '', line1: '', line2: '', state: '', zip: ''},
            confirmed_no_us_tax_id: false,
            date_of_birth: '',
            identification: {
              drivers_license: {expiration_date: '', file_id: '', state: ''},
              method: '',
              number: '',
              other: {country: '', description: '', expiration_date: '', file_id: ''},
              passport: {country: '', expiration_date: '', file_id: ''}
            },
            name: ''
          },
          structure: ''
        }
      ]
    }
  }
};

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

const url = '{{baseUrl}}/entities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"corporation":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"beneficial_owners":[{"company_title":"","individual":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"prong":""}],"incorporation_state":"","name":"","tax_identifier":"","website":""},"description":"","joint":{"individuals":[{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""}],"name":""},"natural_person":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"relationship":"","structure":"","supplemental_documents":[{"file_id":""}],"trust":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"category":"","formation_document_file_id":"","formation_state":"","grantor":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"name":"","tax_identifier":"","trustees":[{"individual":{"address":{"city":"","line1":"","line2":"","state":"","zip":""},"confirmed_no_us_tax_id":false,"date_of_birth":"","identification":{"drivers_license":{"expiration_date":"","file_id":"","state":""},"method":"","number":"","other":{"country":"","description":"","expiration_date":"","file_id":""},"passport":{"country":"","expiration_date":"","file_id":""}},"name":""},"structure":""}]}}'
};

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 = @{ @"corporation": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"beneficial_owners": @[ @{ @"company_title": @"", @"individual": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"confirmed_no_us_tax_id": @NO, @"date_of_birth": @"", @"identification": @{ @"drivers_license": @{ @"expiration_date": @"", @"file_id": @"", @"state": @"" }, @"method": @"", @"number": @"", @"other": @{ @"country": @"", @"description": @"", @"expiration_date": @"", @"file_id": @"" }, @"passport": @{ @"country": @"", @"expiration_date": @"", @"file_id": @"" } }, @"name": @"" }, @"prong": @"" } ], @"incorporation_state": @"", @"name": @"", @"tax_identifier": @"", @"website": @"" },
                              @"description": @"",
                              @"joint": @{ @"individuals": @[ @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"confirmed_no_us_tax_id": @NO, @"date_of_birth": @"", @"identification": @{ @"drivers_license": @{ @"expiration_date": @"", @"file_id": @"", @"state": @"" }, @"method": @"", @"number": @"", @"other": @{ @"country": @"", @"description": @"", @"expiration_date": @"", @"file_id": @"" }, @"passport": @{ @"country": @"", @"expiration_date": @"", @"file_id": @"" } }, @"name": @"" } ], @"name": @"" },
                              @"natural_person": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"confirmed_no_us_tax_id": @NO, @"date_of_birth": @"", @"identification": @{ @"drivers_license": @{ @"expiration_date": @"", @"file_id": @"", @"state": @"" }, @"method": @"", @"number": @"", @"other": @{ @"country": @"", @"description": @"", @"expiration_date": @"", @"file_id": @"" }, @"passport": @{ @"country": @"", @"expiration_date": @"", @"file_id": @"" } }, @"name": @"" },
                              @"relationship": @"",
                              @"structure": @"",
                              @"supplemental_documents": @[ @{ @"file_id": @"" } ],
                              @"trust": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"category": @"", @"formation_document_file_id": @"", @"formation_state": @"", @"grantor": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"confirmed_no_us_tax_id": @NO, @"date_of_birth": @"", @"identification": @{ @"drivers_license": @{ @"expiration_date": @"", @"file_id": @"", @"state": @"" }, @"method": @"", @"number": @"", @"other": @{ @"country": @"", @"description": @"", @"expiration_date": @"", @"file_id": @"" }, @"passport": @{ @"country": @"", @"expiration_date": @"", @"file_id": @"" } }, @"name": @"" }, @"name": @"", @"tax_identifier": @"", @"trustees": @[ @{ @"individual": @{ @"address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"state": @"", @"zip": @"" }, @"confirmed_no_us_tax_id": @NO, @"date_of_birth": @"", @"identification": @{ @"drivers_license": @{ @"expiration_date": @"", @"file_id": @"", @"state": @"" }, @"method": @"", @"number": @"", @"other": @{ @"country": @"", @"description": @"", @"expiration_date": @"", @"file_id": @"" }, @"passport": @{ @"country": @"", @"expiration_date": @"", @"file_id": @"" } }, @"name": @"" }, @"structure": @"" } ] } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/entities"]
                                                       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}}/entities" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entities",
  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([
    'corporation' => [
        'address' => [
                'city' => '',
                'line1' => '',
                'line2' => '',
                'state' => '',
                'zip' => ''
        ],
        'beneficial_owners' => [
                [
                                'company_title' => '',
                                'individual' => [
                                                                'address' => [
                                                                                                                                'city' => '',
                                                                                                                                'line1' => '',
                                                                                                                                'line2' => '',
                                                                                                                                'state' => '',
                                                                                                                                'zip' => ''
                                                                ],
                                                                'confirmed_no_us_tax_id' => null,
                                                                'date_of_birth' => '',
                                                                'identification' => [
                                                                                                                                'drivers_license' => [
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => '',
                                                                                                                                                                                                                                                                'state' => ''
                                                                                                                                ],
                                                                                                                                'method' => '',
                                                                                                                                'number' => '',
                                                                                                                                'other' => [
                                                                                                                                                                                                                                                                'country' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => ''
                                                                                                                                ],
                                                                                                                                'passport' => [
                                                                                                                                                                                                                                                                'country' => '',
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ],
                                'prong' => ''
                ]
        ],
        'incorporation_state' => '',
        'name' => '',
        'tax_identifier' => '',
        'website' => ''
    ],
    'description' => '',
    'joint' => [
        'individuals' => [
                [
                                'address' => [
                                                                'city' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'state' => '',
                                                                'zip' => ''
                                ],
                                'confirmed_no_us_tax_id' => null,
                                'date_of_birth' => '',
                                'identification' => [
                                                                'drivers_license' => [
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => '',
                                                                                                                                'state' => ''
                                                                ],
                                                                'method' => '',
                                                                'number' => '',
                                                                'other' => [
                                                                                                                                'country' => '',
                                                                                                                                'description' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ],
                                                                'passport' => [
                                                                                                                                'country' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ]
                                ],
                                'name' => ''
                ]
        ],
        'name' => ''
    ],
    'natural_person' => [
        'address' => [
                'city' => '',
                'line1' => '',
                'line2' => '',
                'state' => '',
                'zip' => ''
        ],
        'confirmed_no_us_tax_id' => null,
        'date_of_birth' => '',
        'identification' => [
                'drivers_license' => [
                                'expiration_date' => '',
                                'file_id' => '',
                                'state' => ''
                ],
                'method' => '',
                'number' => '',
                'other' => [
                                'country' => '',
                                'description' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ],
                'passport' => [
                                'country' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ]
        ],
        'name' => ''
    ],
    'relationship' => '',
    'structure' => '',
    'supplemental_documents' => [
        [
                'file_id' => ''
        ]
    ],
    'trust' => [
        'address' => [
                'city' => '',
                'line1' => '',
                'line2' => '',
                'state' => '',
                'zip' => ''
        ],
        'category' => '',
        'formation_document_file_id' => '',
        'formation_state' => '',
        'grantor' => [
                'address' => [
                                'city' => '',
                                'line1' => '',
                                'line2' => '',
                                'state' => '',
                                'zip' => ''
                ],
                'confirmed_no_us_tax_id' => null,
                'date_of_birth' => '',
                'identification' => [
                                'drivers_license' => [
                                                                'expiration_date' => '',
                                                                'file_id' => '',
                                                                'state' => ''
                                ],
                                'method' => '',
                                'number' => '',
                                'other' => [
                                                                'country' => '',
                                                                'description' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ],
                                'passport' => [
                                                                'country' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ]
                ],
                'name' => ''
        ],
        'name' => '',
        'tax_identifier' => '',
        'trustees' => [
                [
                                'individual' => [
                                                                'address' => [
                                                                                                                                'city' => '',
                                                                                                                                'line1' => '',
                                                                                                                                'line2' => '',
                                                                                                                                'state' => '',
                                                                                                                                'zip' => ''
                                                                ],
                                                                'confirmed_no_us_tax_id' => null,
                                                                'date_of_birth' => '',
                                                                'identification' => [
                                                                                                                                'drivers_license' => [
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => '',
                                                                                                                                                                                                                                                                'state' => ''
                                                                                                                                ],
                                                                                                                                'method' => '',
                                                                                                                                'number' => '',
                                                                                                                                'other' => [
                                                                                                                                                                                                                                                                'country' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => ''
                                                                                                                                ],
                                                                                                                                'passport' => [
                                                                                                                                                                                                                                                                'country' => '',
                                                                                                                                                                                                                                                                'expiration_date' => '',
                                                                                                                                                                                                                                                                'file_id' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ],
                                'structure' => ''
                ]
        ]
    ]
  ]),
  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}}/entities', [
  'body' => '{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'corporation' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'beneficial_owners' => [
        [
                'company_title' => '',
                'individual' => [
                                'address' => [
                                                                'city' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'state' => '',
                                                                'zip' => ''
                                ],
                                'confirmed_no_us_tax_id' => null,
                                'date_of_birth' => '',
                                'identification' => [
                                                                'drivers_license' => [
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => '',
                                                                                                                                'state' => ''
                                                                ],
                                                                'method' => '',
                                                                'number' => '',
                                                                'other' => [
                                                                                                                                'country' => '',
                                                                                                                                'description' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ],
                                                                'passport' => [
                                                                                                                                'country' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ]
                                ],
                                'name' => ''
                ],
                'prong' => ''
        ]
    ],
    'incorporation_state' => '',
    'name' => '',
    'tax_identifier' => '',
    'website' => ''
  ],
  'description' => '',
  'joint' => [
    'individuals' => [
        [
                'address' => [
                                'city' => '',
                                'line1' => '',
                                'line2' => '',
                                'state' => '',
                                'zip' => ''
                ],
                'confirmed_no_us_tax_id' => null,
                'date_of_birth' => '',
                'identification' => [
                                'drivers_license' => [
                                                                'expiration_date' => '',
                                                                'file_id' => '',
                                                                'state' => ''
                                ],
                                'method' => '',
                                'number' => '',
                                'other' => [
                                                                'country' => '',
                                                                'description' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ],
                                'passport' => [
                                                                'country' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ]
                ],
                'name' => ''
        ]
    ],
    'name' => ''
  ],
  'natural_person' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'confirmed_no_us_tax_id' => null,
    'date_of_birth' => '',
    'identification' => [
        'drivers_license' => [
                'expiration_date' => '',
                'file_id' => '',
                'state' => ''
        ],
        'method' => '',
        'number' => '',
        'other' => [
                'country' => '',
                'description' => '',
                'expiration_date' => '',
                'file_id' => ''
        ],
        'passport' => [
                'country' => '',
                'expiration_date' => '',
                'file_id' => ''
        ]
    ],
    'name' => ''
  ],
  'relationship' => '',
  'structure' => '',
  'supplemental_documents' => [
    [
        'file_id' => ''
    ]
  ],
  'trust' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'category' => '',
    'formation_document_file_id' => '',
    'formation_state' => '',
    'grantor' => [
        'address' => [
                'city' => '',
                'line1' => '',
                'line2' => '',
                'state' => '',
                'zip' => ''
        ],
        'confirmed_no_us_tax_id' => null,
        'date_of_birth' => '',
        'identification' => [
                'drivers_license' => [
                                'expiration_date' => '',
                                'file_id' => '',
                                'state' => ''
                ],
                'method' => '',
                'number' => '',
                'other' => [
                                'country' => '',
                                'description' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ],
                'passport' => [
                                'country' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ]
        ],
        'name' => ''
    ],
    'name' => '',
    'tax_identifier' => '',
    'trustees' => [
        [
                'individual' => [
                                'address' => [
                                                                'city' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'state' => '',
                                                                'zip' => ''
                                ],
                                'confirmed_no_us_tax_id' => null,
                                'date_of_birth' => '',
                                'identification' => [
                                                                'drivers_license' => [
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => '',
                                                                                                                                'state' => ''
                                                                ],
                                                                'method' => '',
                                                                'number' => '',
                                                                'other' => [
                                                                                                                                'country' => '',
                                                                                                                                'description' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ],
                                                                'passport' => [
                                                                                                                                'country' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ]
                                ],
                                'name' => ''
                ],
                'structure' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'corporation' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'beneficial_owners' => [
        [
                'company_title' => '',
                'individual' => [
                                'address' => [
                                                                'city' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'state' => '',
                                                                'zip' => ''
                                ],
                                'confirmed_no_us_tax_id' => null,
                                'date_of_birth' => '',
                                'identification' => [
                                                                'drivers_license' => [
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => '',
                                                                                                                                'state' => ''
                                                                ],
                                                                'method' => '',
                                                                'number' => '',
                                                                'other' => [
                                                                                                                                'country' => '',
                                                                                                                                'description' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ],
                                                                'passport' => [
                                                                                                                                'country' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ]
                                ],
                                'name' => ''
                ],
                'prong' => ''
        ]
    ],
    'incorporation_state' => '',
    'name' => '',
    'tax_identifier' => '',
    'website' => ''
  ],
  'description' => '',
  'joint' => [
    'individuals' => [
        [
                'address' => [
                                'city' => '',
                                'line1' => '',
                                'line2' => '',
                                'state' => '',
                                'zip' => ''
                ],
                'confirmed_no_us_tax_id' => null,
                'date_of_birth' => '',
                'identification' => [
                                'drivers_license' => [
                                                                'expiration_date' => '',
                                                                'file_id' => '',
                                                                'state' => ''
                                ],
                                'method' => '',
                                'number' => '',
                                'other' => [
                                                                'country' => '',
                                                                'description' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ],
                                'passport' => [
                                                                'country' => '',
                                                                'expiration_date' => '',
                                                                'file_id' => ''
                                ]
                ],
                'name' => ''
        ]
    ],
    'name' => ''
  ],
  'natural_person' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'confirmed_no_us_tax_id' => null,
    'date_of_birth' => '',
    'identification' => [
        'drivers_license' => [
                'expiration_date' => '',
                'file_id' => '',
                'state' => ''
        ],
        'method' => '',
        'number' => '',
        'other' => [
                'country' => '',
                'description' => '',
                'expiration_date' => '',
                'file_id' => ''
        ],
        'passport' => [
                'country' => '',
                'expiration_date' => '',
                'file_id' => ''
        ]
    ],
    'name' => ''
  ],
  'relationship' => '',
  'structure' => '',
  'supplemental_documents' => [
    [
        'file_id' => ''
    ]
  ],
  'trust' => [
    'address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'state' => '',
        'zip' => ''
    ],
    'category' => '',
    'formation_document_file_id' => '',
    'formation_state' => '',
    'grantor' => [
        'address' => [
                'city' => '',
                'line1' => '',
                'line2' => '',
                'state' => '',
                'zip' => ''
        ],
        'confirmed_no_us_tax_id' => null,
        'date_of_birth' => '',
        'identification' => [
                'drivers_license' => [
                                'expiration_date' => '',
                                'file_id' => '',
                                'state' => ''
                ],
                'method' => '',
                'number' => '',
                'other' => [
                                'country' => '',
                                'description' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ],
                'passport' => [
                                'country' => '',
                                'expiration_date' => '',
                                'file_id' => ''
                ]
        ],
        'name' => ''
    ],
    'name' => '',
    'tax_identifier' => '',
    'trustees' => [
        [
                'individual' => [
                                'address' => [
                                                                'city' => '',
                                                                'line1' => '',
                                                                'line2' => '',
                                                                'state' => '',
                                                                'zip' => ''
                                ],
                                'confirmed_no_us_tax_id' => null,
                                'date_of_birth' => '',
                                'identification' => [
                                                                'drivers_license' => [
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => '',
                                                                                                                                'state' => ''
                                                                ],
                                                                'method' => '',
                                                                'number' => '',
                                                                'other' => [
                                                                                                                                'country' => '',
                                                                                                                                'description' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ],
                                                                'passport' => [
                                                                                                                                'country' => '',
                                                                                                                                'expiration_date' => '',
                                                                                                                                'file_id' => ''
                                                                ]
                                ],
                                'name' => ''
                ],
                'structure' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/entities');
$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}}/entities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/entities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}'
import http.client

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

payload = "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/entities"

payload = {
    "corporation": {
        "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
        },
        "beneficial_owners": [
            {
                "company_title": "",
                "individual": {
                    "address": {
                        "city": "",
                        "line1": "",
                        "line2": "",
                        "state": "",
                        "zip": ""
                    },
                    "confirmed_no_us_tax_id": False,
                    "date_of_birth": "",
                    "identification": {
                        "drivers_license": {
                            "expiration_date": "",
                            "file_id": "",
                            "state": ""
                        },
                        "method": "",
                        "number": "",
                        "other": {
                            "country": "",
                            "description": "",
                            "expiration_date": "",
                            "file_id": ""
                        },
                        "passport": {
                            "country": "",
                            "expiration_date": "",
                            "file_id": ""
                        }
                    },
                    "name": ""
                },
                "prong": ""
            }
        ],
        "incorporation_state": "",
        "name": "",
        "tax_identifier": "",
        "website": ""
    },
    "description": "",
    "joint": {
        "individuals": [
            {
                "address": {
                    "city": "",
                    "line1": "",
                    "line2": "",
                    "state": "",
                    "zip": ""
                },
                "confirmed_no_us_tax_id": False,
                "date_of_birth": "",
                "identification": {
                    "drivers_license": {
                        "expiration_date": "",
                        "file_id": "",
                        "state": ""
                    },
                    "method": "",
                    "number": "",
                    "other": {
                        "country": "",
                        "description": "",
                        "expiration_date": "",
                        "file_id": ""
                    },
                    "passport": {
                        "country": "",
                        "expiration_date": "",
                        "file_id": ""
                    }
                },
                "name": ""
            }
        ],
        "name": ""
    },
    "natural_person": {
        "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
        },
        "confirmed_no_us_tax_id": False,
        "date_of_birth": "",
        "identification": {
            "drivers_license": {
                "expiration_date": "",
                "file_id": "",
                "state": ""
            },
            "method": "",
            "number": "",
            "other": {
                "country": "",
                "description": "",
                "expiration_date": "",
                "file_id": ""
            },
            "passport": {
                "country": "",
                "expiration_date": "",
                "file_id": ""
            }
        },
        "name": ""
    },
    "relationship": "",
    "structure": "",
    "supplemental_documents": [{ "file_id": "" }],
    "trust": {
        "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
        },
        "category": "",
        "formation_document_file_id": "",
        "formation_state": "",
        "grantor": {
            "address": {
                "city": "",
                "line1": "",
                "line2": "",
                "state": "",
                "zip": ""
            },
            "confirmed_no_us_tax_id": False,
            "date_of_birth": "",
            "identification": {
                "drivers_license": {
                    "expiration_date": "",
                    "file_id": "",
                    "state": ""
                },
                "method": "",
                "number": "",
                "other": {
                    "country": "",
                    "description": "",
                    "expiration_date": "",
                    "file_id": ""
                },
                "passport": {
                    "country": "",
                    "expiration_date": "",
                    "file_id": ""
                }
            },
            "name": ""
        },
        "name": "",
        "tax_identifier": "",
        "trustees": [
            {
                "individual": {
                    "address": {
                        "city": "",
                        "line1": "",
                        "line2": "",
                        "state": "",
                        "zip": ""
                    },
                    "confirmed_no_us_tax_id": False,
                    "date_of_birth": "",
                    "identification": {
                        "drivers_license": {
                            "expiration_date": "",
                            "file_id": "",
                            "state": ""
                        },
                        "method": "",
                        "number": "",
                        "other": {
                            "country": "",
                            "description": "",
                            "expiration_date": "",
                            "file_id": ""
                        },
                        "passport": {
                            "country": "",
                            "expiration_date": "",
                            "file_id": ""
                        }
                    },
                    "name": ""
                },
                "structure": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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}}/entities")

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  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\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/entities') do |req|
  req.body = "{\n  \"corporation\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"beneficial_owners\": [\n      {\n        \"company_title\": \"\",\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"prong\": \"\"\n      }\n    ],\n    \"incorporation_state\": \"\",\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"website\": \"\"\n  },\n  \"description\": \"\",\n  \"joint\": {\n    \"individuals\": [\n      {\n        \"address\": {\n          \"city\": \"\",\n          \"line1\": \"\",\n          \"line2\": \"\",\n          \"state\": \"\",\n          \"zip\": \"\"\n        },\n        \"confirmed_no_us_tax_id\": false,\n        \"date_of_birth\": \"\",\n        \"identification\": {\n          \"drivers_license\": {\n            \"expiration_date\": \"\",\n            \"file_id\": \"\",\n            \"state\": \"\"\n          },\n          \"method\": \"\",\n          \"number\": \"\",\n          \"other\": {\n            \"country\": \"\",\n            \"description\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          },\n          \"passport\": {\n            \"country\": \"\",\n            \"expiration_date\": \"\",\n            \"file_id\": \"\"\n          }\n        },\n        \"name\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"natural_person\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"confirmed_no_us_tax_id\": false,\n    \"date_of_birth\": \"\",\n    \"identification\": {\n      \"drivers_license\": {\n        \"expiration_date\": \"\",\n        \"file_id\": \"\",\n        \"state\": \"\"\n      },\n      \"method\": \"\",\n      \"number\": \"\",\n      \"other\": {\n        \"country\": \"\",\n        \"description\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      },\n      \"passport\": {\n        \"country\": \"\",\n        \"expiration_date\": \"\",\n        \"file_id\": \"\"\n      }\n    },\n    \"name\": \"\"\n  },\n  \"relationship\": \"\",\n  \"structure\": \"\",\n  \"supplemental_documents\": [\n    {\n      \"file_id\": \"\"\n    }\n  ],\n  \"trust\": {\n    \"address\": {\n      \"city\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    },\n    \"category\": \"\",\n    \"formation_document_file_id\": \"\",\n    \"formation_state\": \"\",\n    \"grantor\": {\n      \"address\": {\n        \"city\": \"\",\n        \"line1\": \"\",\n        \"line2\": \"\",\n        \"state\": \"\",\n        \"zip\": \"\"\n      },\n      \"confirmed_no_us_tax_id\": false,\n      \"date_of_birth\": \"\",\n      \"identification\": {\n        \"drivers_license\": {\n          \"expiration_date\": \"\",\n          \"file_id\": \"\",\n          \"state\": \"\"\n        },\n        \"method\": \"\",\n        \"number\": \"\",\n        \"other\": {\n          \"country\": \"\",\n          \"description\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        },\n        \"passport\": {\n          \"country\": \"\",\n          \"expiration_date\": \"\",\n          \"file_id\": \"\"\n        }\n      },\n      \"name\": \"\"\n    },\n    \"name\": \"\",\n    \"tax_identifier\": \"\",\n    \"trustees\": [\n      {\n        \"individual\": {\n          \"address\": {\n            \"city\": \"\",\n            \"line1\": \"\",\n            \"line2\": \"\",\n            \"state\": \"\",\n            \"zip\": \"\"\n          },\n          \"confirmed_no_us_tax_id\": false,\n          \"date_of_birth\": \"\",\n          \"identification\": {\n            \"drivers_license\": {\n              \"expiration_date\": \"\",\n              \"file_id\": \"\",\n              \"state\": \"\"\n            },\n            \"method\": \"\",\n            \"number\": \"\",\n            \"other\": {\n              \"country\": \"\",\n              \"description\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            },\n            \"passport\": {\n              \"country\": \"\",\n              \"expiration_date\": \"\",\n              \"file_id\": \"\"\n            }\n          },\n          \"name\": \"\"\n        },\n        \"structure\": \"\"\n      }\n    ]\n  }\n}"
end

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

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

    let payload = json!({
        "corporation": json!({
            "address": json!({
                "city": "",
                "line1": "",
                "line2": "",
                "state": "",
                "zip": ""
            }),
            "beneficial_owners": (
                json!({
                    "company_title": "",
                    "individual": json!({
                        "address": json!({
                            "city": "",
                            "line1": "",
                            "line2": "",
                            "state": "",
                            "zip": ""
                        }),
                        "confirmed_no_us_tax_id": false,
                        "date_of_birth": "",
                        "identification": json!({
                            "drivers_license": json!({
                                "expiration_date": "",
                                "file_id": "",
                                "state": ""
                            }),
                            "method": "",
                            "number": "",
                            "other": json!({
                                "country": "",
                                "description": "",
                                "expiration_date": "",
                                "file_id": ""
                            }),
                            "passport": json!({
                                "country": "",
                                "expiration_date": "",
                                "file_id": ""
                            })
                        }),
                        "name": ""
                    }),
                    "prong": ""
                })
            ),
            "incorporation_state": "",
            "name": "",
            "tax_identifier": "",
            "website": ""
        }),
        "description": "",
        "joint": json!({
            "individuals": (
                json!({
                    "address": json!({
                        "city": "",
                        "line1": "",
                        "line2": "",
                        "state": "",
                        "zip": ""
                    }),
                    "confirmed_no_us_tax_id": false,
                    "date_of_birth": "",
                    "identification": json!({
                        "drivers_license": json!({
                            "expiration_date": "",
                            "file_id": "",
                            "state": ""
                        }),
                        "method": "",
                        "number": "",
                        "other": json!({
                            "country": "",
                            "description": "",
                            "expiration_date": "",
                            "file_id": ""
                        }),
                        "passport": json!({
                            "country": "",
                            "expiration_date": "",
                            "file_id": ""
                        })
                    }),
                    "name": ""
                })
            ),
            "name": ""
        }),
        "natural_person": json!({
            "address": json!({
                "city": "",
                "line1": "",
                "line2": "",
                "state": "",
                "zip": ""
            }),
            "confirmed_no_us_tax_id": false,
            "date_of_birth": "",
            "identification": json!({
                "drivers_license": json!({
                    "expiration_date": "",
                    "file_id": "",
                    "state": ""
                }),
                "method": "",
                "number": "",
                "other": json!({
                    "country": "",
                    "description": "",
                    "expiration_date": "",
                    "file_id": ""
                }),
                "passport": json!({
                    "country": "",
                    "expiration_date": "",
                    "file_id": ""
                })
            }),
            "name": ""
        }),
        "relationship": "",
        "structure": "",
        "supplemental_documents": (json!({"file_id": ""})),
        "trust": json!({
            "address": json!({
                "city": "",
                "line1": "",
                "line2": "",
                "state": "",
                "zip": ""
            }),
            "category": "",
            "formation_document_file_id": "",
            "formation_state": "",
            "grantor": json!({
                "address": json!({
                    "city": "",
                    "line1": "",
                    "line2": "",
                    "state": "",
                    "zip": ""
                }),
                "confirmed_no_us_tax_id": false,
                "date_of_birth": "",
                "identification": json!({
                    "drivers_license": json!({
                        "expiration_date": "",
                        "file_id": "",
                        "state": ""
                    }),
                    "method": "",
                    "number": "",
                    "other": json!({
                        "country": "",
                        "description": "",
                        "expiration_date": "",
                        "file_id": ""
                    }),
                    "passport": json!({
                        "country": "",
                        "expiration_date": "",
                        "file_id": ""
                    })
                }),
                "name": ""
            }),
            "name": "",
            "tax_identifier": "",
            "trustees": (
                json!({
                    "individual": json!({
                        "address": json!({
                            "city": "",
                            "line1": "",
                            "line2": "",
                            "state": "",
                            "zip": ""
                        }),
                        "confirmed_no_us_tax_id": false,
                        "date_of_birth": "",
                        "identification": json!({
                            "drivers_license": json!({
                                "expiration_date": "",
                                "file_id": "",
                                "state": ""
                            }),
                            "method": "",
                            "number": "",
                            "other": json!({
                                "country": "",
                                "description": "",
                                "expiration_date": "",
                                "file_id": ""
                            }),
                            "passport": json!({
                                "country": "",
                                "expiration_date": "",
                                "file_id": ""
                            })
                        }),
                        "name": ""
                    }),
                    "structure": ""
                })
            )
        })
    });

    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}}/entities \
  --header 'content-type: application/json' \
  --data '{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}'
echo '{
  "corporation": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "beneficial_owners": [
      {
        "company_title": "",
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "prong": ""
      }
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  },
  "description": "",
  "joint": {
    "individuals": [
      {
        "address": {
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        },
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": {
          "drivers_license": {
            "expiration_date": "",
            "file_id": "",
            "state": ""
          },
          "method": "",
          "number": "",
          "other": {
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          },
          "passport": {
            "country": "",
            "expiration_date": "",
            "file_id": ""
          }
        },
        "name": ""
      }
    ],
    "name": ""
  },
  "natural_person": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": {
      "drivers_license": {
        "expiration_date": "",
        "file_id": "",
        "state": ""
      },
      "method": "",
      "number": "",
      "other": {
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      },
      "passport": {
        "country": "",
        "expiration_date": "",
        "file_id": ""
      }
    },
    "name": ""
  },
  "relationship": "",
  "structure": "",
  "supplemental_documents": [
    {
      "file_id": ""
    }
  ],
  "trust": {
    "address": {
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    },
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": {
      "address": {
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      },
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": {
        "drivers_license": {
          "expiration_date": "",
          "file_id": "",
          "state": ""
        },
        "method": "",
        "number": "",
        "other": {
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        },
        "passport": {
          "country": "",
          "expiration_date": "",
          "file_id": ""
        }
      },
      "name": ""
    },
    "name": "",
    "tax_identifier": "",
    "trustees": [
      {
        "individual": {
          "address": {
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          },
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": {
            "drivers_license": {
              "expiration_date": "",
              "file_id": "",
              "state": ""
            },
            "method": "",
            "number": "",
            "other": {
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            },
            "passport": {
              "country": "",
              "expiration_date": "",
              "file_id": ""
            }
          },
          "name": ""
        },
        "structure": ""
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/entities \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "corporation": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "beneficial_owners": [\n      {\n        "company_title": "",\n        "individual": {\n          "address": {\n            "city": "",\n            "line1": "",\n            "line2": "",\n            "state": "",\n            "zip": ""\n          },\n          "confirmed_no_us_tax_id": false,\n          "date_of_birth": "",\n          "identification": {\n            "drivers_license": {\n              "expiration_date": "",\n              "file_id": "",\n              "state": ""\n            },\n            "method": "",\n            "number": "",\n            "other": {\n              "country": "",\n              "description": "",\n              "expiration_date": "",\n              "file_id": ""\n            },\n            "passport": {\n              "country": "",\n              "expiration_date": "",\n              "file_id": ""\n            }\n          },\n          "name": ""\n        },\n        "prong": ""\n      }\n    ],\n    "incorporation_state": "",\n    "name": "",\n    "tax_identifier": "",\n    "website": ""\n  },\n  "description": "",\n  "joint": {\n    "individuals": [\n      {\n        "address": {\n          "city": "",\n          "line1": "",\n          "line2": "",\n          "state": "",\n          "zip": ""\n        },\n        "confirmed_no_us_tax_id": false,\n        "date_of_birth": "",\n        "identification": {\n          "drivers_license": {\n            "expiration_date": "",\n            "file_id": "",\n            "state": ""\n          },\n          "method": "",\n          "number": "",\n          "other": {\n            "country": "",\n            "description": "",\n            "expiration_date": "",\n            "file_id": ""\n          },\n          "passport": {\n            "country": "",\n            "expiration_date": "",\n            "file_id": ""\n          }\n        },\n        "name": ""\n      }\n    ],\n    "name": ""\n  },\n  "natural_person": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "confirmed_no_us_tax_id": false,\n    "date_of_birth": "",\n    "identification": {\n      "drivers_license": {\n        "expiration_date": "",\n        "file_id": "",\n        "state": ""\n      },\n      "method": "",\n      "number": "",\n      "other": {\n        "country": "",\n        "description": "",\n        "expiration_date": "",\n        "file_id": ""\n      },\n      "passport": {\n        "country": "",\n        "expiration_date": "",\n        "file_id": ""\n      }\n    },\n    "name": ""\n  },\n  "relationship": "",\n  "structure": "",\n  "supplemental_documents": [\n    {\n      "file_id": ""\n    }\n  ],\n  "trust": {\n    "address": {\n      "city": "",\n      "line1": "",\n      "line2": "",\n      "state": "",\n      "zip": ""\n    },\n    "category": "",\n    "formation_document_file_id": "",\n    "formation_state": "",\n    "grantor": {\n      "address": {\n        "city": "",\n        "line1": "",\n        "line2": "",\n        "state": "",\n        "zip": ""\n      },\n      "confirmed_no_us_tax_id": false,\n      "date_of_birth": "",\n      "identification": {\n        "drivers_license": {\n          "expiration_date": "",\n          "file_id": "",\n          "state": ""\n        },\n        "method": "",\n        "number": "",\n        "other": {\n          "country": "",\n          "description": "",\n          "expiration_date": "",\n          "file_id": ""\n        },\n        "passport": {\n          "country": "",\n          "expiration_date": "",\n          "file_id": ""\n        }\n      },\n      "name": ""\n    },\n    "name": "",\n    "tax_identifier": "",\n    "trustees": [\n      {\n        "individual": {\n          "address": {\n            "city": "",\n            "line1": "",\n            "line2": "",\n            "state": "",\n            "zip": ""\n          },\n          "confirmed_no_us_tax_id": false,\n          "date_of_birth": "",\n          "identification": {\n            "drivers_license": {\n              "expiration_date": "",\n              "file_id": "",\n              "state": ""\n            },\n            "method": "",\n            "number": "",\n            "other": {\n              "country": "",\n              "description": "",\n              "expiration_date": "",\n              "file_id": ""\n            },\n            "passport": {\n              "country": "",\n              "expiration_date": "",\n              "file_id": ""\n            }\n          },\n          "name": ""\n        },\n        "structure": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/entities
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "corporation": [
    "address": [
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    ],
    "beneficial_owners": [
      [
        "company_title": "",
        "individual": [
          "address": [
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          ],
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": [
            "drivers_license": [
              "expiration_date": "",
              "file_id": "",
              "state": ""
            ],
            "method": "",
            "number": "",
            "other": [
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            ],
            "passport": [
              "country": "",
              "expiration_date": "",
              "file_id": ""
            ]
          ],
          "name": ""
        ],
        "prong": ""
      ]
    ],
    "incorporation_state": "",
    "name": "",
    "tax_identifier": "",
    "website": ""
  ],
  "description": "",
  "joint": [
    "individuals": [
      [
        "address": [
          "city": "",
          "line1": "",
          "line2": "",
          "state": "",
          "zip": ""
        ],
        "confirmed_no_us_tax_id": false,
        "date_of_birth": "",
        "identification": [
          "drivers_license": [
            "expiration_date": "",
            "file_id": "",
            "state": ""
          ],
          "method": "",
          "number": "",
          "other": [
            "country": "",
            "description": "",
            "expiration_date": "",
            "file_id": ""
          ],
          "passport": [
            "country": "",
            "expiration_date": "",
            "file_id": ""
          ]
        ],
        "name": ""
      ]
    ],
    "name": ""
  ],
  "natural_person": [
    "address": [
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    ],
    "confirmed_no_us_tax_id": false,
    "date_of_birth": "",
    "identification": [
      "drivers_license": [
        "expiration_date": "",
        "file_id": "",
        "state": ""
      ],
      "method": "",
      "number": "",
      "other": [
        "country": "",
        "description": "",
        "expiration_date": "",
        "file_id": ""
      ],
      "passport": [
        "country": "",
        "expiration_date": "",
        "file_id": ""
      ]
    ],
    "name": ""
  ],
  "relationship": "",
  "structure": "",
  "supplemental_documents": [["file_id": ""]],
  "trust": [
    "address": [
      "city": "",
      "line1": "",
      "line2": "",
      "state": "",
      "zip": ""
    ],
    "category": "",
    "formation_document_file_id": "",
    "formation_state": "",
    "grantor": [
      "address": [
        "city": "",
        "line1": "",
        "line2": "",
        "state": "",
        "zip": ""
      ],
      "confirmed_no_us_tax_id": false,
      "date_of_birth": "",
      "identification": [
        "drivers_license": [
          "expiration_date": "",
          "file_id": "",
          "state": ""
        ],
        "method": "",
        "number": "",
        "other": [
          "country": "",
          "description": "",
          "expiration_date": "",
          "file_id": ""
        ],
        "passport": [
          "country": "",
          "expiration_date": "",
          "file_id": ""
        ]
      ],
      "name": ""
    ],
    "name": "",
    "tax_identifier": "",
    "trustees": [
      [
        "individual": [
          "address": [
            "city": "",
            "line1": "",
            "line2": "",
            "state": "",
            "zip": ""
          ],
          "confirmed_no_us_tax_id": false,
          "date_of_birth": "",
          "identification": [
            "drivers_license": [
              "expiration_date": "",
              "file_id": "",
              "state": ""
            ],
            "method": "",
            "number": "",
            "other": [
              "country": "",
              "description": "",
              "expiration_date": "",
              "file_id": ""
            ],
            "passport": [
              "country": "",
              "expiration_date": "",
              "file_id": ""
            ]
          ],
          "name": ""
        ],
        "structure": ""
      ]
    ]
  ]
] as [String : Any]

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

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

{
  "corporation": {
    "address": {
      "city": "New York",
      "line1": "33 Liberty Street",
      "line2": null,
      "state": "NY",
      "zip": "10045"
    },
    "beneficial_owners": [
      {
        "company_title": "CEO",
        "individual": {
          "address": {
            "city": "New York",
            "line1": "33 Liberty Street",
            "line2": null,
            "state": "NY",
            "zip": "10045"
          },
          "date_of_birth": "1970-01-31",
          "identification": {
            "country": "US",
            "method": "social_security_number",
            "number_last4": "1120"
          },
          "name": "Ian Crease"
        },
        "prong": "control"
      }
    ],
    "incorporation_state": "NY",
    "name": "National Phonograph Company",
    "tax_identifier": "602214076",
    "website": "https://example.com"
  },
  "description": null,
  "id": "entity_n8y8tnk2p9339ti393yi",
  "joint": null,
  "natural_person": null,
  "relationship": "informational",
  "structure": "corporation",
  "supplemental_documents": [
    {
      "file_id": "file_makxrc67oh9l6sg7w9yc"
    }
  ],
  "trust": null,
  "type": "entity"
}
POST Create an Event Subscription
{{baseUrl}}/event_subscriptions
BODY json

{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}");

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

(client/post "{{baseUrl}}/event_subscriptions" {:content-type :json
                                                                :form-params {:selected_event_category ""
                                                                              :shared_secret ""
                                                                              :url ""}})
require "http/client"

url = "{{baseUrl}}/event_subscriptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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}}/event_subscriptions"),
    Content = new StringContent("{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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}}/event_subscriptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/event_subscriptions"

	payload := strings.NewReader("{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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/event_subscriptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 71

{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/event_subscriptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/event_subscriptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/event_subscriptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/event_subscriptions")
  .header("content-type", "application/json")
  .body("{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  selected_event_category: '',
  shared_secret: '',
  url: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/event_subscriptions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/event_subscriptions',
  headers: {'content-type': 'application/json'},
  data: {selected_event_category: '', shared_secret: '', url: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/event_subscriptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"selected_event_category":"","shared_secret":"","url":""}'
};

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}}/event_subscriptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "selected_event_category": "",\n  "shared_secret": "",\n  "url": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/event_subscriptions")
  .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/event_subscriptions',
  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({selected_event_category: '', shared_secret: '', url: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/event_subscriptions',
  headers: {'content-type': 'application/json'},
  body: {selected_event_category: '', shared_secret: '', url: ''},
  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}}/event_subscriptions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  selected_event_category: '',
  shared_secret: '',
  url: ''
});

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}}/event_subscriptions',
  headers: {'content-type': 'application/json'},
  data: {selected_event_category: '', shared_secret: '', url: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/event_subscriptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"selected_event_category":"","shared_secret":"","url":""}'
};

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 = @{ @"selected_event_category": @"",
                              @"shared_secret": @"",
                              @"url": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/event_subscriptions"]
                                                       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}}/event_subscriptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/event_subscriptions",
  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([
    'selected_event_category' => '',
    'shared_secret' => '',
    'url' => ''
  ]),
  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}}/event_subscriptions', [
  'body' => '{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/event_subscriptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'selected_event_category' => '',
  'shared_secret' => '',
  'url' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'selected_event_category' => '',
  'shared_secret' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/event_subscriptions');
$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}}/event_subscriptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/event_subscriptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/event_subscriptions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/event_subscriptions"

payload = {
    "selected_event_category": "",
    "shared_secret": "",
    "url": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/event_subscriptions"

payload <- "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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}}/event_subscriptions")

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  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\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/event_subscriptions') do |req|
  req.body = "{\n  \"selected_event_category\": \"\",\n  \"shared_secret\": \"\",\n  \"url\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/event_subscriptions";

    let payload = json!({
        "selected_event_category": "",
        "shared_secret": "",
        "url": ""
    });

    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}}/event_subscriptions \
  --header 'content-type: application/json' \
  --data '{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}'
echo '{
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
}' |  \
  http POST {{baseUrl}}/event_subscriptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "selected_event_category": "",\n  "shared_secret": "",\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/event_subscriptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "selected_event_category": "",
  "shared_secret": "",
  "url": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/event_subscriptions")! 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

{
  "created_at": "2020-01-31T23:59:59Z",
  "id": "event_subscription_001dzz0r20rcdxgb013zqb8m04g",
  "selected_event_category": null,
  "shared_secret": "b88l20",
  "status": "active",
  "type": "event_subscription",
  "url": "https://website.com/webhooks"
}
POST Create an External Account
{{baseUrl}}/external_accounts
BODY json

{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/external_accounts");

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  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/external_accounts" {:content-type :json
                                                              :form-params {:account_number ""
                                                                            :description ""
                                                                            :funding ""
                                                                            :routing_number ""}})
require "http/client"

url = "{{baseUrl}}/external_accounts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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}}/external_accounts"),
    Content = new StringContent("{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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}}/external_accounts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/external_accounts"

	payload := strings.NewReader("{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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/external_accounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 88

{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/external_accounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/external_accounts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/external_accounts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/external_accounts")
  .header("content-type", "application/json")
  .body("{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number: '',
  description: '',
  funding: '',
  routing_number: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/external_accounts');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/external_accounts',
  headers: {'content-type': 'application/json'},
  data: {account_number: '', description: '', funding: '', routing_number: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/external_accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number":"","description":"","funding":"","routing_number":""}'
};

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}}/external_accounts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number": "",\n  "description": "",\n  "funding": "",\n  "routing_number": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/external_accounts")
  .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/external_accounts',
  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({account_number: '', description: '', funding: '', routing_number: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/external_accounts',
  headers: {'content-type': 'application/json'},
  body: {account_number: '', description: '', funding: '', routing_number: ''},
  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}}/external_accounts');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_number: '',
  description: '',
  funding: '',
  routing_number: ''
});

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}}/external_accounts',
  headers: {'content-type': 'application/json'},
  data: {account_number: '', description: '', funding: '', routing_number: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/external_accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number":"","description":"","funding":"","routing_number":""}'
};

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 = @{ @"account_number": @"",
                              @"description": @"",
                              @"funding": @"",
                              @"routing_number": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/external_accounts"]
                                                       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}}/external_accounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/external_accounts",
  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([
    'account_number' => '',
    'description' => '',
    'funding' => '',
    'routing_number' => ''
  ]),
  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}}/external_accounts', [
  'body' => '{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/external_accounts');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number' => '',
  'description' => '',
  'funding' => '',
  'routing_number' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number' => '',
  'description' => '',
  'funding' => '',
  'routing_number' => ''
]));
$request->setRequestUrl('{{baseUrl}}/external_accounts');
$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}}/external_accounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/external_accounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/external_accounts", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/external_accounts"

payload = {
    "account_number": "",
    "description": "",
    "funding": "",
    "routing_number": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/external_accounts"

payload <- "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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}}/external_accounts")

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  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\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/external_accounts') do |req|
  req.body = "{\n  \"account_number\": \"\",\n  \"description\": \"\",\n  \"funding\": \"\",\n  \"routing_number\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/external_accounts";

    let payload = json!({
        "account_number": "",
        "description": "",
        "funding": "",
        "routing_number": ""
    });

    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}}/external_accounts \
  --header 'content-type: application/json' \
  --data '{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}'
echo '{
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
}' |  \
  http POST {{baseUrl}}/external_accounts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number": "",\n  "description": "",\n  "funding": "",\n  "routing_number": ""\n}' \
  --output-document \
  - {{baseUrl}}/external_accounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number": "",
  "description": "",
  "funding": "",
  "routing_number": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/external_accounts")! 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

{
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Landlord",
  "funding": "checking",
  "id": "external_account_ukk55lr923a3ac0pp7iv",
  "routing_number": "101050001",
  "status": "active",
  "type": "external_account",
  "verification_status": "verified"
}
POST Deposit a Sandbox Check Transfer
{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")
require "http/client"

url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit"

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}}/simulations/check_transfers/:check_transfer_id/deposit"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit"

	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/simulations/check_transfers/:check_transfer_id/deposit HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit"))
    .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}}/simulations/check_transfers/:check_transfer_id/deposit")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")
  .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}}/simulations/check_transfers/:check_transfer_id/deposit');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit';
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}}/simulations/check_transfers/:check_transfer_id/deposit',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/check_transfers/:check_transfer_id/deposit',
  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}}/simulations/check_transfers/:check_transfer_id/deposit'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit');

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}}/simulations/check_transfers/:check_transfer_id/deposit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit';
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}}/simulations/check_transfers/:check_transfer_id/deposit"]
                                                       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}}/simulations/check_transfers/:check_transfer_id/deposit" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit",
  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}}/simulations/check_transfers/:check_transfer_id/deposit');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/check_transfers/:check_transfer_id/deposit")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")

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/simulations/check_transfers/:check_transfer_id/deposit') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit";

    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}}/simulations/check_transfers/:check_transfer_id/deposit
http POST {{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/deposit")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
GET List ACH Prenotifications
{{baseUrl}}/ach_prenotifications
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_prenotifications");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/ach_prenotifications")
require "http/client"

url = "{{baseUrl}}/ach_prenotifications"

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}}/ach_prenotifications"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ach_prenotifications");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ach_prenotifications"

	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/ach_prenotifications HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/ach_prenotifications")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_prenotifications"))
    .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}}/ach_prenotifications")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/ach_prenotifications")
  .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}}/ach_prenotifications');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/ach_prenotifications'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_prenotifications';
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}}/ach_prenotifications',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/ach_prenotifications")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ach_prenotifications',
  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}}/ach_prenotifications'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/ach_prenotifications');

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}}/ach_prenotifications'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ach_prenotifications';
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}}/ach_prenotifications"]
                                                       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}}/ach_prenotifications" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_prenotifications",
  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}}/ach_prenotifications');

echo $response->getBody();
setUrl('{{baseUrl}}/ach_prenotifications');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/ach_prenotifications');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ach_prenotifications' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_prenotifications' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/ach_prenotifications")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ach_prenotifications"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ach_prenotifications"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ach_prenotifications")

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/ach_prenotifications') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ach_prenotifications";

    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}}/ach_prenotifications
http GET {{baseUrl}}/ach_prenotifications
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/ach_prenotifications
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ach_prenotifications")! 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": [
    {
      "account_number": "987654321",
      "addendum": null,
      "company_descriptive_date": null,
      "company_discretionary_data": null,
      "company_entry_description": null,
      "company_name": null,
      "created_at": "2020-01-31T23:59:59Z",
      "credit_debit_indicator": null,
      "effective_date": null,
      "id": "ach_prenotification_ubjf9qqsxl3obbcn1u34",
      "prenotification_return": null,
      "routing_number": "101050001",
      "status": "submitted",
      "type": "ach_prenotification"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List ACH Transfers
{{baseUrl}}/ach_transfers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_transfers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/ach_transfers")
require "http/client"

url = "{{baseUrl}}/ach_transfers"

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}}/ach_transfers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ach_transfers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ach_transfers"

	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/ach_transfers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/ach_transfers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_transfers"))
    .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}}/ach_transfers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/ach_transfers")
  .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}}/ach_transfers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/ach_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_transfers';
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}}/ach_transfers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/ach_transfers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ach_transfers',
  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}}/ach_transfers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/ach_transfers');

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}}/ach_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ach_transfers';
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}}/ach_transfers"]
                                                       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}}/ach_transfers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_transfers",
  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}}/ach_transfers');

echo $response->getBody();
setUrl('{{baseUrl}}/ach_transfers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/ach_transfers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ach_transfers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_transfers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/ach_transfers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ach_transfers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ach_transfers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ach_transfers")

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/ach_transfers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ach_transfers";

    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}}/ach_transfers
http GET {{baseUrl}}/ach_transfers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/ach_transfers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ach_transfers")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "account_number": "987654321",
      "addendum": null,
      "amount": 100,
      "approval": {
        "approved_at": "2020-01-31T23:59:59Z"
      },
      "cancellation": null,
      "company_descriptive_date": null,
      "company_discretionary_data": null,
      "company_entry_description": null,
      "company_name": "National Phonograph Company",
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
      "funding": "checking",
      "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
      "individual_id": null,
      "individual_name": "Ian Crease",
      "network": "ach",
      "notification_of_change": null,
      "return": null,
      "routing_number": "101050001",
      "standard_entry_class_code": "corporate_credit_or_debit",
      "statement_descriptor": "Statement descriptor",
      "status": "returned",
      "submission": {
        "submitted_at": "2020-01-31T23:59:59Z",
        "trace_number": "058349238292834"
      },
      "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "ach_transfer"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Account Numbers
{{baseUrl}}/account_numbers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_numbers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_numbers")
require "http/client"

url = "{{baseUrl}}/account_numbers"

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}}/account_numbers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_numbers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_numbers"

	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/account_numbers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_numbers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_numbers"))
    .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}}/account_numbers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_numbers")
  .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}}/account_numbers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/account_numbers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_numbers';
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}}/account_numbers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_numbers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_numbers',
  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}}/account_numbers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/account_numbers');

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}}/account_numbers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_numbers';
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}}/account_numbers"]
                                                       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}}/account_numbers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_numbers",
  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}}/account_numbers');

echo $response->getBody();
setUrl('{{baseUrl}}/account_numbers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_numbers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_numbers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_numbers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_numbers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_numbers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_numbers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_numbers")

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/account_numbers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_numbers";

    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}}/account_numbers
http GET {{baseUrl}}/account_numbers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_numbers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_numbers")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "account_number": "987654321",
      "created_at": "2020-01-31T23:59:59Z",
      "id": "account_number_v18nkfqm6afpsrvy82b2",
      "name": "ACH",
      "replacement": {
        "replaced_account_number_id": null,
        "replaced_by_account_number_id": null
      },
      "routing_number": "101050001",
      "status": "active",
      "type": "account_number"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Account Statements
{{baseUrl}}/account_statements
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_statements");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_statements")
require "http/client"

url = "{{baseUrl}}/account_statements"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/account_statements"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_statements");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_statements"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/account_statements HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_statements")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_statements"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/account_statements")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_statements")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/account_statements');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/account_statements'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_statements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/account_statements',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_statements")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_statements',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/account_statements'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/account_statements');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/account_statements'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_statements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/account_statements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/account_statements" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_statements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/account_statements');

echo $response->getBody();
setUrl('{{baseUrl}}/account_statements');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_statements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_statements' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_statements' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_statements")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_statements"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_statements"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_statements")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/account_statements') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_statements";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/account_statements
http GET {{baseUrl}}/account_statements
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_statements
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_statements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "data": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "created_at": "2020-01-31T23:59:59Z",
      "ending_balance": 100,
      "file_id": "file_makxrc67oh9l6sg7w9yc",
      "id": "account_statement_lkc03a4skm2k7f38vj15",
      "starting_balance": 0,
      "statement_period_end": "2020-01-31T23:59:59Z",
      "statement_period_start": "2020-01-31T23:59:59Z",
      "type": "account_statement"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Account Transfers
{{baseUrl}}/account_transfers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_transfers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_transfers")
require "http/client"

url = "{{baseUrl}}/account_transfers"

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}}/account_transfers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_transfers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_transfers"

	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/account_transfers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_transfers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_transfers"))
    .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}}/account_transfers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_transfers")
  .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}}/account_transfers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/account_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_transfers';
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}}/account_transfers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_transfers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_transfers',
  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}}/account_transfers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/account_transfers');

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}}/account_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_transfers';
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}}/account_transfers"]
                                                       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}}/account_transfers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_transfers",
  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}}/account_transfers');

echo $response->getBody();
setUrl('{{baseUrl}}/account_transfers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_transfers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_transfers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_transfers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_transfers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_transfers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_transfers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_transfers")

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/account_transfers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_transfers";

    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}}/account_transfers
http GET {{baseUrl}}/account_transfers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_transfers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_transfers")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 100,
      "approval": {
        "approved_at": "2020-01-31T23:59:59Z"
      },
      "cancellation": null,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "description": "Move money into savings",
      "destination_account_id": "account_uf16sut2ct5bevmq3eh",
      "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
      "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
      "network": "account",
      "status": "complete",
      "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "account_transfer"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Accounts
{{baseUrl}}/accounts
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts")
require "http/client"

url = "{{baseUrl}}/accounts"

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}}/accounts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts"

	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/accounts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts"))
    .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}}/accounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts")
  .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}}/accounts');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts';
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}}/accounts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts',
  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}}/accounts'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts');

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}}/accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts';
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}}/accounts"]
                                                       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}}/accounts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts",
  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}}/accounts');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts")

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/accounts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts";

    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}}/accounts
http GET {{baseUrl}}/accounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts")! 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": [
    {
      "balances": {
        "available_balance": 100,
        "current_balance": 100
      },
      "bank": "first_internet_bank",
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "entity_id": "entity_n8y8tnk2p9339ti393yi",
      "id": "account_in71c4amph0vgo2qllky",
      "informational_entity_id": null,
      "interest_accrued": "0.01",
      "interest_accrued_at": "2020-01-31",
      "name": "My first account!",
      "replacement": {
        "replaced_account_id": null,
        "replaced_by_account_id": null
      },
      "status": "open",
      "type": "account"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Card Disputes
{{baseUrl}}/card_disputes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/card_disputes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/card_disputes")
require "http/client"

url = "{{baseUrl}}/card_disputes"

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}}/card_disputes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/card_disputes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/card_disputes"

	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/card_disputes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/card_disputes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/card_disputes"))
    .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}}/card_disputes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/card_disputes")
  .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}}/card_disputes');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/card_disputes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_disputes';
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}}/card_disputes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/card_disputes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/card_disputes',
  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}}/card_disputes'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/card_disputes');

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}}/card_disputes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/card_disputes';
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}}/card_disputes"]
                                                       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}}/card_disputes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/card_disputes",
  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}}/card_disputes');

echo $response->getBody();
setUrl('{{baseUrl}}/card_disputes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/card_disputes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/card_disputes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/card_disputes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/card_disputes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/card_disputes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/card_disputes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/card_disputes")

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/card_disputes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/card_disputes";

    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}}/card_disputes
http GET {{baseUrl}}/card_disputes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/card_disputes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/card_disputes")! 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": [
    {
      "acceptance": null,
      "created_at": "2020-01-31T23:59:59Z",
      "disputed_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "explanation": "Unauthorized recurring purchase",
      "id": "card_dispute_h9sc95nbl1cgltpp7men",
      "rejection": null,
      "status": "pending_reviewing",
      "type": "card_dispute"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Card Profiles
{{baseUrl}}/card_profiles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/card_profiles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/card_profiles")
require "http/client"

url = "{{baseUrl}}/card_profiles"

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}}/card_profiles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/card_profiles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/card_profiles"

	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/card_profiles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/card_profiles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/card_profiles"))
    .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}}/card_profiles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/card_profiles")
  .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}}/card_profiles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/card_profiles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_profiles';
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}}/card_profiles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/card_profiles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/card_profiles',
  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}}/card_profiles'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/card_profiles');

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}}/card_profiles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/card_profiles';
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}}/card_profiles"]
                                                       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}}/card_profiles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/card_profiles",
  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}}/card_profiles');

echo $response->getBody();
setUrl('{{baseUrl}}/card_profiles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/card_profiles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/card_profiles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/card_profiles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/card_profiles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/card_profiles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/card_profiles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/card_profiles")

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/card_profiles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/card_profiles";

    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}}/card_profiles
http GET {{baseUrl}}/card_profiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/card_profiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/card_profiles")! 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": [
    {
      "created_at": "2020-01-31T23:59:59Z",
      "description": "My Card Profile",
      "digital_wallets": {
        "app_icon_file_id": "file_8zxqkwlh43wo144u8yec",
        "background_image_file_id": "file_1ai913suu1zfn1pdetru",
        "card_description": "MyBank Signature Card",
        "contact_email": "user@example.com",
        "contact_phone": "+18885551212",
        "contact_website": "https://example.com",
        "issuer_name": "MyBank",
        "text_color": {
          "blue": 59,
          "green": 43,
          "red": 26
        }
      },
      "id": "card_profile_cox5y73lob2eqly18piy",
      "status": "active",
      "type": "card_profile"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Cards
{{baseUrl}}/cards
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/cards");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/cards")
require "http/client"

url = "{{baseUrl}}/cards"

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}}/cards"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/cards");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/cards"

	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/cards HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/cards")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cards"))
    .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}}/cards")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/cards")
  .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}}/cards');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/cards'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cards';
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}}/cards',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/cards")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/cards',
  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}}/cards'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/cards');

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}}/cards'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/cards';
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}}/cards"]
                                                       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}}/cards" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cards",
  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}}/cards');

echo $response->getBody();
setUrl('{{baseUrl}}/cards');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/cards');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/cards' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cards' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/cards")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/cards"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/cards"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/cards")

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/cards') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/cards";

    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}}/cards
http GET {{baseUrl}}/cards
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/cards
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/cards")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "billing_address": {
        "city": "New York",
        "line1": "33 Liberty Street",
        "line2": null,
        "postal_code": "10045",
        "state": "NY"
      },
      "created_at": "2020-01-31T23:59:59Z",
      "description": "Office Expenses",
      "digital_wallet": {
        "card_profile_id": "card_profile_cox5y73lob2eqly18piy",
        "email": "user@example.com",
        "phone": "+15551234567"
      },
      "expiration_month": 11,
      "expiration_year": 2028,
      "id": "card_oubs0hwk5rn6knuecxg2",
      "last4": "4242",
      "replacement": {
        "replaced_by_card_id": null,
        "replaced_card_id": null
      },
      "status": "active",
      "type": "card"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Check Deposits
{{baseUrl}}/check_deposits
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_deposits");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/check_deposits")
require "http/client"

url = "{{baseUrl}}/check_deposits"

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}}/check_deposits"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/check_deposits");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/check_deposits"

	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/check_deposits HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/check_deposits")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_deposits"))
    .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}}/check_deposits")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/check_deposits")
  .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}}/check_deposits');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/check_deposits'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_deposits';
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}}/check_deposits',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/check_deposits")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/check_deposits',
  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}}/check_deposits'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/check_deposits');

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}}/check_deposits'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/check_deposits';
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}}/check_deposits"]
                                                       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}}/check_deposits" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_deposits",
  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}}/check_deposits');

echo $response->getBody();
setUrl('{{baseUrl}}/check_deposits');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/check_deposits');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/check_deposits' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_deposits' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/check_deposits")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/check_deposits"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/check_deposits"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/check_deposits")

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/check_deposits') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/check_deposits";

    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}}/check_deposits
http GET {{baseUrl}}/check_deposits
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/check_deposits
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/check_deposits")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 1000,
      "back_image_file_id": null,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "deposit_acceptance": null,
      "deposit_rejection": null,
      "deposit_return": null,
      "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
      "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
      "status": "submitted",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "check_deposit"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Check Transfers
{{baseUrl}}/check_transfers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_transfers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/check_transfers")
require "http/client"

url = "{{baseUrl}}/check_transfers"

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}}/check_transfers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/check_transfers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/check_transfers"

	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/check_transfers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/check_transfers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers"))
    .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}}/check_transfers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/check_transfers")
  .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}}/check_transfers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/check_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_transfers';
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}}/check_transfers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/check_transfers',
  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}}/check_transfers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/check_transfers');

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}}/check_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/check_transfers';
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}}/check_transfers"]
                                                       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}}/check_transfers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_transfers",
  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}}/check_transfers');

echo $response->getBody();
setUrl('{{baseUrl}}/check_transfers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/check_transfers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/check_transfers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_transfers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/check_transfers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/check_transfers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/check_transfers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/check_transfers")

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/check_transfers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/check_transfers";

    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}}/check_transfers
http GET {{baseUrl}}/check_transfers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/check_transfers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/check_transfers")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "address_city": "New York",
      "address_line1": "33 Liberty Street",
      "address_line2": null,
      "address_state": "NY",
      "address_zip": "10045",
      "amount": 1000,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "deposit": null,
      "id": "check_transfer_30b43acfu9vw8fyc4f5",
      "mailed_at": "2020-01-31T23:59:59Z",
      "message": "Invoice 29582",
      "note": null,
      "recipient_name": "Ian Crease",
      "return_address": null,
      "status": "mailed",
      "stop_payment_request": null,
      "submission": {
        "check_number": "130670"
      },
      "submitted_at": "2020-01-31T23:59:59Z",
      "template_id": "check_transfer_template_tr96ajellz6awlki022o",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "check_transfer"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Declined Transactions
{{baseUrl}}/declined_transactions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/declined_transactions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/declined_transactions")
require "http/client"

url = "{{baseUrl}}/declined_transactions"

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}}/declined_transactions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/declined_transactions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/declined_transactions"

	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/declined_transactions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/declined_transactions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/declined_transactions"))
    .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}}/declined_transactions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/declined_transactions")
  .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}}/declined_transactions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/declined_transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/declined_transactions';
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}}/declined_transactions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/declined_transactions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/declined_transactions',
  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}}/declined_transactions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/declined_transactions');

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}}/declined_transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/declined_transactions';
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}}/declined_transactions"]
                                                       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}}/declined_transactions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/declined_transactions",
  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}}/declined_transactions');

echo $response->getBody();
setUrl('{{baseUrl}}/declined_transactions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/declined_transactions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/declined_transactions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/declined_transactions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/declined_transactions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/declined_transactions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/declined_transactions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/declined_transactions")

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/declined_transactions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/declined_transactions";

    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}}/declined_transactions
http GET {{baseUrl}}/declined_transactions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/declined_transactions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/declined_transactions")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 1750,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "description": "Frederick S. Holmes",
      "id": "declined_transaction_17jbn0yyhvkt4v4ooym8",
      "route_id": "account_number_v18nkfqm6afpsrvy82b2",
      "route_type": "account_number",
      "source": {
        "ach_decline": {
          "amount": 1750,
          "originator_company_descriptive_date": null,
          "originator_company_discretionary_data": null,
          "originator_company_id": "0987654321",
          "originator_company_name": "BIG BANK",
          "reason": "insufficient_funds",
          "receiver_id_number": "12345678900",
          "receiver_name": "IAN CREASE",
          "trace_number": "021000038461022"
        },
        "category": "ach_decline"
      },
      "type": "declined_transaction"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Digital Wallet Tokens
{{baseUrl}}/digital_wallet_tokens
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/digital_wallet_tokens");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/digital_wallet_tokens")
require "http/client"

url = "{{baseUrl}}/digital_wallet_tokens"

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}}/digital_wallet_tokens"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/digital_wallet_tokens");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/digital_wallet_tokens"

	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/digital_wallet_tokens HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/digital_wallet_tokens")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/digital_wallet_tokens"))
    .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}}/digital_wallet_tokens")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/digital_wallet_tokens")
  .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}}/digital_wallet_tokens');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/digital_wallet_tokens'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/digital_wallet_tokens';
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}}/digital_wallet_tokens',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/digital_wallet_tokens")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/digital_wallet_tokens',
  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}}/digital_wallet_tokens'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/digital_wallet_tokens');

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}}/digital_wallet_tokens'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/digital_wallet_tokens';
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}}/digital_wallet_tokens"]
                                                       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}}/digital_wallet_tokens" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/digital_wallet_tokens",
  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}}/digital_wallet_tokens');

echo $response->getBody();
setUrl('{{baseUrl}}/digital_wallet_tokens');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/digital_wallet_tokens');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/digital_wallet_tokens' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/digital_wallet_tokens' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/digital_wallet_tokens")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/digital_wallet_tokens"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/digital_wallet_tokens"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/digital_wallet_tokens")

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/digital_wallet_tokens') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/digital_wallet_tokens";

    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}}/digital_wallet_tokens
http GET {{baseUrl}}/digital_wallet_tokens
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/digital_wallet_tokens
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/digital_wallet_tokens")! 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": [
    {
      "card_id": "card_oubs0hwk5rn6knuecxg2",
      "created_at": "2020-01-31T23:59:59Z",
      "id": "digital_wallet_token_izi62go3h51p369jrie0",
      "status": "active",
      "token_requestor": "apple_pay",
      "type": "digital_wallet_token"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Documents
{{baseUrl}}/documents
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/documents");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/documents")
require "http/client"

url = "{{baseUrl}}/documents"

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"),
};
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.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/documents"

	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 HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/documents")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/documents"))
    .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")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/documents")
  .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');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/documents'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/documents';
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',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/documents")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/documents',
  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'};

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');

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'};

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: '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"]
                                                       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" in

Client.call `GET 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 => "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');

echo $response->getBody();
setUrl('{{baseUrl}}/documents');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/documents');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/documents' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/documents' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/documents")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/documents"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/documents"

response <- VERB("GET", url, content_type("application/octet-stream"))

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::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') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/documents";

    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
http GET {{baseUrl}}/documents
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/documents
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/documents")! 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": [
    {
      "category": "form_1099_int",
      "created_at": "2020-01-31T23:59:59Z",
      "entity_id": "entity_n8y8tnk2p9339ti393yi",
      "file_id": "file_makxrc67oh9l6sg7w9yc",
      "id": "document_qjtqc6s4c14ve2q89izm",
      "type": "document"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Entities
{{baseUrl}}/entities
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/entities");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/entities")
require "http/client"

url = "{{baseUrl}}/entities"

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}}/entities"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/entities");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/entities"

	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/entities HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/entities")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/entities"))
    .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}}/entities")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/entities")
  .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}}/entities');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/entities'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entities';
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}}/entities',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/entities")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/entities',
  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}}/entities'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/entities');

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}}/entities'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/entities';
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}}/entities"]
                                                       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}}/entities" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entities",
  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}}/entities');

echo $response->getBody();
setUrl('{{baseUrl}}/entities');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/entities');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/entities' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/entities' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/entities")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/entities"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/entities"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/entities")

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/entities') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/entities";

    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}}/entities
http GET {{baseUrl}}/entities
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/entities
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/entities")! 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": [
    {
      "corporation": {
        "address": {
          "city": "New York",
          "line1": "33 Liberty Street",
          "line2": null,
          "state": "NY",
          "zip": "10045"
        },
        "beneficial_owners": [
          {
            "company_title": "CEO",
            "individual": {
              "address": {
                "city": "New York",
                "line1": "33 Liberty Street",
                "line2": null,
                "state": "NY",
                "zip": "10045"
              },
              "date_of_birth": "1970-01-31",
              "identification": {
                "country": "US",
                "method": "social_security_number",
                "number_last4": "1120"
              },
              "name": "Ian Crease"
            },
            "prong": "control"
          }
        ],
        "incorporation_state": "NY",
        "name": "National Phonograph Company",
        "tax_identifier": "602214076",
        "website": "https://example.com"
      },
      "description": null,
      "id": "entity_n8y8tnk2p9339ti393yi",
      "joint": null,
      "natural_person": null,
      "relationship": "informational",
      "structure": "corporation",
      "supplemental_documents": [
        {
          "file_id": "file_makxrc67oh9l6sg7w9yc"
        }
      ],
      "trust": null,
      "type": "entity"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Event Subscriptions
{{baseUrl}}/event_subscriptions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/event_subscriptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/event_subscriptions")
require "http/client"

url = "{{baseUrl}}/event_subscriptions"

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}}/event_subscriptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/event_subscriptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/event_subscriptions"

	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/event_subscriptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/event_subscriptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/event_subscriptions"))
    .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}}/event_subscriptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/event_subscriptions")
  .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}}/event_subscriptions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/event_subscriptions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/event_subscriptions';
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}}/event_subscriptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/event_subscriptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/event_subscriptions',
  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}}/event_subscriptions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/event_subscriptions');

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}}/event_subscriptions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/event_subscriptions';
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}}/event_subscriptions"]
                                                       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}}/event_subscriptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/event_subscriptions",
  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}}/event_subscriptions');

echo $response->getBody();
setUrl('{{baseUrl}}/event_subscriptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/event_subscriptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/event_subscriptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/event_subscriptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/event_subscriptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/event_subscriptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/event_subscriptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/event_subscriptions")

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/event_subscriptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/event_subscriptions";

    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}}/event_subscriptions
http GET {{baseUrl}}/event_subscriptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/event_subscriptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/event_subscriptions")! 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": [
    {
      "created_at": "2020-01-31T23:59:59Z",
      "id": "event_subscription_001dzz0r20rcdxgb013zqb8m04g",
      "selected_event_category": null,
      "shared_secret": "b88l20",
      "status": "active",
      "type": "event_subscription",
      "url": "https://website.com/webhooks"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Events
{{baseUrl}}/events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/events")
require "http/client"

url = "{{baseUrl}}/events"

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}}/events"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/events");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/events"

	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/events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/events"))
    .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}}/events")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/events")
  .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}}/events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/events';
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}}/events',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/events")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/events',
  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}}/events'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/events');

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}}/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/events';
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}}/events"]
                                                       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}}/events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/events",
  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}}/events');

echo $response->getBody();
setUrl('{{baseUrl}}/events');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/events');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/events' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/events' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/events"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/events"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/events")

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/events') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/events";

    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}}/events
http GET {{baseUrl}}/events
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/events")! 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": [
    {
      "associated_object_id": "account_in71c4amph0vgo2qllky",
      "associated_object_type": "account",
      "category": "account.created",
      "created_at": "2020-01-31T23:59:59Z",
      "id": "event_001dzz0r20rzr4zrhrr1364hy80",
      "type": "event"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List External Accounts
{{baseUrl}}/external_accounts
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/external_accounts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/external_accounts")
require "http/client"

url = "{{baseUrl}}/external_accounts"

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}}/external_accounts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/external_accounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/external_accounts"

	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/external_accounts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/external_accounts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/external_accounts"))
    .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}}/external_accounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/external_accounts")
  .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}}/external_accounts');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/external_accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/external_accounts';
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}}/external_accounts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/external_accounts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/external_accounts',
  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}}/external_accounts'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/external_accounts');

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}}/external_accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/external_accounts';
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}}/external_accounts"]
                                                       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}}/external_accounts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/external_accounts",
  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}}/external_accounts');

echo $response->getBody();
setUrl('{{baseUrl}}/external_accounts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/external_accounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/external_accounts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/external_accounts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/external_accounts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/external_accounts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/external_accounts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/external_accounts")

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/external_accounts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/external_accounts";

    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}}/external_accounts
http GET {{baseUrl}}/external_accounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/external_accounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/external_accounts")! 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": [
    {
      "account_number": "987654321",
      "created_at": "2020-01-31T23:59:59Z",
      "description": "Landlord",
      "funding": "checking",
      "id": "external_account_ukk55lr923a3ac0pp7iv",
      "routing_number": "101050001",
      "status": "active",
      "type": "external_account",
      "verification_status": "verified"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Files
{{baseUrl}}/files
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/files");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/files")
require "http/client"

url = "{{baseUrl}}/files"

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}}/files"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/files");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/files"

	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/files HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/files")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/files"))
    .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}}/files")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/files")
  .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}}/files');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/files'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/files';
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}}/files',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/files")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/files',
  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}}/files'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/files');

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}}/files'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/files';
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}}/files"]
                                                       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}}/files" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/files",
  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}}/files');

echo $response->getBody();
setUrl('{{baseUrl}}/files');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/files');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/files' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/files' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/files")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/files"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/files"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/files")

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/files') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/files";

    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}}/files
http GET {{baseUrl}}/files
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/files
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/files")! 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": [
    {
      "created_at": "2020-01-31T23:59:59Z",
      "description": "2022-05 statement for checking account",
      "direction": "from_increase",
      "download_url": "https://api.increase.com/files/file_makxrc67oh9l6sg7w9yc/download",
      "filename": "statement.pdf",
      "id": "file_makxrc67oh9l6sg7w9yc",
      "purpose": "increase_statement",
      "type": "file"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Inbound ACH Transfer Returns
{{baseUrl}}/inbound_ach_transfer_returns
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/inbound_ach_transfer_returns");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/inbound_ach_transfer_returns")
require "http/client"

url = "{{baseUrl}}/inbound_ach_transfer_returns"

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}}/inbound_ach_transfer_returns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/inbound_ach_transfer_returns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/inbound_ach_transfer_returns"

	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/inbound_ach_transfer_returns HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/inbound_ach_transfer_returns")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/inbound_ach_transfer_returns"))
    .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}}/inbound_ach_transfer_returns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/inbound_ach_transfer_returns")
  .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}}/inbound_ach_transfer_returns');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/inbound_ach_transfer_returns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/inbound_ach_transfer_returns';
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}}/inbound_ach_transfer_returns',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/inbound_ach_transfer_returns")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/inbound_ach_transfer_returns',
  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}}/inbound_ach_transfer_returns'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/inbound_ach_transfer_returns');

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}}/inbound_ach_transfer_returns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/inbound_ach_transfer_returns';
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}}/inbound_ach_transfer_returns"]
                                                       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}}/inbound_ach_transfer_returns" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/inbound_ach_transfer_returns",
  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}}/inbound_ach_transfer_returns');

echo $response->getBody();
setUrl('{{baseUrl}}/inbound_ach_transfer_returns');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/inbound_ach_transfer_returns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/inbound_ach_transfer_returns' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/inbound_ach_transfer_returns' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/inbound_ach_transfer_returns")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/inbound_ach_transfer_returns"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/inbound_ach_transfer_returns"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/inbound_ach_transfer_returns")

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/inbound_ach_transfer_returns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/inbound_ach_transfer_returns";

    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}}/inbound_ach_transfer_returns
http GET {{baseUrl}}/inbound_ach_transfer_returns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/inbound_ach_transfer_returns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/inbound_ach_transfer_returns")! 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": [
    {
      "class_name": "inbound_ach_transfer_return",
      "id": "inbound_ach_transfer_return_fhcxk5huskwhmt7iz0gk",
      "inbound_ach_transfer_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "reason": "payment_stopped",
      "status": "submitted",
      "submission": {
        "submitted_at": "2020-01-31T23:59:59Z",
        "trace_number": "058349238292834"
      },
      "transaction_id": null,
      "type": "inbound_ach_transfer_return"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Inbound Wire Drawdown Requests
{{baseUrl}}/inbound_wire_drawdown_requests
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/inbound_wire_drawdown_requests");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/inbound_wire_drawdown_requests")
require "http/client"

url = "{{baseUrl}}/inbound_wire_drawdown_requests"

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}}/inbound_wire_drawdown_requests"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/inbound_wire_drawdown_requests");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/inbound_wire_drawdown_requests"

	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/inbound_wire_drawdown_requests HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/inbound_wire_drawdown_requests")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/inbound_wire_drawdown_requests"))
    .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}}/inbound_wire_drawdown_requests")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/inbound_wire_drawdown_requests")
  .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}}/inbound_wire_drawdown_requests');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/inbound_wire_drawdown_requests'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/inbound_wire_drawdown_requests';
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}}/inbound_wire_drawdown_requests',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/inbound_wire_drawdown_requests")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/inbound_wire_drawdown_requests',
  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}}/inbound_wire_drawdown_requests'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/inbound_wire_drawdown_requests');

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}}/inbound_wire_drawdown_requests'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/inbound_wire_drawdown_requests';
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}}/inbound_wire_drawdown_requests"]
                                                       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}}/inbound_wire_drawdown_requests" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/inbound_wire_drawdown_requests",
  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}}/inbound_wire_drawdown_requests');

echo $response->getBody();
setUrl('{{baseUrl}}/inbound_wire_drawdown_requests');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/inbound_wire_drawdown_requests');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/inbound_wire_drawdown_requests' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/inbound_wire_drawdown_requests' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/inbound_wire_drawdown_requests")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/inbound_wire_drawdown_requests"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/inbound_wire_drawdown_requests"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/inbound_wire_drawdown_requests")

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/inbound_wire_drawdown_requests') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/inbound_wire_drawdown_requests";

    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}}/inbound_wire_drawdown_requests
http GET {{baseUrl}}/inbound_wire_drawdown_requests
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/inbound_wire_drawdown_requests
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/inbound_wire_drawdown_requests")! 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": [
    {
      "amount": 10000,
      "beneficiary_account_number": "987654321",
      "beneficiary_address_line1": "33 Liberty Street",
      "beneficiary_address_line2": "New York, NY, 10045",
      "beneficiary_address_line3": null,
      "beneficiary_name": "Ian Crease",
      "beneficiary_routing_number": "101050001",
      "currency": "USD",
      "id": "inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e",
      "message_to_recipient": "Invoice 29582",
      "originator_account_number": "987654321",
      "originator_address_line1": "33 Liberty Street",
      "originator_address_line2": "New York, NY, 10045",
      "originator_address_line3": null,
      "originator_name": "Ian Crease",
      "originator_routing_number": "101050001",
      "originator_to_beneficiary_information_line1": null,
      "originator_to_beneficiary_information_line2": null,
      "originator_to_beneficiary_information_line3": null,
      "originator_to_beneficiary_information_line4": null,
      "recipient_account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
      "type": "inbound_wire_drawdown_request"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Limits
{{baseUrl}}/limits
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/limits");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/limits")
require "http/client"

url = "{{baseUrl}}/limits"

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}}/limits"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/limits");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/limits"

	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/limits HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/limits")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/limits"))
    .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}}/limits")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/limits")
  .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}}/limits');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/limits'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/limits';
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}}/limits',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/limits")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/limits',
  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}}/limits'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/limits');

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}}/limits'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/limits';
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}}/limits"]
                                                       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}}/limits" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/limits",
  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}}/limits');

echo $response->getBody();
setUrl('{{baseUrl}}/limits');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/limits');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/limits' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/limits' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/limits")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/limits"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/limits"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/limits")

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/limits') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/limits";

    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}}/limits
http GET {{baseUrl}}/limits
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/limits
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/limits")! 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": [
    {
      "id": "limit_fku42k0qtc8ulsuas38q",
      "interval": "month",
      "metric": "volume",
      "model_id": "account_number_v18nkfqm6afpsrvy82b2",
      "model_type": "account_number",
      "status": "active",
      "type": "limit",
      "value": 0
    }
  ],
  "next_cursor": "v57w5d"
}
GET List OAuth Connections
{{baseUrl}}/oauth_connections
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/oauth_connections");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/oauth_connections")
require "http/client"

url = "{{baseUrl}}/oauth_connections"

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}}/oauth_connections"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/oauth_connections");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/oauth_connections"

	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/oauth_connections HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/oauth_connections")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oauth_connections"))
    .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}}/oauth_connections")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/oauth_connections")
  .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}}/oauth_connections');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/oauth_connections'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oauth_connections';
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}}/oauth_connections',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/oauth_connections")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/oauth_connections',
  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}}/oauth_connections'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/oauth_connections');

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}}/oauth_connections'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/oauth_connections';
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}}/oauth_connections"]
                                                       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}}/oauth_connections" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oauth_connections",
  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}}/oauth_connections');

echo $response->getBody();
setUrl('{{baseUrl}}/oauth_connections');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/oauth_connections');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oauth_connections' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oauth_connections' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/oauth_connections")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/oauth_connections"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/oauth_connections"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/oauth_connections")

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/oauth_connections') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/oauth_connections";

    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}}/oauth_connections
http GET {{baseUrl}}/oauth_connections
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/oauth_connections
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/oauth_connections")! 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": [
    {
      "created_at": "2020-01-31T23:59:59Z",
      "group_id": "group_1g4mhziu6kvrs3vz35um",
      "id": "connection_dauknoksyr4wilz4e6my",
      "status": "active",
      "type": "oauth_connection"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Pending Transactions
{{baseUrl}}/pending_transactions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pending_transactions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pending_transactions")
require "http/client"

url = "{{baseUrl}}/pending_transactions"

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}}/pending_transactions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pending_transactions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pending_transactions"

	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/pending_transactions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pending_transactions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pending_transactions"))
    .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}}/pending_transactions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pending_transactions")
  .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}}/pending_transactions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/pending_transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pending_transactions';
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}}/pending_transactions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pending_transactions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pending_transactions',
  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}}/pending_transactions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pending_transactions');

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}}/pending_transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pending_transactions';
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}}/pending_transactions"]
                                                       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}}/pending_transactions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pending_transactions",
  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}}/pending_transactions');

echo $response->getBody();
setUrl('{{baseUrl}}/pending_transactions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pending_transactions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pending_transactions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pending_transactions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pending_transactions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pending_transactions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pending_transactions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pending_transactions")

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/pending_transactions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pending_transactions";

    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}}/pending_transactions
http GET {{baseUrl}}/pending_transactions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/pending_transactions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pending_transactions")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 100,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "description": "Frederick S. Holmes",
      "id": "pending_transaction_k1sfetcau2qbvjbzgju4",
      "route_id": "card_route_jk5pd79u6ydmbf9qzu6i",
      "route_type": "transfer_instruction",
      "source": {
        "ach_transfer_instruction": {
          "amount": 100,
          "transfer_id": "ach_transfer_uoxatyh3lt5evrsdvo7q"
        },
        "category": "ach_transfer_instruction"
      },
      "status": "pending",
      "type": "pending_transaction"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Routing Numbers
{{baseUrl}}/routing_numbers
QUERY PARAMS

routing_number
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/routing_numbers?routing_number=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/routing_numbers" {:query-params {:routing_number ""}})
require "http/client"

url = "{{baseUrl}}/routing_numbers?routing_number="

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}}/routing_numbers?routing_number="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/routing_numbers?routing_number=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/routing_numbers?routing_number="

	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/routing_numbers?routing_number= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/routing_numbers?routing_number=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/routing_numbers?routing_number="))
    .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}}/routing_numbers?routing_number=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/routing_numbers?routing_number=")
  .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}}/routing_numbers?routing_number=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/routing_numbers',
  params: {routing_number: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/routing_numbers?routing_number=';
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}}/routing_numbers?routing_number=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/routing_numbers?routing_number=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/routing_numbers?routing_number=',
  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}}/routing_numbers',
  qs: {routing_number: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/routing_numbers');

req.query({
  routing_number: ''
});

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}}/routing_numbers',
  params: {routing_number: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/routing_numbers?routing_number=';
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}}/routing_numbers?routing_number="]
                                                       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}}/routing_numbers?routing_number=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/routing_numbers?routing_number=",
  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}}/routing_numbers?routing_number=');

echo $response->getBody();
setUrl('{{baseUrl}}/routing_numbers');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'routing_number' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/routing_numbers');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'routing_number' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/routing_numbers?routing_number=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/routing_numbers?routing_number=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/routing_numbers?routing_number=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/routing_numbers"

querystring = {"routing_number":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/routing_numbers"

queryString <- list(routing_number = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/routing_numbers?routing_number=")

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/routing_numbers') do |req|
  req.params['routing_number'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/routing_numbers";

    let querystring = [
        ("routing_number", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/routing_numbers?routing_number='
http GET '{{baseUrl}}/routing_numbers?routing_number='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/routing_numbers?routing_number='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/routing_numbers?routing_number=")! 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": [
    {
      "ach_transfers": "supported",
      "name": "Chase",
      "real_time_payments_transfers": "supported",
      "routing_number": "021000021",
      "type": "routing_number",
      "wire_transfers": "supported"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Transactions
{{baseUrl}}/transactions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transactions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/transactions")
require "http/client"

url = "{{baseUrl}}/transactions"

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}}/transactions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transactions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/transactions"

	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/transactions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/transactions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transactions"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/transactions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/transactions")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/transactions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transactions';
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}}/transactions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/transactions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transactions',
  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}}/transactions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/transactions');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/transactions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transactions';
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}}/transactions"]
                                                       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}}/transactions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transactions",
  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}}/transactions');

echo $response->getBody();
setUrl('{{baseUrl}}/transactions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/transactions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/transactions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transactions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/transactions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transactions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transactions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transactions")

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/transactions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transactions";

    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}}/transactions
http GET {{baseUrl}}/transactions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/transactions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transactions")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 100,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "description": "Frederick S. Holmes",
      "id": "transaction_uyrp7fld2ium70oa7oi",
      "route_id": "account_number_v18nkfqm6afpsrvy82b2",
      "route_type": "account_number",
      "source": {
        "category": "inbound_ach_transfer",
        "inbound_ach_transfer": {
          "amount": 100,
          "originator_company_descriptive_date": null,
          "originator_company_discretionary_data": null,
          "originator_company_entry_description": "RESERVE",
          "originator_company_id": "0987654321",
          "originator_company_name": "BIG BANK",
          "receiver_id_number": "12345678900",
          "receiver_name": "IAN CREASE",
          "trace_number": "021000038461022"
        }
      },
      "type": "transaction"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Wire Drawdown Requests
{{baseUrl}}/wire_drawdown_requests
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_drawdown_requests");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/wire_drawdown_requests")
require "http/client"

url = "{{baseUrl}}/wire_drawdown_requests"

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}}/wire_drawdown_requests"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/wire_drawdown_requests");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/wire_drawdown_requests"

	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/wire_drawdown_requests HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/wire_drawdown_requests")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_drawdown_requests"))
    .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}}/wire_drawdown_requests")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/wire_drawdown_requests")
  .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}}/wire_drawdown_requests');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/wire_drawdown_requests'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_drawdown_requests';
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}}/wire_drawdown_requests',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/wire_drawdown_requests")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/wire_drawdown_requests',
  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}}/wire_drawdown_requests'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/wire_drawdown_requests');

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}}/wire_drawdown_requests'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/wire_drawdown_requests';
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}}/wire_drawdown_requests"]
                                                       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}}/wire_drawdown_requests" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_drawdown_requests",
  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}}/wire_drawdown_requests');

echo $response->getBody();
setUrl('{{baseUrl}}/wire_drawdown_requests');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/wire_drawdown_requests');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/wire_drawdown_requests' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_drawdown_requests' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/wire_drawdown_requests")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/wire_drawdown_requests"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/wire_drawdown_requests"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/wire_drawdown_requests")

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/wire_drawdown_requests') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/wire_drawdown_requests";

    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}}/wire_drawdown_requests
http GET {{baseUrl}}/wire_drawdown_requests
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/wire_drawdown_requests
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/wire_drawdown_requests")! 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": [
    {
      "account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
      "amount": 10000,
      "currency": "USD",
      "fulfillment_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "id": "wire_drawdown_request_q6lmocus3glo0lr2bfv3",
      "message_to_recipient": "Invoice 29582",
      "recipient_account_number": "987654321",
      "recipient_address_line1": "33 Liberty Street",
      "recipient_address_line2": "New York, NY, 10045",
      "recipient_address_line3": null,
      "recipient_name": "Ian Crease",
      "recipient_routing_number": "101050001",
      "status": "fulfilled",
      "submission": {
        "input_message_accountability_data": "20220118MMQFMP0P000003"
      },
      "type": "wire_drawdown_request"
    }
  ],
  "next_cursor": "v57w5d"
}
GET List Wire Transfers
{{baseUrl}}/wire_transfers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_transfers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/wire_transfers")
require "http/client"

url = "{{baseUrl}}/wire_transfers"

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}}/wire_transfers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/wire_transfers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/wire_transfers"

	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/wire_transfers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/wire_transfers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_transfers"))
    .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}}/wire_transfers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/wire_transfers")
  .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}}/wire_transfers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/wire_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_transfers';
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}}/wire_transfers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/wire_transfers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/wire_transfers',
  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}}/wire_transfers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/wire_transfers');

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}}/wire_transfers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/wire_transfers';
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}}/wire_transfers"]
                                                       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}}/wire_transfers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_transfers",
  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}}/wire_transfers');

echo $response->getBody();
setUrl('{{baseUrl}}/wire_transfers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/wire_transfers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/wire_transfers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_transfers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/wire_transfers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/wire_transfers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/wire_transfers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/wire_transfers")

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/wire_transfers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/wire_transfers";

    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}}/wire_transfers
http GET {{baseUrl}}/wire_transfers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/wire_transfers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/wire_transfers")! 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": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "account_number": "987654321",
      "amount": 100,
      "approval": {
        "approved_at": "2020-01-31T23:59:59Z"
      },
      "beneficiary_address_line1": null,
      "beneficiary_address_line2": null,
      "beneficiary_address_line3": null,
      "beneficiary_financial_institution_address_line1": null,
      "beneficiary_financial_institution_address_line2": null,
      "beneficiary_financial_institution_address_line3": null,
      "beneficiary_financial_institution_identifier": null,
      "beneficiary_financial_institution_identifier_type": null,
      "beneficiary_financial_institution_name": null,
      "beneficiary_name": null,
      "cancellation": null,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
      "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
      "message_to_recipient": "Message to recipient",
      "network": "wire",
      "reversal": null,
      "routing_number": "101050001",
      "status": "complete",
      "submission": null,
      "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
      "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
      "type": "wire_transfer"
    }
  ],
  "next_cursor": "v57w5d"
}
POST Mail a Sandbox Check Transfer
{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")
require "http/client"

url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail"

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}}/simulations/check_transfers/:check_transfer_id/mail"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail"

	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/simulations/check_transfers/:check_transfer_id/mail HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail"))
    .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}}/simulations/check_transfers/:check_transfer_id/mail")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")
  .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}}/simulations/check_transfers/:check_transfer_id/mail');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail';
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}}/simulations/check_transfers/:check_transfer_id/mail',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/check_transfers/:check_transfer_id/mail',
  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}}/simulations/check_transfers/:check_transfer_id/mail'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail');

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}}/simulations/check_transfers/:check_transfer_id/mail'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail';
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}}/simulations/check_transfers/:check_transfer_id/mail"]
                                                       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}}/simulations/check_transfers/:check_transfer_id/mail" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail",
  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}}/simulations/check_transfers/:check_transfer_id/mail');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/check_transfers/:check_transfer_id/mail")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")

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/simulations/check_transfers/:check_transfer_id/mail') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail";

    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}}/simulations/check_transfers/:check_transfer_id/mail
http POST {{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/check_transfers/:check_transfer_id/mail")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
POST Reject a Sandbox Check Deposit
{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject
QUERY PARAMS

check_deposit_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")
require "http/client"

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject"

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}}/simulations/check_deposits/:check_deposit_id/reject"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject"

	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/simulations/check_deposits/:check_deposit_id/reject HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject"))
    .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}}/simulations/check_deposits/:check_deposit_id/reject")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")
  .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}}/simulations/check_deposits/:check_deposit_id/reject');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject';
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}}/simulations/check_deposits/:check_deposit_id/reject',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/check_deposits/:check_deposit_id/reject',
  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}}/simulations/check_deposits/:check_deposit_id/reject'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject');

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}}/simulations/check_deposits/:check_deposit_id/reject'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject';
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}}/simulations/check_deposits/:check_deposit_id/reject"]
                                                       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}}/simulations/check_deposits/:check_deposit_id/reject" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject",
  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}}/simulations/check_deposits/:check_deposit_id/reject');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/check_deposits/:check_deposit_id/reject")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")

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/simulations/check_deposits/:check_deposit_id/reject') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject";

    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}}/simulations/check_deposits/:check_deposit_id/reject
http POST {{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/reject")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "back_image_file_id": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit_acceptance": null,
  "deposit_rejection": null,
  "deposit_return": null,
  "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
  "status": "submitted",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_deposit"
}
POST Request a stop payment on a Check Transfer
{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")
require "http/client"

url = "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment"

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}}/check_transfers/:check_transfer_id/stop_payment"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment"

	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/check_transfers/:check_transfer_id/stop_payment HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment"))
    .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}}/check_transfers/:check_transfer_id/stop_payment")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")
  .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}}/check_transfers/:check_transfer_id/stop_payment');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment';
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}}/check_transfers/:check_transfer_id/stop_payment',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/check_transfers/:check_transfer_id/stop_payment',
  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}}/check_transfers/:check_transfer_id/stop_payment'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment');

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}}/check_transfers/:check_transfer_id/stop_payment'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment';
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}}/check_transfers/:check_transfer_id/stop_payment"]
                                                       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}}/check_transfers/:check_transfer_id/stop_payment" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment",
  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}}/check_transfers/:check_transfer_id/stop_payment');

echo $response->getBody();
setUrl('{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/check_transfers/:check_transfer_id/stop_payment")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")

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/check_transfers/:check_transfer_id/stop_payment') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment";

    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}}/check_transfers/:check_transfer_id/stop_payment
http POST {{baseUrl}}/check_transfers/:check_transfer_id/stop_payment
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/check_transfers/:check_transfer_id/stop_payment
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/check_transfers/:check_transfer_id/stop_payment")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
GET Retrieve Group details
{{baseUrl}}/groups/current
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/groups/current");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/groups/current")
require "http/client"

url = "{{baseUrl}}/groups/current"

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}}/groups/current"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/groups/current");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/groups/current"

	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/groups/current HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/groups/current")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/groups/current"))
    .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}}/groups/current")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/groups/current")
  .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}}/groups/current');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/groups/current'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/groups/current';
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}}/groups/current',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/groups/current")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/groups/current',
  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}}/groups/current'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/groups/current');

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}}/groups/current'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/groups/current';
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}}/groups/current"]
                                                       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}}/groups/current" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/groups/current",
  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}}/groups/current');

echo $response->getBody();
setUrl('{{baseUrl}}/groups/current');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/groups/current');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/groups/current' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/groups/current' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/groups/current")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/groups/current"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/groups/current"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/groups/current")

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/groups/current') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/groups/current";

    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}}/groups/current
http GET {{baseUrl}}/groups/current
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/groups/current
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/groups/current")! 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

{
  "ach_debit_status": "disabled",
  "activation_status": "activated",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "group_1g4mhziu6kvrs3vz35um",
  "type": "group"
}
GET Retrieve a Card Dispute
{{baseUrl}}/card_disputes/:card_dispute_id
QUERY PARAMS

card_dispute_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/card_disputes/:card_dispute_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/card_disputes/:card_dispute_id")
require "http/client"

url = "{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/card_disputes/:card_dispute_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/card_disputes/:card_dispute_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/card_disputes/:card_dispute_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/card_disputes/:card_dispute_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/card_disputes/:card_dispute_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/card_disputes/:card_dispute_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id');

echo $response->getBody();
setUrl('{{baseUrl}}/card_disputes/:card_dispute_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/card_disputes/:card_dispute_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/card_disputes/:card_dispute_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/card_disputes/:card_dispute_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/card_disputes/:card_dispute_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/card_disputes/:card_dispute_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/card_disputes/:card_dispute_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/card_disputes/:card_dispute_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/card_disputes/:card_dispute_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/card_disputes/:card_dispute_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}}/card_disputes/:card_dispute_id
http GET {{baseUrl}}/card_disputes/:card_dispute_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/card_disputes/:card_dispute_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/card_disputes/:card_dispute_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

{
  "acceptance": null,
  "created_at": "2020-01-31T23:59:59Z",
  "disputed_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "explanation": "Unauthorized recurring purchase",
  "id": "card_dispute_h9sc95nbl1cgltpp7men",
  "rejection": null,
  "status": "pending_reviewing",
  "type": "card_dispute"
}
GET Retrieve a Card Profile
{{baseUrl}}/card_profiles/:card_profile_id
QUERY PARAMS

card_profile_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/card_profiles/:card_profile_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/card_profiles/:card_profile_id")
require "http/client"

url = "{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/card_profiles/:card_profile_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/card_profiles/:card_profile_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/card_profiles/:card_profile_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/card_profiles/:card_profile_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/card_profiles/:card_profile_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/card_profiles/:card_profile_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/card_profiles/:card_profile_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}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id');

echo $response->getBody();
setUrl('{{baseUrl}}/card_profiles/:card_profile_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/card_profiles/:card_profile_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/card_profiles/:card_profile_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/card_profiles/:card_profile_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/card_profiles/:card_profile_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/card_profiles/:card_profile_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/card_profiles/:card_profile_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/card_profiles/:card_profile_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/card_profiles/:card_profile_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/card_profiles/:card_profile_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}}/card_profiles/:card_profile_id
http GET {{baseUrl}}/card_profiles/:card_profile_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/card_profiles/:card_profile_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/card_profiles/:card_profile_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

{
  "created_at": "2020-01-31T23:59:59Z",
  "description": "My Card Profile",
  "digital_wallets": {
    "app_icon_file_id": "file_8zxqkwlh43wo144u8yec",
    "background_image_file_id": "file_1ai913suu1zfn1pdetru",
    "card_description": "MyBank Signature Card",
    "contact_email": "user@example.com",
    "contact_phone": "+18885551212",
    "contact_website": "https://example.com",
    "issuer_name": "MyBank",
    "text_color": {
      "blue": 59,
      "green": 43,
      "red": 26
    }
  },
  "id": "card_profile_cox5y73lob2eqly18piy",
  "status": "active",
  "type": "card_profile"
}
GET Retrieve a Card
{{baseUrl}}/cards/:card_id
QUERY PARAMS

card_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/cards/:card_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/cards/:card_id")
require "http/client"

url = "{{baseUrl}}/cards/:card_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}}/cards/:card_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/cards/:card_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/cards/:card_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/cards/:card_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/cards/:card_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cards/:card_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}}/cards/:card_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/cards/:card_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}}/cards/:card_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/cards/:card_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cards/:card_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}}/cards/:card_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/cards/:card_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/cards/:card_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}}/cards/:card_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}}/cards/:card_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}}/cards/:card_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/cards/:card_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}}/cards/:card_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}}/cards/:card_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cards/:card_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}}/cards/:card_id');

echo $response->getBody();
setUrl('{{baseUrl}}/cards/:card_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/cards/:card_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/cards/:card_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cards/:card_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/cards/:card_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/cards/:card_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/cards/:card_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/cards/:card_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/cards/:card_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/cards/:card_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}}/cards/:card_id
http GET {{baseUrl}}/cards/:card_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/cards/:card_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/cards/:card_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "billing_address": {
    "city": "New York",
    "line1": "33 Liberty Street",
    "line2": null,
    "postal_code": "10045",
    "state": "NY"
  },
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Office Expenses",
  "digital_wallet": {
    "card_profile_id": "card_profile_cox5y73lob2eqly18piy",
    "email": "user@example.com",
    "phone": "+15551234567"
  },
  "expiration_month": 11,
  "expiration_year": 2028,
  "id": "card_oubs0hwk5rn6knuecxg2",
  "last4": "4242",
  "replacement": {
    "replaced_by_card_id": null,
    "replaced_card_id": null
  },
  "status": "active",
  "type": "card"
}
GET Retrieve a Check Deposit
{{baseUrl}}/check_deposits/:check_deposit_id
QUERY PARAMS

check_deposit_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_deposits/:check_deposit_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/check_deposits/:check_deposit_id")
require "http/client"

url = "{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/check_deposits/:check_deposit_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/check_deposits/:check_deposit_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/check_deposits/:check_deposit_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/check_deposits/:check_deposit_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/check_deposits/:check_deposit_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/check_deposits/:check_deposit_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id');

echo $response->getBody();
setUrl('{{baseUrl}}/check_deposits/:check_deposit_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/check_deposits/:check_deposit_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/check_deposits/:check_deposit_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_deposits/:check_deposit_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/check_deposits/:check_deposit_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/check_deposits/:check_deposit_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/check_deposits/:check_deposit_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/check_deposits/:check_deposit_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/check_deposits/:check_deposit_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/check_deposits/:check_deposit_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}}/check_deposits/:check_deposit_id
http GET {{baseUrl}}/check_deposits/:check_deposit_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/check_deposits/:check_deposit_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/check_deposits/:check_deposit_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "back_image_file_id": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit_acceptance": null,
  "deposit_rejection": null,
  "deposit_return": null,
  "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
  "status": "submitted",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_deposit"
}
GET Retrieve a Check Transfer
{{baseUrl}}/check_transfers/:check_transfer_id
QUERY PARAMS

check_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/check_transfers/:check_transfer_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/check_transfers/:check_transfer_id")
require "http/client"

url = "{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/check_transfers/:check_transfer_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/check_transfers/:check_transfer_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/check_transfers/:check_transfer_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/check_transfers/:check_transfer_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/check_transfers/:check_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/check_transfers/:check_transfer_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id');

echo $response->getBody();
setUrl('{{baseUrl}}/check_transfers/:check_transfer_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/check_transfers/:check_transfer_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/check_transfers/:check_transfer_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/check_transfers/:check_transfer_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/check_transfers/:check_transfer_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/check_transfers/:check_transfer_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/check_transfers/:check_transfer_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/check_transfers/:check_transfer_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/check_transfers/:check_transfer_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/check_transfers/:check_transfer_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}}/check_transfers/:check_transfer_id
http GET {{baseUrl}}/check_transfers/:check_transfer_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/check_transfers/:check_transfer_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/check_transfers/:check_transfer_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "address_city": "New York",
  "address_line1": "33 Liberty Street",
  "address_line2": null,
  "address_state": "NY",
  "address_zip": "10045",
  "amount": 1000,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit": null,
  "id": "check_transfer_30b43acfu9vw8fyc4f5",
  "mailed_at": "2020-01-31T23:59:59Z",
  "message": "Invoice 29582",
  "note": null,
  "recipient_name": "Ian Crease",
  "return_address": null,
  "status": "mailed",
  "stop_payment_request": null,
  "submission": {
    "check_number": "130670"
  },
  "submitted_at": "2020-01-31T23:59:59Z",
  "template_id": "check_transfer_template_tr96ajellz6awlki022o",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_transfer"
}
GET Retrieve a Declined Transaction
{{baseUrl}}/declined_transactions/:declined_transaction_id
QUERY PARAMS

declined_transaction_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/declined_transactions/:declined_transaction_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/declined_transactions/:declined_transaction_id")
require "http/client"

url = "{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/declined_transactions/:declined_transaction_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/declined_transactions/:declined_transaction_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/declined_transactions/:declined_transaction_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/declined_transactions/:declined_transaction_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/declined_transactions/:declined_transaction_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/declined_transactions/:declined_transaction_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id');

echo $response->getBody();
setUrl('{{baseUrl}}/declined_transactions/:declined_transaction_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/declined_transactions/:declined_transaction_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/declined_transactions/:declined_transaction_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/declined_transactions/:declined_transaction_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/declined_transactions/:declined_transaction_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/declined_transactions/:declined_transaction_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/declined_transactions/:declined_transaction_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/declined_transactions/:declined_transaction_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/declined_transactions/:declined_transaction_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/declined_transactions/:declined_transaction_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}}/declined_transactions/:declined_transaction_id
http GET {{baseUrl}}/declined_transactions/:declined_transaction_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/declined_transactions/:declined_transaction_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/declined_transactions/:declined_transaction_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1750,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Frederick S. Holmes",
  "id": "declined_transaction_17jbn0yyhvkt4v4ooym8",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "ach_decline": {
      "amount": 1750,
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "reason": "insufficient_funds",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022"
    },
    "category": "ach_decline"
  },
  "type": "declined_transaction"
}
GET Retrieve a Digital Wallet Token
{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id
QUERY PARAMS

digital_wallet_token_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id")
require "http/client"

url = "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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/digital_wallet_tokens/:digital_wallet_token_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id');

echo $response->getBody();
setUrl('{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/digital_wallet_tokens/:digital_wallet_token_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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/digital_wallet_tokens/:digital_wallet_token_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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}}/digital_wallet_tokens/:digital_wallet_token_id
http GET {{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/digital_wallet_tokens/:digital_wallet_token_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

{
  "card_id": "card_oubs0hwk5rn6knuecxg2",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "digital_wallet_token_izi62go3h51p369jrie0",
  "status": "active",
  "token_requestor": "apple_pay",
  "type": "digital_wallet_token"
}
GET Retrieve a Document
{{baseUrl}}/documents/:document_id
QUERY PARAMS

document_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/documents/:document_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/documents/:document_id")
require "http/client"

url = "{{baseUrl}}/documents/:document_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/:document_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/:document_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/documents/:document_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/:document_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/documents/:document_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/documents/:document_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/:document_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/documents/:document_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/:document_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/documents/:document_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/documents/:document_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/:document_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/documents/:document_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/:document_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/:document_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/:document_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/:document_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/:document_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/:document_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/:document_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/documents/:document_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/:document_id');

echo $response->getBody();
setUrl('{{baseUrl}}/documents/:document_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/documents/:document_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/documents/:document_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/documents/:document_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/documents/:document_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/documents/:document_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/documents/:document_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/documents/:document_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/:document_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/documents/:document_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/:document_id
http GET {{baseUrl}}/documents/:document_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/documents/:document_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/documents/:document_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

{
  "category": "form_1099_int",
  "created_at": "2020-01-31T23:59:59Z",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "document_qjtqc6s4c14ve2q89izm",
  "type": "document"
}
GET Retrieve a File
{{baseUrl}}/files/:file_id
QUERY PARAMS

file_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/files/:file_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/files/:file_id")
require "http/client"

url = "{{baseUrl}}/files/:file_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}}/files/:file_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/files/:file_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/files/:file_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/files/:file_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/files/:file_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/files/:file_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}}/files/:file_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/files/:file_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}}/files/:file_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/files/:file_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/files/:file_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}}/files/:file_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/files/:file_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/files/:file_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}}/files/:file_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}}/files/:file_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}}/files/:file_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/files/:file_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}}/files/:file_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}}/files/:file_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/files/:file_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}}/files/:file_id');

echo $response->getBody();
setUrl('{{baseUrl}}/files/:file_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/files/:file_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/files/:file_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/files/:file_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/files/:file_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/files/:file_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/files/:file_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/files/:file_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/files/:file_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/files/:file_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}}/files/:file_id
http GET {{baseUrl}}/files/:file_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/files/:file_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/files/:file_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

{
  "created_at": "2020-01-31T23:59:59Z",
  "description": "2022-05 statement for checking account",
  "direction": "from_increase",
  "download_url": "https://api.increase.com/files/file_makxrc67oh9l6sg7w9yc/download",
  "filename": "statement.pdf",
  "id": "file_makxrc67oh9l6sg7w9yc",
  "purpose": "increase_statement",
  "type": "file"
}
GET Retrieve a Limit
{{baseUrl}}/limits/:limit_id
QUERY PARAMS

limit_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/limits/:limit_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/limits/:limit_id")
require "http/client"

url = "{{baseUrl}}/limits/:limit_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}}/limits/:limit_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/limits/:limit_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/limits/:limit_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/limits/:limit_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/limits/:limit_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/limits/:limit_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}}/limits/:limit_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/limits/:limit_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}}/limits/:limit_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/limits/:limit_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/limits/:limit_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}}/limits/:limit_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/limits/:limit_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/limits/:limit_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}}/limits/:limit_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}}/limits/:limit_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}}/limits/:limit_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/limits/:limit_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}}/limits/:limit_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}}/limits/:limit_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/limits/:limit_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}}/limits/:limit_id');

echo $response->getBody();
setUrl('{{baseUrl}}/limits/:limit_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/limits/:limit_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/limits/:limit_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/limits/:limit_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/limits/:limit_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/limits/:limit_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/limits/:limit_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/limits/:limit_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/limits/:limit_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/limits/:limit_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}}/limits/:limit_id
http GET {{baseUrl}}/limits/:limit_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/limits/:limit_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/limits/:limit_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": "limit_fku42k0qtc8ulsuas38q",
  "interval": "month",
  "metric": "volume",
  "model_id": "account_number_v18nkfqm6afpsrvy82b2",
  "model_type": "account_number",
  "status": "active",
  "type": "limit",
  "value": 0
}
GET Retrieve a Pending Transaction
{{baseUrl}}/pending_transactions/:pending_transaction_id
QUERY PARAMS

pending_transaction_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pending_transactions/:pending_transaction_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pending_transactions/:pending_transaction_id")
require "http/client"

url = "{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pending_transactions/:pending_transaction_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pending_transactions/:pending_transaction_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/pending_transactions/:pending_transaction_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pending_transactions/:pending_transaction_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pending_transactions/:pending_transaction_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pending_transactions/:pending_transaction_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id');

echo $response->getBody();
setUrl('{{baseUrl}}/pending_transactions/:pending_transaction_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pending_transactions/:pending_transaction_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pending_transactions/:pending_transaction_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pending_transactions/:pending_transaction_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pending_transactions/:pending_transaction_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pending_transactions/:pending_transaction_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pending_transactions/:pending_transaction_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pending_transactions/:pending_transaction_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/pending_transactions/:pending_transaction_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pending_transactions/:pending_transaction_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}}/pending_transactions/:pending_transaction_id
http GET {{baseUrl}}/pending_transactions/:pending_transaction_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/pending_transactions/:pending_transaction_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pending_transactions/:pending_transaction_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Frederick S. Holmes",
  "id": "pending_transaction_k1sfetcau2qbvjbzgju4",
  "route_id": "card_route_jk5pd79u6ydmbf9qzu6i",
  "route_type": "transfer_instruction",
  "source": {
    "ach_transfer_instruction": {
      "amount": 100,
      "transfer_id": "ach_transfer_uoxatyh3lt5evrsdvo7q"
    },
    "category": "ach_transfer_instruction"
  },
  "status": "pending",
  "type": "pending_transaction"
}
GET Retrieve a Real-Time Decision
{{baseUrl}}/real_time_decisions/:real_time_decision_id
QUERY PARAMS

real_time_decision_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/real_time_decisions/:real_time_decision_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/real_time_decisions/:real_time_decision_id")
require "http/client"

url = "{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/real_time_decisions/:real_time_decision_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/real_time_decisions/:real_time_decision_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/real_time_decisions/:real_time_decision_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/real_time_decisions/:real_time_decision_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/real_time_decisions/:real_time_decision_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/real_time_decisions/:real_time_decision_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id');

echo $response->getBody();
setUrl('{{baseUrl}}/real_time_decisions/:real_time_decision_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/real_time_decisions/:real_time_decision_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/real_time_decisions/:real_time_decision_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/real_time_decisions/:real_time_decision_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/real_time_decisions/:real_time_decision_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/real_time_decisions/:real_time_decision_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/real_time_decisions/:real_time_decision_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/real_time_decisions/:real_time_decision_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/real_time_decisions/:real_time_decision_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/real_time_decisions/:real_time_decision_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}}/real_time_decisions/:real_time_decision_id
http GET {{baseUrl}}/real_time_decisions/:real_time_decision_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/real_time_decisions/:real_time_decision_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/real_time_decisions/:real_time_decision_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

{
  "card_authorization": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "card_id": "card_oubs0hwk5rn6knuecxg2",
    "decision": "approve",
    "merchant_acceptor_id": "5665270011000168",
    "merchant_category_code": "5734",
    "merchant_city": "New York",
    "merchant_country": "US",
    "merchant_descriptor": "AMAZON.COM",
    "network": "visa",
    "network_details": {
      "visa": {
        "electronic_commerce_indicator": "secure_electronic_commerce",
        "point_of_service_entry_mode": "manual"
      }
    },
    "presentment_amount": 100,
    "presentment_currency": "USD",
    "settlement_amount": 100,
    "settlement_currency": "USD"
  },
  "category": "card_authorization_requested",
  "created_at": "2020-01-31T23:59:59Z",
  "digital_wallet_authentication": null,
  "digital_wallet_token": null,
  "id": "real_time_decision_j76n2e810ezcg3zh5qtn",
  "status": "pending",
  "timeout_at": "2020-01-31T23:59:59Z",
  "type": "real_time_decision"
}
GET Retrieve a Transaction
{{baseUrl}}/transactions/:transaction_id
QUERY PARAMS

transaction_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/transactions/:transaction_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/transactions/:transaction_id")
require "http/client"

url = "{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/transactions/:transaction_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/transactions/:transaction_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/transactions/:transaction_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/transactions/:transaction_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/transactions/:transaction_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/transactions/:transaction_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/transactions/:transaction_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}}/transactions/:transaction_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}}/transactions/:transaction_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}}/transactions/:transaction_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_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}}/transactions/:transaction_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id');

echo $response->getBody();
setUrl('{{baseUrl}}/transactions/:transaction_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/transactions/:transaction_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/transactions/:transaction_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/transactions/:transaction_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/transactions/:transaction_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/transactions/:transaction_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/transactions/:transaction_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/transactions/:transaction_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/transactions/:transaction_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/transactions/:transaction_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}}/transactions/:transaction_id
http GET {{baseUrl}}/transactions/:transaction_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/transactions/:transaction_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/transactions/:transaction_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Frederick S. Holmes",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "category": "inbound_ach_transfer",
    "inbound_ach_transfer": {
      "amount": 100,
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_entry_description": "RESERVE",
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022"
    }
  },
  "type": "transaction"
}
GET Retrieve a Wire Drawdown Request
{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id
QUERY PARAMS

wire_drawdown_request_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id")
require "http/client"

url = "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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/wire_drawdown_requests/:wire_drawdown_request_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id');

echo $response->getBody();
setUrl('{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/wire_drawdown_requests/:wire_drawdown_request_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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/wire_drawdown_requests/:wire_drawdown_request_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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}}/wire_drawdown_requests/:wire_drawdown_request_id
http GET {{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/wire_drawdown_requests/:wire_drawdown_request_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

{
  "account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
  "amount": 10000,
  "currency": "USD",
  "fulfillment_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "id": "wire_drawdown_request_q6lmocus3glo0lr2bfv3",
  "message_to_recipient": "Invoice 29582",
  "recipient_account_number": "987654321",
  "recipient_address_line1": "33 Liberty Street",
  "recipient_address_line2": "New York, NY, 10045",
  "recipient_address_line3": null,
  "recipient_name": "Ian Crease",
  "recipient_routing_number": "101050001",
  "status": "fulfilled",
  "submission": {
    "input_message_accountability_data": "20220118MMQFMP0P000003"
  },
  "type": "wire_drawdown_request"
}
GET Retrieve a Wire Transfer
{{baseUrl}}/wire_transfers/:wire_transfer_id
QUERY PARAMS

wire_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/wire_transfers/:wire_transfer_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/wire_transfers/:wire_transfer_id")
require "http/client"

url = "{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/wire_transfers/:wire_transfer_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/wire_transfers/:wire_transfer_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/wire_transfers/:wire_transfer_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/wire_transfers/:wire_transfer_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/wire_transfers/:wire_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/wire_transfers/:wire_transfer_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id');

echo $response->getBody();
setUrl('{{baseUrl}}/wire_transfers/:wire_transfer_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/wire_transfers/:wire_transfer_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/wire_transfers/:wire_transfer_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wire_transfers/:wire_transfer_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/wire_transfers/:wire_transfer_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/wire_transfers/:wire_transfer_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/wire_transfers/:wire_transfer_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/wire_transfers/:wire_transfer_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/wire_transfers/:wire_transfer_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/wire_transfers/:wire_transfer_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}}/wire_transfers/:wire_transfer_id
http GET {{baseUrl}}/wire_transfers/:wire_transfer_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/wire_transfers/:wire_transfer_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/wire_transfers/:wire_transfer_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
GET Retrieve an ACH Prenotification
{{baseUrl}}/ach_prenotifications/:ach_prenotification_id
QUERY PARAMS

ach_prenotification_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_prenotifications/:ach_prenotification_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/ach_prenotifications/:ach_prenotification_id")
require "http/client"

url = "{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ach_prenotifications/:ach_prenotification_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ach_prenotifications/:ach_prenotification_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/ach_prenotifications/:ach_prenotification_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/ach_prenotifications/:ach_prenotification_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/ach_prenotifications/:ach_prenotification_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/ach_prenotifications/:ach_prenotification_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id');

echo $response->getBody();
setUrl('{{baseUrl}}/ach_prenotifications/:ach_prenotification_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/ach_prenotifications/:ach_prenotification_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ach_prenotifications/:ach_prenotification_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_prenotifications/:ach_prenotification_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/ach_prenotifications/:ach_prenotification_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ach_prenotifications/:ach_prenotification_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ach_prenotifications/:ach_prenotification_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ach_prenotifications/:ach_prenotification_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/ach_prenotifications/:ach_prenotification_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ach_prenotifications/:ach_prenotification_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}}/ach_prenotifications/:ach_prenotification_id
http GET {{baseUrl}}/ach_prenotifications/:ach_prenotification_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/ach_prenotifications/:ach_prenotification_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ach_prenotifications/:ach_prenotification_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

{
  "account_number": "987654321",
  "addendum": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": null,
  "created_at": "2020-01-31T23:59:59Z",
  "credit_debit_indicator": null,
  "effective_date": null,
  "id": "ach_prenotification_ubjf9qqsxl3obbcn1u34",
  "prenotification_return": null,
  "routing_number": "101050001",
  "status": "submitted",
  "type": "ach_prenotification"
}
GET Retrieve an ACH Transfer
{{baseUrl}}/ach_transfers/:ach_transfer_id
QUERY PARAMS

ach_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ach_transfers/:ach_transfer_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/ach_transfers/:ach_transfer_id")
require "http/client"

url = "{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ach_transfers/:ach_transfer_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ach_transfers/:ach_transfer_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/ach_transfers/:ach_transfer_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/ach_transfers/:ach_transfer_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/ach_transfers/:ach_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/ach_transfers/:ach_transfer_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id');

echo $response->getBody();
setUrl('{{baseUrl}}/ach_transfers/:ach_transfer_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/ach_transfers/:ach_transfer_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ach_transfers/:ach_transfer_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ach_transfers/:ach_transfer_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/ach_transfers/:ach_transfer_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ach_transfers/:ach_transfer_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ach_transfers/:ach_transfer_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ach_transfers/:ach_transfer_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/ach_transfers/:ach_transfer_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ach_transfers/:ach_transfer_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}}/ach_transfers/:ach_transfer_id
http GET {{baseUrl}}/ach_transfers/:ach_transfer_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/ach_transfers/:ach_transfer_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ach_transfers/:ach_transfer_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
GET Retrieve an Account Number
{{baseUrl}}/account_numbers/:account_number_id
QUERY PARAMS

account_number_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_numbers/:account_number_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_numbers/:account_number_id")
require "http/client"

url = "{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_numbers/:account_number_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_numbers/:account_number_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/account_numbers/:account_number_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_numbers/:account_number_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/account_numbers/:account_number_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_numbers/:account_number_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_numbers/:account_number_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}}/account_numbers/:account_number_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}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id');

echo $response->getBody();
setUrl('{{baseUrl}}/account_numbers/:account_number_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_numbers/:account_number_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_numbers/:account_number_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_numbers/:account_number_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_numbers/:account_number_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_numbers/:account_number_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_numbers/:account_number_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_numbers/:account_number_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/account_numbers/:account_number_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id
http GET {{baseUrl}}/account_numbers/:account_number_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_numbers/:account_number_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_numbers/:account_number_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "account_number_v18nkfqm6afpsrvy82b2",
  "name": "ACH",
  "replacement": {
    "replaced_account_number_id": null,
    "replaced_by_account_number_id": null
  },
  "routing_number": "101050001",
  "status": "active",
  "type": "account_number"
}
GET Retrieve an Account Statement
{{baseUrl}}/account_statements/:account_statement_id
QUERY PARAMS

account_statement_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_statements/:account_statement_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_statements/:account_statement_id")
require "http/client"

url = "{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_statements/:account_statement_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_statements/:account_statement_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/account_statements/:account_statement_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_statements/:account_statement_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/account_statements/:account_statement_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_statements/:account_statement_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_statements/:account_statement_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}}/account_statements/:account_statement_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}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id');

echo $response->getBody();
setUrl('{{baseUrl}}/account_statements/:account_statement_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_statements/:account_statement_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_statements/:account_statement_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_statements/:account_statement_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_statements/:account_statement_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_statements/:account_statement_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_statements/:account_statement_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_statements/:account_statement_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/account_statements/:account_statement_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_statements/:account_statement_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}}/account_statements/:account_statement_id
http GET {{baseUrl}}/account_statements/:account_statement_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_statements/:account_statement_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_statements/:account_statement_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "created_at": "2020-01-31T23:59:59Z",
  "ending_balance": 100,
  "file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "account_statement_lkc03a4skm2k7f38vj15",
  "starting_balance": 0,
  "statement_period_end": "2020-01-31T23:59:59Z",
  "statement_period_start": "2020-01-31T23:59:59Z",
  "type": "account_statement"
}
GET Retrieve an Account Transfer
{{baseUrl}}/account_transfers/:account_transfer_id
QUERY PARAMS

account_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_transfers/:account_transfer_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/account_transfers/:account_transfer_id")
require "http/client"

url = "{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/account_transfers/:account_transfer_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_transfers/:account_transfer_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/account_transfers/:account_transfer_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/account_transfers/:account_transfer_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/account_transfers/:account_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/account_transfers/:account_transfer_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id');

echo $response->getBody();
setUrl('{{baseUrl}}/account_transfers/:account_transfer_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/account_transfers/:account_transfer_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/account_transfers/:account_transfer_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_transfers/:account_transfer_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/account_transfers/:account_transfer_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_transfers/:account_transfer_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_transfers/:account_transfer_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/account_transfers/:account_transfer_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/account_transfers/:account_transfer_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/account_transfers/:account_transfer_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}}/account_transfers/:account_transfer_id
http GET {{baseUrl}}/account_transfers/:account_transfer_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/account_transfers/:account_transfer_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_transfers/:account_transfer_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Move money into savings",
  "destination_account_id": "account_uf16sut2ct5bevmq3eh",
  "destination_transaction_id": "transaction_j3itv8dtk5o8pw3p1xj4",
  "id": "account_transfer_7k9qe1ysdgqztnt63l7n",
  "network": "account",
  "status": "complete",
  "template_id": "account_transfer_template_5nloco84eijzw0wcfhnn",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "account_transfer"
}
GET Retrieve an Account
{{baseUrl}}/accounts/:account_id
QUERY PARAMS

account_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account_id")
require "http/client"

url = "{{baseUrl}}/accounts/:account_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}}/accounts/:account_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account_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/accounts/:account_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account_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}}/accounts/:account_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account_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}}/accounts/:account_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account_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}}/accounts/:account_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account_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}}/accounts/:account_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}}/accounts/:account_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}}/accounts/:account_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account_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}}/accounts/:account_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}}/accounts/:account_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account_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}}/accounts/:account_id');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account_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/accounts/:account_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account_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}}/accounts/:account_id
http GET {{baseUrl}}/accounts/:account_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account_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

{
  "balances": {
    "available_balance": 100,
    "current_balance": 100
  },
  "bank": "first_internet_bank",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "id": "account_in71c4amph0vgo2qllky",
  "informational_entity_id": null,
  "interest_accrued": "0.01",
  "interest_accrued_at": "2020-01-31",
  "name": "My first account!",
  "replacement": {
    "replaced_account_id": null,
    "replaced_by_account_id": null
  },
  "status": "open",
  "type": "account"
}
GET Retrieve an Entity
{{baseUrl}}/entities/:entity_id
QUERY PARAMS

entity_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/entities/:entity_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/entities/:entity_id")
require "http/client"

url = "{{baseUrl}}/entities/:entity_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}}/entities/:entity_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/entities/:entity_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/entities/:entity_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/entities/:entity_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/entities/:entity_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/entities/:entity_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}}/entities/:entity_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/entities/:entity_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}}/entities/:entity_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/entities/:entity_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entities/:entity_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}}/entities/:entity_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/entities/:entity_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/entities/:entity_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}}/entities/:entity_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}}/entities/:entity_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}}/entities/:entity_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/entities/:entity_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}}/entities/:entity_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}}/entities/:entity_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entities/:entity_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}}/entities/:entity_id');

echo $response->getBody();
setUrl('{{baseUrl}}/entities/:entity_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/entities/:entity_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/entities/:entity_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/entities/:entity_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/entities/:entity_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/entities/:entity_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/entities/:entity_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/entities/:entity_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/entities/:entity_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/entities/:entity_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}}/entities/:entity_id
http GET {{baseUrl}}/entities/:entity_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/entities/:entity_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/entities/:entity_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

{
  "corporation": {
    "address": {
      "city": "New York",
      "line1": "33 Liberty Street",
      "line2": null,
      "state": "NY",
      "zip": "10045"
    },
    "beneficial_owners": [
      {
        "company_title": "CEO",
        "individual": {
          "address": {
            "city": "New York",
            "line1": "33 Liberty Street",
            "line2": null,
            "state": "NY",
            "zip": "10045"
          },
          "date_of_birth": "1970-01-31",
          "identification": {
            "country": "US",
            "method": "social_security_number",
            "number_last4": "1120"
          },
          "name": "Ian Crease"
        },
        "prong": "control"
      }
    ],
    "incorporation_state": "NY",
    "name": "National Phonograph Company",
    "tax_identifier": "602214076",
    "website": "https://example.com"
  },
  "description": null,
  "id": "entity_n8y8tnk2p9339ti393yi",
  "joint": null,
  "natural_person": null,
  "relationship": "informational",
  "structure": "corporation",
  "supplemental_documents": [
    {
      "file_id": "file_makxrc67oh9l6sg7w9yc"
    }
  ],
  "trust": null,
  "type": "entity"
}
GET Retrieve an Event Subscription
{{baseUrl}}/event_subscriptions/:event_subscription_id
QUERY PARAMS

event_subscription_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/event_subscriptions/:event_subscription_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/event_subscriptions/:event_subscription_id")
require "http/client"

url = "{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/event_subscriptions/:event_subscription_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/event_subscriptions/:event_subscription_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/event_subscriptions/:event_subscription_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/event_subscriptions/:event_subscription_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/event_subscriptions/:event_subscription_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/event_subscriptions/:event_subscription_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id');

echo $response->getBody();
setUrl('{{baseUrl}}/event_subscriptions/:event_subscription_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/event_subscriptions/:event_subscription_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/event_subscriptions/:event_subscription_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/event_subscriptions/:event_subscription_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/event_subscriptions/:event_subscription_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/event_subscriptions/:event_subscription_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/event_subscriptions/:event_subscription_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/event_subscriptions/:event_subscription_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/event_subscriptions/:event_subscription_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id
http GET {{baseUrl}}/event_subscriptions/:event_subscription_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/event_subscriptions/:event_subscription_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/event_subscriptions/:event_subscription_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

{
  "created_at": "2020-01-31T23:59:59Z",
  "id": "event_subscription_001dzz0r20rcdxgb013zqb8m04g",
  "selected_event_category": null,
  "shared_secret": "b88l20",
  "status": "active",
  "type": "event_subscription",
  "url": "https://website.com/webhooks"
}
GET Retrieve an Event
{{baseUrl}}/events/:event_id
QUERY PARAMS

event_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/events/:event_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/events/:event_id")
require "http/client"

url = "{{baseUrl}}/events/:event_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}}/events/:event_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/events/:event_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/events/:event_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/events/:event_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/events/:event_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/events/:event_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}}/events/:event_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/events/:event_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}}/events/:event_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/events/:event_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/events/:event_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}}/events/:event_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/events/:event_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/events/:event_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}}/events/:event_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}}/events/:event_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}}/events/:event_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/events/:event_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}}/events/:event_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}}/events/:event_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/events/:event_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}}/events/:event_id');

echo $response->getBody();
setUrl('{{baseUrl}}/events/:event_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/events/:event_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/events/:event_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/events/:event_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/events/:event_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/events/:event_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/events/:event_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/events/:event_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/events/:event_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/events/:event_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}}/events/:event_id
http GET {{baseUrl}}/events/:event_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/events/:event_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/events/:event_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

{
  "associated_object_id": "account_in71c4amph0vgo2qllky",
  "associated_object_type": "account",
  "category": "account.created",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "event_001dzz0r20rzr4zrhrr1364hy80",
  "type": "event"
}
GET Retrieve an External Account
{{baseUrl}}/external_accounts/:external_account_id
QUERY PARAMS

external_account_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/external_accounts/:external_account_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/external_accounts/:external_account_id")
require "http/client"

url = "{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/external_accounts/:external_account_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/external_accounts/:external_account_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/external_accounts/:external_account_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/external_accounts/:external_account_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/external_accounts/:external_account_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/external_accounts/:external_account_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/external_accounts/:external_account_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}}/external_accounts/:external_account_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}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id');

echo $response->getBody();
setUrl('{{baseUrl}}/external_accounts/:external_account_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/external_accounts/:external_account_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/external_accounts/:external_account_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/external_accounts/:external_account_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/external_accounts/:external_account_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/external_accounts/:external_account_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/external_accounts/:external_account_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/external_accounts/:external_account_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/external_accounts/:external_account_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id
http GET {{baseUrl}}/external_accounts/:external_account_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/external_accounts/:external_account_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/external_accounts/:external_account_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

{
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Landlord",
  "funding": "checking",
  "id": "external_account_ukk55lr923a3ac0pp7iv",
  "routing_number": "101050001",
  "status": "active",
  "type": "external_account",
  "verification_status": "verified"
}
GET Retrieve an Inbound ACH Transfer Return
{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id
QUERY PARAMS

inbound_ach_transfer_return_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id")
require "http/client"

url = "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id');

echo $response->getBody();
setUrl('{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id
http GET {{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/inbound_ach_transfer_returns/:inbound_ach_transfer_return_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

{
  "class_name": "inbound_ach_transfer_return",
  "id": "inbound_ach_transfer_return_fhcxk5huskwhmt7iz0gk",
  "inbound_ach_transfer_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "reason": "payment_stopped",
  "status": "submitted",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "transaction_id": null,
  "type": "inbound_ach_transfer_return"
}
GET Retrieve an Inbound Wire Drawdown Request
{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id
QUERY PARAMS

inbound_wire_drawdown_request_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id")
require "http/client"

url = "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id');

echo $response->getBody();
setUrl('{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id
http GET {{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/inbound_wire_drawdown_requests/:inbound_wire_drawdown_request_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

{
  "amount": 10000,
  "beneficiary_account_number": "987654321",
  "beneficiary_address_line1": "33 Liberty Street",
  "beneficiary_address_line2": "New York, NY, 10045",
  "beneficiary_address_line3": null,
  "beneficiary_name": "Ian Crease",
  "beneficiary_routing_number": "101050001",
  "currency": "USD",
  "id": "inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e",
  "message_to_recipient": "Invoice 29582",
  "originator_account_number": "987654321",
  "originator_address_line1": "33 Liberty Street",
  "originator_address_line2": "New York, NY, 10045",
  "originator_address_line3": null,
  "originator_name": "Ian Crease",
  "originator_routing_number": "101050001",
  "originator_to_beneficiary_information_line1": null,
  "originator_to_beneficiary_information_line2": null,
  "originator_to_beneficiary_information_line3": null,
  "originator_to_beneficiary_information_line4": null,
  "recipient_account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
  "type": "inbound_wire_drawdown_request"
}
GET Retrieve an OAuth Connection
{{baseUrl}}/oauth_connections/:oauth_connection_id
QUERY PARAMS

oauth_connection_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/oauth_connections/:oauth_connection_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/oauth_connections/:oauth_connection_id")
require "http/client"

url = "{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/oauth_connections/:oauth_connection_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/oauth_connections/:oauth_connection_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/oauth_connections/:oauth_connection_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/oauth_connections/:oauth_connection_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/oauth_connections/:oauth_connection_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/oauth_connections/:oauth_connection_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id');

echo $response->getBody();
setUrl('{{baseUrl}}/oauth_connections/:oauth_connection_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/oauth_connections/:oauth_connection_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oauth_connections/:oauth_connection_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oauth_connections/:oauth_connection_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/oauth_connections/:oauth_connection_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/oauth_connections/:oauth_connection_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/oauth_connections/:oauth_connection_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/oauth_connections/:oauth_connection_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/oauth_connections/:oauth_connection_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/oauth_connections/:oauth_connection_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}}/oauth_connections/:oauth_connection_id
http GET {{baseUrl}}/oauth_connections/:oauth_connection_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/oauth_connections/:oauth_connection_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/oauth_connections/:oauth_connection_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

{
  "created_at": "2020-01-31T23:59:59Z",
  "group_id": "group_1g4mhziu6kvrs3vz35um",
  "id": "connection_dauknoksyr4wilz4e6my",
  "status": "active",
  "type": "oauth_connection"
}
GET Retrieve sensitive details for a Card
{{baseUrl}}/cards/:card_id/details
QUERY PARAMS

card_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/cards/:card_id/details");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/cards/:card_id/details")
require "http/client"

url = "{{baseUrl}}/cards/:card_id/details"

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}}/cards/:card_id/details"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/cards/:card_id/details");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/cards/:card_id/details"

	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/cards/:card_id/details HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/cards/:card_id/details")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cards/:card_id/details"))
    .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}}/cards/:card_id/details")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/cards/:card_id/details")
  .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}}/cards/:card_id/details');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/cards/:card_id/details'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cards/:card_id/details';
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}}/cards/:card_id/details',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/cards/:card_id/details")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/cards/:card_id/details',
  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}}/cards/:card_id/details'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/cards/:card_id/details');

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}}/cards/:card_id/details'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/cards/:card_id/details';
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}}/cards/:card_id/details"]
                                                       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}}/cards/:card_id/details" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cards/:card_id/details",
  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}}/cards/:card_id/details');

echo $response->getBody();
setUrl('{{baseUrl}}/cards/:card_id/details');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/cards/:card_id/details');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/cards/:card_id/details' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cards/:card_id/details' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/cards/:card_id/details")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/cards/:card_id/details"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/cards/:card_id/details"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/cards/:card_id/details")

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/cards/:card_id/details') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/cards/:card_id/details";

    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}}/cards/:card_id/details
http GET {{baseUrl}}/cards/:card_id/details
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/cards/:card_id/details
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/cards/:card_id/details")! 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

{
  "card_id": "card_oubs0hwk5rn6knuecxg2",
  "expiration_month": 7,
  "expiration_year": 2025,
  "primary_account_number": "4242424242424242",
  "type": "card_details",
  "verification_code": "123"
}
POST Return a Sandbox ACH Transfer
{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return
QUERY PARAMS

ach_transfer_id
BODY json

{
  "reason": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return");

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  \"reason\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return" {:content-type :json
                                                                                              :form-params {:reason ""}})
require "http/client"

url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"reason\": \"\"\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}}/simulations/ach_transfers/:ach_transfer_id/return"),
    Content = new StringContent("{\n  \"reason\": \"\"\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}}/simulations/ach_transfers/:ach_transfer_id/return");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"reason\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"

	payload := strings.NewReader("{\n  \"reason\": \"\"\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/simulations/ach_transfers/:ach_transfer_id/return HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 18

{
  "reason": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"reason\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"reason\": \"\"\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  \"reason\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return")
  .header("content-type", "application/json")
  .body("{\n  \"reason\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  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}}/simulations/ach_transfers/:ach_transfer_id/return');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return',
  headers: {'content-type': 'application/json'},
  data: {reason: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"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}}/simulations/ach_transfers/:ach_transfer_id/return',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "reason": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"reason\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return")
  .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/simulations/ach_transfers/:ach_transfer_id/return',
  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({reason: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return',
  headers: {'content-type': 'application/json'},
  body: {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}}/simulations/ach_transfers/:ach_transfer_id/return');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  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}}/simulations/ach_transfers/:ach_transfer_id/return',
  headers: {'content-type': 'application/json'},
  data: {reason: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"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 = @{ @"reason": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"]
                                                       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}}/simulations/ach_transfers/:ach_transfer_id/return" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"reason\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return",
  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([
    '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}}/simulations/ach_transfers/:ach_transfer_id/return', [
  'body' => '{
  "reason": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'reason' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'reason' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return');
$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}}/simulations/ach_transfers/:ach_transfer_id/return' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "reason": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "reason": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"reason\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/ach_transfers/:ach_transfer_id/return", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"

payload = { "reason": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return"

payload <- "{\n  \"reason\": \"\"\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}}/simulations/ach_transfers/:ach_transfer_id/return")

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  \"reason\": \"\"\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/simulations/ach_transfers/:ach_transfer_id/return') do |req|
  req.body = "{\n  \"reason\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return";

    let payload = 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}}/simulations/ach_transfers/:ach_transfer_id/return \
  --header 'content-type: application/json' \
  --data '{
  "reason": ""
}'
echo '{
  "reason": ""
}' |  \
  http POST {{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "reason": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["reason": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/return")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
POST Return a Sandbox Check Deposit
{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return
QUERY PARAMS

check_deposit_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")
require "http/client"

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return"

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}}/simulations/check_deposits/:check_deposit_id/return"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return"

	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/simulations/check_deposits/:check_deposit_id/return HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return"))
    .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}}/simulations/check_deposits/:check_deposit_id/return")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")
  .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}}/simulations/check_deposits/:check_deposit_id/return');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return';
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}}/simulations/check_deposits/:check_deposit_id/return',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/check_deposits/:check_deposit_id/return',
  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}}/simulations/check_deposits/:check_deposit_id/return'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return');

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}}/simulations/check_deposits/:check_deposit_id/return'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return';
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}}/simulations/check_deposits/:check_deposit_id/return"]
                                                       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}}/simulations/check_deposits/:check_deposit_id/return" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return",
  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}}/simulations/check_deposits/:check_deposit_id/return');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/check_deposits/:check_deposit_id/return")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")

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/simulations/check_deposits/:check_deposit_id/return') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return";

    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}}/simulations/check_deposits/:check_deposit_id/return
http POST {{baseUrl}}/simulations/check_deposits/:check_deposit_id/return
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/check_deposits/:check_deposit_id/return
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/return")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "back_image_file_id": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit_acceptance": null,
  "deposit_rejection": null,
  "deposit_return": null,
  "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
  "status": "submitted",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_deposit"
}
POST Reverse a Sandbox Wire Transfer
{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse
QUERY PARAMS

wire_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")
require "http/client"

url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse"

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}}/simulations/wire_transfers/:wire_transfer_id/reverse"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse"

	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/simulations/wire_transfers/:wire_transfer_id/reverse HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse"))
    .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}}/simulations/wire_transfers/:wire_transfer_id/reverse")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")
  .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}}/simulations/wire_transfers/:wire_transfer_id/reverse');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse';
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}}/simulations/wire_transfers/:wire_transfer_id/reverse',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/wire_transfers/:wire_transfer_id/reverse',
  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}}/simulations/wire_transfers/:wire_transfer_id/reverse'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse');

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}}/simulations/wire_transfers/:wire_transfer_id/reverse'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse';
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}}/simulations/wire_transfers/:wire_transfer_id/reverse"]
                                                       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}}/simulations/wire_transfers/:wire_transfer_id/reverse" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse",
  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}}/simulations/wire_transfers/:wire_transfer_id/reverse');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/wire_transfers/:wire_transfer_id/reverse")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")

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/simulations/wire_transfers/:wire_transfer_id/reverse') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse";

    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}}/simulations/wire_transfers/:wire_transfer_id/reverse
http POST {{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/reverse")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
POST Simulate a Real Time Payments Transfer to your account
{{baseUrl}}/simulations/inbound_real_time_payments_transfers
BODY json

{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/inbound_real_time_payments_transfers");

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/inbound_real_time_payments_transfers" {:content-type :json
                                                                                             :form-params {:account_number_id ""
                                                                                                           :amount 0
                                                                                                           :debtor_account_number ""
                                                                                                           :debtor_name ""
                                                                                                           :debtor_routing_number ""
                                                                                                           :remittance_information ""
                                                                                                           :request_for_payment_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/inbound_real_time_payments_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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}}/simulations/inbound_real_time_payments_transfers"),
    Content = new StringContent("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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}}/simulations/inbound_real_time_payments_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/inbound_real_time_payments_transfers"

	payload := strings.NewReader("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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/simulations/inbound_real_time_payments_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 191

{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/inbound_real_time_payments_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/inbound_real_time_payments_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_real_time_payments_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/inbound_real_time_payments_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number_id: '',
  amount: 0,
  debtor_account_number: '',
  debtor_name: '',
  debtor_routing_number: '',
  remittance_information: '',
  request_for_payment_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/inbound_real_time_payments_transfers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_real_time_payments_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    debtor_account_number: '',
    debtor_name: '',
    debtor_routing_number: '',
    remittance_information: '',
    request_for_payment_id: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/inbound_real_time_payments_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"debtor_account_number":"","debtor_name":"","debtor_routing_number":"","remittance_information":"","request_for_payment_id":""}'
};

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}}/simulations/inbound_real_time_payments_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number_id": "",\n  "amount": 0,\n  "debtor_account_number": "",\n  "debtor_name": "",\n  "debtor_routing_number": "",\n  "remittance_information": "",\n  "request_for_payment_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_real_time_payments_transfers")
  .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/simulations/inbound_real_time_payments_transfers',
  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({
  account_number_id: '',
  amount: 0,
  debtor_account_number: '',
  debtor_name: '',
  debtor_routing_number: '',
  remittance_information: '',
  request_for_payment_id: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_real_time_payments_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_number_id: '',
    amount: 0,
    debtor_account_number: '',
    debtor_name: '',
    debtor_routing_number: '',
    remittance_information: '',
    request_for_payment_id: ''
  },
  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}}/simulations/inbound_real_time_payments_transfers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_number_id: '',
  amount: 0,
  debtor_account_number: '',
  debtor_name: '',
  debtor_routing_number: '',
  remittance_information: '',
  request_for_payment_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: 'POST',
  url: '{{baseUrl}}/simulations/inbound_real_time_payments_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    debtor_account_number: '',
    debtor_name: '',
    debtor_routing_number: '',
    remittance_information: '',
    request_for_payment_id: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/inbound_real_time_payments_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"debtor_account_number":"","debtor_name":"","debtor_routing_number":"","remittance_information":"","request_for_payment_id":""}'
};

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 = @{ @"account_number_id": @"",
                              @"amount": @0,
                              @"debtor_account_number": @"",
                              @"debtor_name": @"",
                              @"debtor_routing_number": @"",
                              @"remittance_information": @"",
                              @"request_for_payment_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/inbound_real_time_payments_transfers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/simulations/inbound_real_time_payments_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/inbound_real_time_payments_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_number_id' => '',
    'amount' => 0,
    'debtor_account_number' => '',
    'debtor_name' => '',
    'debtor_routing_number' => '',
    'remittance_information' => '',
    'request_for_payment_id' => ''
  ]),
  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}}/simulations/inbound_real_time_payments_transfers', [
  'body' => '{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/inbound_real_time_payments_transfers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'debtor_account_number' => '',
  'debtor_name' => '',
  'debtor_routing_number' => '',
  'remittance_information' => '',
  'request_for_payment_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'debtor_account_number' => '',
  'debtor_name' => '',
  'debtor_routing_number' => '',
  'remittance_information' => '',
  'request_for_payment_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/inbound_real_time_payments_transfers');
$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}}/simulations/inbound_real_time_payments_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/inbound_real_time_payments_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/inbound_real_time_payments_transfers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/inbound_real_time_payments_transfers"

payload = {
    "account_number_id": "",
    "amount": 0,
    "debtor_account_number": "",
    "debtor_name": "",
    "debtor_routing_number": "",
    "remittance_information": "",
    "request_for_payment_id": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/inbound_real_time_payments_transfers"

payload <- "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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}}/simulations/inbound_real_time_payments_transfers")

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\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/simulations/inbound_real_time_payments_transfers') do |req|
  req.body = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"debtor_account_number\": \"\",\n  \"debtor_name\": \"\",\n  \"debtor_routing_number\": \"\",\n  \"remittance_information\": \"\",\n  \"request_for_payment_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/inbound_real_time_payments_transfers";

    let payload = json!({
        "account_number_id": "",
        "amount": 0,
        "debtor_account_number": "",
        "debtor_name": "",
        "debtor_routing_number": "",
        "remittance_information": "",
        "request_for_payment_id": ""
    });

    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}}/simulations/inbound_real_time_payments_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}'
echo '{
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/inbound_real_time_payments_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number_id": "",\n  "amount": 0,\n  "debtor_account_number": "",\n  "debtor_name": "",\n  "debtor_routing_number": "",\n  "remittance_information": "",\n  "request_for_payment_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/inbound_real_time_payments_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number_id": "",
  "amount": 0,
  "debtor_account_number": "",
  "debtor_name": "",
  "debtor_routing_number": "",
  "remittance_information": "",
  "request_for_payment_id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/inbound_real_time_payments_transfers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "declined_transaction": null,
  "transaction": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 100,
    "created_at": "2020-01-31T23:59:59Z",
    "currency": "USD",
    "description": "Frederick S. Holmes",
    "id": "transaction_uyrp7fld2ium70oa7oi",
    "route_id": "account_number_v18nkfqm6afpsrvy82b2",
    "route_type": "account_number",
    "source": {
      "category": "inbound_real_time_payments_transfer_confirmation",
      "inbound_real_time_payments_transfer_confirmation": {
        "amount": 100,
        "creditor_name": "Ian Crease",
        "currency": "USD",
        "debtor_account_number": "987654321",
        "debtor_name": "National Phonograph Company",
        "debtor_routing_number": "101050001",
        "remittance_information": "Invoice 29582",
        "transaction_identification": "20220501234567891T1BSLZO01745013025"
      }
    },
    "type": "transaction"
  },
  "type": "inbound_real_time_payments_transfer_simulation_result"
}
POST Simulate a Wire Transfer to your account
{{baseUrl}}/simulations/inbound_wire_transfers
BODY json

{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/inbound_wire_transfers");

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/inbound_wire_transfers" {:content-type :json
                                                                               :form-params {:account_number_id ""
                                                                                             :amount 0
                                                                                             :beneficiary_address_line1 ""
                                                                                             :beneficiary_address_line2 ""
                                                                                             :beneficiary_address_line3 ""
                                                                                             :beneficiary_name ""
                                                                                             :beneficiary_reference ""
                                                                                             :originator_address_line1 ""
                                                                                             :originator_address_line2 ""
                                                                                             :originator_address_line3 ""
                                                                                             :originator_name ""
                                                                                             :originator_to_beneficiary_information_line1 ""
                                                                                             :originator_to_beneficiary_information_line2 ""
                                                                                             :originator_to_beneficiary_information_line3 ""
                                                                                             :originator_to_beneficiary_information_line4 ""}})
require "http/client"

url = "{{baseUrl}}/simulations/inbound_wire_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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}}/simulations/inbound_wire_transfers"),
    Content = new StringContent("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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}}/simulations/inbound_wire_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/inbound_wire_transfers"

	payload := strings.NewReader("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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/simulations/inbound_wire_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 545

{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/inbound_wire_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/inbound_wire_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_wire_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/inbound_wire_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number_id: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_reference: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/inbound_wire_transfers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_wire_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_reference: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/inbound_wire_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","beneficiary_reference":"","originator_address_line1":"","originator_address_line2":"","originator_address_line3":"","originator_name":"","originator_to_beneficiary_information_line1":"","originator_to_beneficiary_information_line2":"","originator_to_beneficiary_information_line3":"","originator_to_beneficiary_information_line4":""}'
};

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}}/simulations/inbound_wire_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number_id": "",\n  "amount": 0,\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "beneficiary_reference": "",\n  "originator_address_line1": "",\n  "originator_address_line2": "",\n  "originator_address_line3": "",\n  "originator_name": "",\n  "originator_to_beneficiary_information_line1": "",\n  "originator_to_beneficiary_information_line2": "",\n  "originator_to_beneficiary_information_line3": "",\n  "originator_to_beneficiary_information_line4": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_wire_transfers")
  .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/simulations/inbound_wire_transfers',
  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({
  account_number_id: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_reference: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_wire_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_number_id: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_reference: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: ''
  },
  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}}/simulations/inbound_wire_transfers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_number_id: '',
  amount: 0,
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_reference: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: ''
});

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}}/simulations/inbound_wire_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_reference: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/inbound_wire_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","beneficiary_reference":"","originator_address_line1":"","originator_address_line2":"","originator_address_line3":"","originator_name":"","originator_to_beneficiary_information_line1":"","originator_to_beneficiary_information_line2":"","originator_to_beneficiary_information_line3":"","originator_to_beneficiary_information_line4":""}'
};

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 = @{ @"account_number_id": @"",
                              @"amount": @0,
                              @"beneficiary_address_line1": @"",
                              @"beneficiary_address_line2": @"",
                              @"beneficiary_address_line3": @"",
                              @"beneficiary_name": @"",
                              @"beneficiary_reference": @"",
                              @"originator_address_line1": @"",
                              @"originator_address_line2": @"",
                              @"originator_address_line3": @"",
                              @"originator_name": @"",
                              @"originator_to_beneficiary_information_line1": @"",
                              @"originator_to_beneficiary_information_line2": @"",
                              @"originator_to_beneficiary_information_line3": @"",
                              @"originator_to_beneficiary_information_line4": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/inbound_wire_transfers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/simulations/inbound_wire_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/inbound_wire_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_number_id' => '',
    'amount' => 0,
    'beneficiary_address_line1' => '',
    'beneficiary_address_line2' => '',
    'beneficiary_address_line3' => '',
    'beneficiary_name' => '',
    'beneficiary_reference' => '',
    'originator_address_line1' => '',
    'originator_address_line2' => '',
    'originator_address_line3' => '',
    'originator_name' => '',
    'originator_to_beneficiary_information_line1' => '',
    'originator_to_beneficiary_information_line2' => '',
    'originator_to_beneficiary_information_line3' => '',
    'originator_to_beneficiary_information_line4' => ''
  ]),
  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}}/simulations/inbound_wire_transfers', [
  'body' => '{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/inbound_wire_transfers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'beneficiary_reference' => '',
  'originator_address_line1' => '',
  'originator_address_line2' => '',
  'originator_address_line3' => '',
  'originator_name' => '',
  'originator_to_beneficiary_information_line1' => '',
  'originator_to_beneficiary_information_line2' => '',
  'originator_to_beneficiary_information_line3' => '',
  'originator_to_beneficiary_information_line4' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'beneficiary_reference' => '',
  'originator_address_line1' => '',
  'originator_address_line2' => '',
  'originator_address_line3' => '',
  'originator_name' => '',
  'originator_to_beneficiary_information_line1' => '',
  'originator_to_beneficiary_information_line2' => '',
  'originator_to_beneficiary_information_line3' => '',
  'originator_to_beneficiary_information_line4' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/inbound_wire_transfers');
$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}}/simulations/inbound_wire_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/inbound_wire_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/inbound_wire_transfers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/inbound_wire_transfers"

payload = {
    "account_number_id": "",
    "amount": 0,
    "beneficiary_address_line1": "",
    "beneficiary_address_line2": "",
    "beneficiary_address_line3": "",
    "beneficiary_name": "",
    "beneficiary_reference": "",
    "originator_address_line1": "",
    "originator_address_line2": "",
    "originator_address_line3": "",
    "originator_name": "",
    "originator_to_beneficiary_information_line1": "",
    "originator_to_beneficiary_information_line2": "",
    "originator_to_beneficiary_information_line3": "",
    "originator_to_beneficiary_information_line4": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/inbound_wire_transfers"

payload <- "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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}}/simulations/inbound_wire_transfers")

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\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/simulations/inbound_wire_transfers') do |req|
  req.body = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_reference\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/inbound_wire_transfers";

    let payload = json!({
        "account_number_id": "",
        "amount": 0,
        "beneficiary_address_line1": "",
        "beneficiary_address_line2": "",
        "beneficiary_address_line3": "",
        "beneficiary_name": "",
        "beneficiary_reference": "",
        "originator_address_line1": "",
        "originator_address_line2": "",
        "originator_address_line3": "",
        "originator_name": "",
        "originator_to_beneficiary_information_line1": "",
        "originator_to_beneficiary_information_line2": "",
        "originator_to_beneficiary_information_line3": "",
        "originator_to_beneficiary_information_line4": ""
    });

    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}}/simulations/inbound_wire_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}'
echo '{
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
}' |  \
  http POST {{baseUrl}}/simulations/inbound_wire_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number_id": "",\n  "amount": 0,\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "beneficiary_reference": "",\n  "originator_address_line1": "",\n  "originator_address_line2": "",\n  "originator_address_line3": "",\n  "originator_name": "",\n  "originator_to_beneficiary_information_line1": "",\n  "originator_to_beneficiary_information_line2": "",\n  "originator_to_beneficiary_information_line3": "",\n  "originator_to_beneficiary_information_line4": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/inbound_wire_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number_id": "",
  "amount": 0,
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_reference": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/inbound_wire_transfers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "transaction": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 100,
    "created_at": "2020-01-31T23:59:59Z",
    "currency": "USD",
    "description": "Frederick S. Holmes",
    "id": "transaction_uyrp7fld2ium70oa7oi",
    "route_id": "account_number_v18nkfqm6afpsrvy82b2",
    "route_type": "account_number",
    "source": {
      "category": "inbound_wire_transfer",
      "inbound_wire_transfer": {
        "amount": 100,
        "beneficiary_address_line1": null,
        "beneficiary_address_line2": null,
        "beneficiary_address_line3": null,
        "beneficiary_name": null,
        "beneficiary_reference": null,
        "description": "Inbound wire transfer",
        "input_message_accountability_data": null,
        "originator_address_line1": null,
        "originator_address_line2": null,
        "originator_address_line3": null,
        "originator_name": null,
        "originator_to_beneficiary_information": null,
        "originator_to_beneficiary_information_line1": null,
        "originator_to_beneficiary_information_line2": null,
        "originator_to_beneficiary_information_line3": null,
        "originator_to_beneficiary_information_line4": null
      }
    },
    "type": "transaction"
  },
  "type": "inbound_wire_transfer_simulation_result"
}
POST Simulate a refund on a card
{{baseUrl}}/simulations/card_refunds
BODY json

{
  "transaction_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/card_refunds");

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  \"transaction_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/card_refunds" {:content-type :json
                                                                     :form-params {:transaction_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/card_refunds"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"transaction_id\": \"\"\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}}/simulations/card_refunds"),
    Content = new StringContent("{\n  \"transaction_id\": \"\"\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}}/simulations/card_refunds");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"transaction_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/card_refunds"

	payload := strings.NewReader("{\n  \"transaction_id\": \"\"\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/simulations/card_refunds HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 26

{
  "transaction_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/card_refunds")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"transaction_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/card_refunds"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"transaction_id\": \"\"\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  \"transaction_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/card_refunds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/card_refunds")
  .header("content-type", "application/json")
  .body("{\n  \"transaction_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  transaction_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/card_refunds');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_refunds',
  headers: {'content-type': 'application/json'},
  data: {transaction_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/card_refunds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"transaction_id":""}'
};

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}}/simulations/card_refunds',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "transaction_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"transaction_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/card_refunds")
  .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/simulations/card_refunds',
  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({transaction_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_refunds',
  headers: {'content-type': 'application/json'},
  body: {transaction_id: ''},
  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}}/simulations/card_refunds');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  transaction_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: 'POST',
  url: '{{baseUrl}}/simulations/card_refunds',
  headers: {'content-type': 'application/json'},
  data: {transaction_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/card_refunds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"transaction_id":""}'
};

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 = @{ @"transaction_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/card_refunds"]
                                                       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}}/simulations/card_refunds" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"transaction_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/card_refunds",
  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([
    'transaction_id' => ''
  ]),
  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}}/simulations/card_refunds', [
  'body' => '{
  "transaction_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/card_refunds');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'transaction_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'transaction_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/card_refunds');
$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}}/simulations/card_refunds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "transaction_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/card_refunds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "transaction_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"transaction_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/card_refunds", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/card_refunds"

payload = { "transaction_id": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/card_refunds"

payload <- "{\n  \"transaction_id\": \"\"\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}}/simulations/card_refunds")

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  \"transaction_id\": \"\"\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/simulations/card_refunds') do |req|
  req.body = "{\n  \"transaction_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/card_refunds";

    let payload = json!({"transaction_id": ""});

    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}}/simulations/card_refunds \
  --header 'content-type: application/json' \
  --data '{
  "transaction_id": ""
}'
echo '{
  "transaction_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/card_refunds \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "transaction_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/card_refunds
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["transaction_id": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/card_refunds")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Frederick S. Holmes",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "category": "inbound_ach_transfer",
    "inbound_ach_transfer": {
      "amount": 100,
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_entry_description": "RESERVE",
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022"
    }
  },
  "type": "transaction"
}
POST Simulate a tax document being created
{{baseUrl}}/simulations/documents
BODY json

{
  "account_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/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  \"account_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/documents" {:content-type :json
                                                                  :form-params {:account_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/documents"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\"\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}}/simulations/documents"),
    Content = new StringContent("{\n  \"account_id\": \"\"\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}}/simulations/documents");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/documents"

	payload := strings.NewReader("{\n  \"account_id\": \"\"\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/simulations/documents HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22

{
  "account_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/documents")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/documents"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\"\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  \"account_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/documents")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/documents")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/documents');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/documents',
  headers: {'content-type': 'application/json'},
  data: {account_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":""}'
};

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}}/simulations/documents',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/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/simulations/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({account_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/documents',
  headers: {'content-type': 'application/json'},
  body: {account_id: ''},
  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}}/simulations/documents');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_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: 'POST',
  url: '{{baseUrl}}/simulations/documents',
  headers: {'content-type': 'application/json'},
  data: {account_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/documents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":""}'
};

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 = @{ @"account_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/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}}/simulations/documents" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/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([
    'account_id' => ''
  ]),
  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}}/simulations/documents', [
  'body' => '{
  "account_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/documents');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/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}}/simulations/documents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/documents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/documents", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/documents"

payload = { "account_id": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/documents"

payload <- "{\n  \"account_id\": \"\"\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}}/simulations/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  \"account_id\": \"\"\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/simulations/documents') do |req|
  req.body = "{\n  \"account_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/documents";

    let payload = json!({"account_id": ""});

    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}}/simulations/documents \
  --header 'content-type: application/json' \
  --data '{
  "account_id": ""
}'
echo '{
  "account_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/documents \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/documents
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["account_id": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/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

{
  "category": "form_1099_int",
  "created_at": "2020-01-31T23:59:59Z",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "document_qjtqc6s4c14ve2q89izm",
  "type": "document"
}
POST Simulate an ACH Transfer to your account
{{baseUrl}}/simulations/inbound_ach_transfers
BODY json

{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/inbound_ach_transfers");

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/inbound_ach_transfers" {:content-type :json
                                                                              :form-params {:account_number_id ""
                                                                                            :amount 0
                                                                                            :company_descriptive_date ""
                                                                                            :company_discretionary_data ""
                                                                                            :company_entry_description ""
                                                                                            :company_id ""
                                                                                            :company_name ""}})
require "http/client"

url = "{{baseUrl}}/simulations/inbound_ach_transfers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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}}/simulations/inbound_ach_transfers"),
    Content = new StringContent("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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}}/simulations/inbound_ach_transfers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/inbound_ach_transfers"

	payload := strings.NewReader("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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/simulations/inbound_ach_transfers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 191

{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/inbound_ach_transfers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/inbound_ach_transfers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_ach_transfers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/inbound_ach_transfers")
  .header("content-type", "application/json")
  .body("{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_number_id: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_id: '',
  company_name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/inbound_ach_transfers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_ach_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_id: '',
    company_name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/inbound_ach_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_id":"","company_name":""}'
};

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}}/simulations/inbound_ach_transfers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_number_id": "",\n  "amount": 0,\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_id": "",\n  "company_name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_ach_transfers")
  .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/simulations/inbound_ach_transfers',
  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({
  account_number_id: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_id: '',
  company_name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_ach_transfers',
  headers: {'content-type': 'application/json'},
  body: {
    account_number_id: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_id: '',
    company_name: ''
  },
  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}}/simulations/inbound_ach_transfers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_number_id: '',
  amount: 0,
  company_descriptive_date: '',
  company_discretionary_data: '',
  company_entry_description: '',
  company_id: '',
  company_name: ''
});

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}}/simulations/inbound_ach_transfers',
  headers: {'content-type': 'application/json'},
  data: {
    account_number_id: '',
    amount: 0,
    company_descriptive_date: '',
    company_discretionary_data: '',
    company_entry_description: '',
    company_id: '',
    company_name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/inbound_ach_transfers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_number_id":"","amount":0,"company_descriptive_date":"","company_discretionary_data":"","company_entry_description":"","company_id":"","company_name":""}'
};

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 = @{ @"account_number_id": @"",
                              @"amount": @0,
                              @"company_descriptive_date": @"",
                              @"company_discretionary_data": @"",
                              @"company_entry_description": @"",
                              @"company_id": @"",
                              @"company_name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/inbound_ach_transfers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/simulations/inbound_ach_transfers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/inbound_ach_transfers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_number_id' => '',
    'amount' => 0,
    'company_descriptive_date' => '',
    'company_discretionary_data' => '',
    'company_entry_description' => '',
    'company_id' => '',
    'company_name' => ''
  ]),
  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}}/simulations/inbound_ach_transfers', [
  'body' => '{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/inbound_ach_transfers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_id' => '',
  'company_name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_number_id' => '',
  'amount' => 0,
  'company_descriptive_date' => '',
  'company_discretionary_data' => '',
  'company_entry_description' => '',
  'company_id' => '',
  'company_name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/inbound_ach_transfers');
$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}}/simulations/inbound_ach_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/inbound_ach_transfers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/inbound_ach_transfers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/inbound_ach_transfers"

payload = {
    "account_number_id": "",
    "amount": 0,
    "company_descriptive_date": "",
    "company_discretionary_data": "",
    "company_entry_description": "",
    "company_id": "",
    "company_name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/inbound_ach_transfers"

payload <- "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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}}/simulations/inbound_ach_transfers")

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  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\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/simulations/inbound_ach_transfers') do |req|
  req.body = "{\n  \"account_number_id\": \"\",\n  \"amount\": 0,\n  \"company_descriptive_date\": \"\",\n  \"company_discretionary_data\": \"\",\n  \"company_entry_description\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/inbound_ach_transfers";

    let payload = json!({
        "account_number_id": "",
        "amount": 0,
        "company_descriptive_date": "",
        "company_discretionary_data": "",
        "company_entry_description": "",
        "company_id": "",
        "company_name": ""
    });

    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}}/simulations/inbound_ach_transfers \
  --header 'content-type: application/json' \
  --data '{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}'
echo '{
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
}' |  \
  http POST {{baseUrl}}/simulations/inbound_ach_transfers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_number_id": "",\n  "amount": 0,\n  "company_descriptive_date": "",\n  "company_discretionary_data": "",\n  "company_entry_description": "",\n  "company_id": "",\n  "company_name": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/inbound_ach_transfers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_number_id": "",
  "amount": 0,
  "company_descriptive_date": "",
  "company_discretionary_data": "",
  "company_entry_description": "",
  "company_id": "",
  "company_name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/inbound_ach_transfers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "declined_transaction": null,
  "transaction": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 100,
    "created_at": "2020-01-31T23:59:59Z",
    "currency": "USD",
    "description": "Frederick S. Holmes",
    "id": "transaction_uyrp7fld2ium70oa7oi",
    "route_id": "account_number_v18nkfqm6afpsrvy82b2",
    "route_type": "account_number",
    "source": {
      "category": "inbound_ach_transfer",
      "inbound_ach_transfer": {
        "amount": 100,
        "originator_company_descriptive_date": null,
        "originator_company_discretionary_data": null,
        "originator_company_entry_description": "RESERVE",
        "originator_company_id": "0987654321",
        "originator_company_name": "BIG BANK",
        "receiver_id_number": "12345678900",
        "receiver_name": "IAN CREASE",
        "trace_number": "021000038461022"
      }
    },
    "type": "transaction"
  },
  "type": "inbound_ach_transfer_simulation_result"
}
POST Simulate an Account Statement being created
{{baseUrl}}/simulations/account_statements
BODY json

{
  "account_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/account_statements");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"account_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/account_statements" {:content-type :json
                                                                           :form-params {:account_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/account_statements"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_id\": \"\"\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}}/simulations/account_statements"),
    Content = new StringContent("{\n  \"account_id\": \"\"\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}}/simulations/account_statements");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/account_statements"

	payload := strings.NewReader("{\n  \"account_id\": \"\"\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/simulations/account_statements HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22

{
  "account_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/account_statements")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/account_statements"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_id\": \"\"\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  \"account_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/account_statements")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/account_statements")
  .header("content-type", "application/json")
  .body("{\n  \"account_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/account_statements');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/account_statements',
  headers: {'content-type': 'application/json'},
  data: {account_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/account_statements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":""}'
};

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}}/simulations/account_statements',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/account_statements")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/account_statements',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({account_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/account_statements',
  headers: {'content-type': 'application/json'},
  body: {account_id: ''},
  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}}/simulations/account_statements');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  account_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: 'POST',
  url: '{{baseUrl}}/simulations/account_statements',
  headers: {'content-type': 'application/json'},
  data: {account_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/account_statements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_id":""}'
};

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 = @{ @"account_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/account_statements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/simulations/account_statements" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/account_statements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'account_id' => ''
  ]),
  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}}/simulations/account_statements', [
  'body' => '{
  "account_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/account_statements');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/account_statements');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/account_statements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/account_statements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"account_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/account_statements", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/account_statements"

payload = { "account_id": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/account_statements"

payload <- "{\n  \"account_id\": \"\"\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}}/simulations/account_statements")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"account_id\": \"\"\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/simulations/account_statements') do |req|
  req.body = "{\n  \"account_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/account_statements";

    let payload = json!({"account_id": ""});

    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}}/simulations/account_statements \
  --header 'content-type: application/json' \
  --data '{
  "account_id": ""
}'
echo '{
  "account_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/account_statements \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/account_statements
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["account_id": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/account_statements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "created_at": "2020-01-31T23:59:59Z",
  "ending_balance": 100,
  "file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "account_statement_lkc03a4skm2k7f38vj15",
  "starting_balance": 0,
  "statement_period_end": "2020-01-31T23:59:59Z",
  "statement_period_start": "2020-01-31T23:59:59Z",
  "type": "account_statement"
}
POST Simulate an Inbound Wire Drawdown request being created
{{baseUrl}}/simulations/inbound_wire_drawdown_requests
BODY json

{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/inbound_wire_drawdown_requests");

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  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/inbound_wire_drawdown_requests" {:content-type :json
                                                                                       :form-params {:amount 0
                                                                                                     :beneficiary_account_number ""
                                                                                                     :beneficiary_address_line1 ""
                                                                                                     :beneficiary_address_line2 ""
                                                                                                     :beneficiary_address_line3 ""
                                                                                                     :beneficiary_name ""
                                                                                                     :beneficiary_routing_number ""
                                                                                                     :currency ""
                                                                                                     :message_to_recipient ""
                                                                                                     :originator_account_number ""
                                                                                                     :originator_address_line1 ""
                                                                                                     :originator_address_line2 ""
                                                                                                     :originator_address_line3 ""
                                                                                                     :originator_name ""
                                                                                                     :originator_routing_number ""
                                                                                                     :originator_to_beneficiary_information_line1 ""
                                                                                                     :originator_to_beneficiary_information_line2 ""
                                                                                                     :originator_to_beneficiary_information_line3 ""
                                                                                                     :originator_to_beneficiary_information_line4 ""
                                                                                                     :recipient_account_number_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/inbound_wire_drawdown_requests"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\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}}/simulations/inbound_wire_drawdown_requests"),
    Content = new StringContent("{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\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}}/simulations/inbound_wire_drawdown_requests");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/inbound_wire_drawdown_requests"

	payload := strings.NewReader("{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\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/simulations/inbound_wire_drawdown_requests HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 714

{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/inbound_wire_drawdown_requests")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/inbound_wire_drawdown_requests"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_wire_drawdown_requests")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/inbound_wire_drawdown_requests")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: 0,
  beneficiary_account_number: '',
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_routing_number: '',
  currency: '',
  message_to_recipient: '',
  originator_account_number: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_routing_number: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: '',
  recipient_account_number_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/inbound_wire_drawdown_requests');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  data: {
    amount: 0,
    beneficiary_account_number: '',
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_routing_number: '',
    currency: '',
    message_to_recipient: '',
    originator_account_number: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_routing_number: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: '',
    recipient_account_number_id: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/inbound_wire_drawdown_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"beneficiary_account_number":"","beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","beneficiary_routing_number":"","currency":"","message_to_recipient":"","originator_account_number":"","originator_address_line1":"","originator_address_line2":"","originator_address_line3":"","originator_name":"","originator_routing_number":"","originator_to_beneficiary_information_line1":"","originator_to_beneficiary_information_line2":"","originator_to_beneficiary_information_line3":"","originator_to_beneficiary_information_line4":"","recipient_account_number_id":""}'
};

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}}/simulations/inbound_wire_drawdown_requests',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": 0,\n  "beneficiary_account_number": "",\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "beneficiary_routing_number": "",\n  "currency": "",\n  "message_to_recipient": "",\n  "originator_account_number": "",\n  "originator_address_line1": "",\n  "originator_address_line2": "",\n  "originator_address_line3": "",\n  "originator_name": "",\n  "originator_routing_number": "",\n  "originator_to_beneficiary_information_line1": "",\n  "originator_to_beneficiary_information_line2": "",\n  "originator_to_beneficiary_information_line3": "",\n  "originator_to_beneficiary_information_line4": "",\n  "recipient_account_number_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/inbound_wire_drawdown_requests")
  .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/simulations/inbound_wire_drawdown_requests',
  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({
  amount: 0,
  beneficiary_account_number: '',
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_routing_number: '',
  currency: '',
  message_to_recipient: '',
  originator_account_number: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_routing_number: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: '',
  recipient_account_number_id: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/inbound_wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  body: {
    amount: 0,
    beneficiary_account_number: '',
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_routing_number: '',
    currency: '',
    message_to_recipient: '',
    originator_account_number: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_routing_number: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: '',
    recipient_account_number_id: ''
  },
  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}}/simulations/inbound_wire_drawdown_requests');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: 0,
  beneficiary_account_number: '',
  beneficiary_address_line1: '',
  beneficiary_address_line2: '',
  beneficiary_address_line3: '',
  beneficiary_name: '',
  beneficiary_routing_number: '',
  currency: '',
  message_to_recipient: '',
  originator_account_number: '',
  originator_address_line1: '',
  originator_address_line2: '',
  originator_address_line3: '',
  originator_name: '',
  originator_routing_number: '',
  originator_to_beneficiary_information_line1: '',
  originator_to_beneficiary_information_line2: '',
  originator_to_beneficiary_information_line3: '',
  originator_to_beneficiary_information_line4: '',
  recipient_account_number_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: 'POST',
  url: '{{baseUrl}}/simulations/inbound_wire_drawdown_requests',
  headers: {'content-type': 'application/json'},
  data: {
    amount: 0,
    beneficiary_account_number: '',
    beneficiary_address_line1: '',
    beneficiary_address_line2: '',
    beneficiary_address_line3: '',
    beneficiary_name: '',
    beneficiary_routing_number: '',
    currency: '',
    message_to_recipient: '',
    originator_account_number: '',
    originator_address_line1: '',
    originator_address_line2: '',
    originator_address_line3: '',
    originator_name: '',
    originator_routing_number: '',
    originator_to_beneficiary_information_line1: '',
    originator_to_beneficiary_information_line2: '',
    originator_to_beneficiary_information_line3: '',
    originator_to_beneficiary_information_line4: '',
    recipient_account_number_id: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/inbound_wire_drawdown_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"beneficiary_account_number":"","beneficiary_address_line1":"","beneficiary_address_line2":"","beneficiary_address_line3":"","beneficiary_name":"","beneficiary_routing_number":"","currency":"","message_to_recipient":"","originator_account_number":"","originator_address_line1":"","originator_address_line2":"","originator_address_line3":"","originator_name":"","originator_routing_number":"","originator_to_beneficiary_information_line1":"","originator_to_beneficiary_information_line2":"","originator_to_beneficiary_information_line3":"","originator_to_beneficiary_information_line4":"","recipient_account_number_id":""}'
};

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 = @{ @"amount": @0,
                              @"beneficiary_account_number": @"",
                              @"beneficiary_address_line1": @"",
                              @"beneficiary_address_line2": @"",
                              @"beneficiary_address_line3": @"",
                              @"beneficiary_name": @"",
                              @"beneficiary_routing_number": @"",
                              @"currency": @"",
                              @"message_to_recipient": @"",
                              @"originator_account_number": @"",
                              @"originator_address_line1": @"",
                              @"originator_address_line2": @"",
                              @"originator_address_line3": @"",
                              @"originator_name": @"",
                              @"originator_routing_number": @"",
                              @"originator_to_beneficiary_information_line1": @"",
                              @"originator_to_beneficiary_information_line2": @"",
                              @"originator_to_beneficiary_information_line3": @"",
                              @"originator_to_beneficiary_information_line4": @"",
                              @"recipient_account_number_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/inbound_wire_drawdown_requests"]
                                                       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}}/simulations/inbound_wire_drawdown_requests" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/inbound_wire_drawdown_requests",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => 0,
    'beneficiary_account_number' => '',
    'beneficiary_address_line1' => '',
    'beneficiary_address_line2' => '',
    'beneficiary_address_line3' => '',
    'beneficiary_name' => '',
    'beneficiary_routing_number' => '',
    'currency' => '',
    'message_to_recipient' => '',
    'originator_account_number' => '',
    'originator_address_line1' => '',
    'originator_address_line2' => '',
    'originator_address_line3' => '',
    'originator_name' => '',
    'originator_routing_number' => '',
    'originator_to_beneficiary_information_line1' => '',
    'originator_to_beneficiary_information_line2' => '',
    'originator_to_beneficiary_information_line3' => '',
    'originator_to_beneficiary_information_line4' => '',
    'recipient_account_number_id' => ''
  ]),
  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}}/simulations/inbound_wire_drawdown_requests', [
  'body' => '{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/inbound_wire_drawdown_requests');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => 0,
  'beneficiary_account_number' => '',
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'beneficiary_routing_number' => '',
  'currency' => '',
  'message_to_recipient' => '',
  'originator_account_number' => '',
  'originator_address_line1' => '',
  'originator_address_line2' => '',
  'originator_address_line3' => '',
  'originator_name' => '',
  'originator_routing_number' => '',
  'originator_to_beneficiary_information_line1' => '',
  'originator_to_beneficiary_information_line2' => '',
  'originator_to_beneficiary_information_line3' => '',
  'originator_to_beneficiary_information_line4' => '',
  'recipient_account_number_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => 0,
  'beneficiary_account_number' => '',
  'beneficiary_address_line1' => '',
  'beneficiary_address_line2' => '',
  'beneficiary_address_line3' => '',
  'beneficiary_name' => '',
  'beneficiary_routing_number' => '',
  'currency' => '',
  'message_to_recipient' => '',
  'originator_account_number' => '',
  'originator_address_line1' => '',
  'originator_address_line2' => '',
  'originator_address_line3' => '',
  'originator_name' => '',
  'originator_routing_number' => '',
  'originator_to_beneficiary_information_line1' => '',
  'originator_to_beneficiary_information_line2' => '',
  'originator_to_beneficiary_information_line3' => '',
  'originator_to_beneficiary_information_line4' => '',
  'recipient_account_number_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/inbound_wire_drawdown_requests');
$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}}/simulations/inbound_wire_drawdown_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/inbound_wire_drawdown_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/inbound_wire_drawdown_requests", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/inbound_wire_drawdown_requests"

payload = {
    "amount": 0,
    "beneficiary_account_number": "",
    "beneficiary_address_line1": "",
    "beneficiary_address_line2": "",
    "beneficiary_address_line3": "",
    "beneficiary_name": "",
    "beneficiary_routing_number": "",
    "currency": "",
    "message_to_recipient": "",
    "originator_account_number": "",
    "originator_address_line1": "",
    "originator_address_line2": "",
    "originator_address_line3": "",
    "originator_name": "",
    "originator_routing_number": "",
    "originator_to_beneficiary_information_line1": "",
    "originator_to_beneficiary_information_line2": "",
    "originator_to_beneficiary_information_line3": "",
    "originator_to_beneficiary_information_line4": "",
    "recipient_account_number_id": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/inbound_wire_drawdown_requests"

payload <- "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\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}}/simulations/inbound_wire_drawdown_requests")

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  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\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/simulations/inbound_wire_drawdown_requests') do |req|
  req.body = "{\n  \"amount\": 0,\n  \"beneficiary_account_number\": \"\",\n  \"beneficiary_address_line1\": \"\",\n  \"beneficiary_address_line2\": \"\",\n  \"beneficiary_address_line3\": \"\",\n  \"beneficiary_name\": \"\",\n  \"beneficiary_routing_number\": \"\",\n  \"currency\": \"\",\n  \"message_to_recipient\": \"\",\n  \"originator_account_number\": \"\",\n  \"originator_address_line1\": \"\",\n  \"originator_address_line2\": \"\",\n  \"originator_address_line3\": \"\",\n  \"originator_name\": \"\",\n  \"originator_routing_number\": \"\",\n  \"originator_to_beneficiary_information_line1\": \"\",\n  \"originator_to_beneficiary_information_line2\": \"\",\n  \"originator_to_beneficiary_information_line3\": \"\",\n  \"originator_to_beneficiary_information_line4\": \"\",\n  \"recipient_account_number_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/inbound_wire_drawdown_requests";

    let payload = json!({
        "amount": 0,
        "beneficiary_account_number": "",
        "beneficiary_address_line1": "",
        "beneficiary_address_line2": "",
        "beneficiary_address_line3": "",
        "beneficiary_name": "",
        "beneficiary_routing_number": "",
        "currency": "",
        "message_to_recipient": "",
        "originator_account_number": "",
        "originator_address_line1": "",
        "originator_address_line2": "",
        "originator_address_line3": "",
        "originator_name": "",
        "originator_routing_number": "",
        "originator_to_beneficiary_information_line1": "",
        "originator_to_beneficiary_information_line2": "",
        "originator_to_beneficiary_information_line3": "",
        "originator_to_beneficiary_information_line4": "",
        "recipient_account_number_id": ""
    });

    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}}/simulations/inbound_wire_drawdown_requests \
  --header 'content-type: application/json' \
  --data '{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}'
echo '{
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/inbound_wire_drawdown_requests \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": 0,\n  "beneficiary_account_number": "",\n  "beneficiary_address_line1": "",\n  "beneficiary_address_line2": "",\n  "beneficiary_address_line3": "",\n  "beneficiary_name": "",\n  "beneficiary_routing_number": "",\n  "currency": "",\n  "message_to_recipient": "",\n  "originator_account_number": "",\n  "originator_address_line1": "",\n  "originator_address_line2": "",\n  "originator_address_line3": "",\n  "originator_name": "",\n  "originator_routing_number": "",\n  "originator_to_beneficiary_information_line1": "",\n  "originator_to_beneficiary_information_line2": "",\n  "originator_to_beneficiary_information_line3": "",\n  "originator_to_beneficiary_information_line4": "",\n  "recipient_account_number_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/inbound_wire_drawdown_requests
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": 0,
  "beneficiary_account_number": "",
  "beneficiary_address_line1": "",
  "beneficiary_address_line2": "",
  "beneficiary_address_line3": "",
  "beneficiary_name": "",
  "beneficiary_routing_number": "",
  "currency": "",
  "message_to_recipient": "",
  "originator_account_number": "",
  "originator_address_line1": "",
  "originator_address_line2": "",
  "originator_address_line3": "",
  "originator_name": "",
  "originator_routing_number": "",
  "originator_to_beneficiary_information_line1": "",
  "originator_to_beneficiary_information_line2": "",
  "originator_to_beneficiary_information_line3": "",
  "originator_to_beneficiary_information_line4": "",
  "recipient_account_number_id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/inbound_wire_drawdown_requests")! 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

{
  "amount": 10000,
  "beneficiary_account_number": "987654321",
  "beneficiary_address_line1": "33 Liberty Street",
  "beneficiary_address_line2": "New York, NY, 10045",
  "beneficiary_address_line3": null,
  "beneficiary_name": "Ian Crease",
  "beneficiary_routing_number": "101050001",
  "currency": "USD",
  "id": "inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e",
  "message_to_recipient": "Invoice 29582",
  "originator_account_number": "987654321",
  "originator_address_line1": "33 Liberty Street",
  "originator_address_line2": "New York, NY, 10045",
  "originator_address_line3": null,
  "originator_name": "Ian Crease",
  "originator_routing_number": "101050001",
  "originator_to_beneficiary_information_line1": null,
  "originator_to_beneficiary_information_line2": null,
  "originator_to_beneficiary_information_line3": null,
  "originator_to_beneficiary_information_line4": null,
  "recipient_account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
  "type": "inbound_wire_drawdown_request"
}
POST Simulate an authorization on a Card
{{baseUrl}}/simulations/card_authorizations
BODY json

{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/card_authorizations");

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  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/card_authorizations" {:content-type :json
                                                                            :form-params {:amount 0
                                                                                          :card_id ""
                                                                                          :digital_wallet_token_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/card_authorizations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\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}}/simulations/card_authorizations"),
    Content = new StringContent("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\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}}/simulations/card_authorizations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/card_authorizations"

	payload := strings.NewReader("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\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/simulations/card_authorizations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 67

{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/card_authorizations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/card_authorizations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/card_authorizations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/card_authorizations")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: 0,
  card_id: '',
  digital_wallet_token_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/card_authorizations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_authorizations',
  headers: {'content-type': 'application/json'},
  data: {amount: 0, card_id: '', digital_wallet_token_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/card_authorizations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"card_id":"","digital_wallet_token_id":""}'
};

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}}/simulations/card_authorizations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": 0,\n  "card_id": "",\n  "digital_wallet_token_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/card_authorizations")
  .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/simulations/card_authorizations',
  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({amount: 0, card_id: '', digital_wallet_token_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_authorizations',
  headers: {'content-type': 'application/json'},
  body: {amount: 0, card_id: '', digital_wallet_token_id: ''},
  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}}/simulations/card_authorizations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: 0,
  card_id: '',
  digital_wallet_token_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: 'POST',
  url: '{{baseUrl}}/simulations/card_authorizations',
  headers: {'content-type': 'application/json'},
  data: {amount: 0, card_id: '', digital_wallet_token_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/card_authorizations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"card_id":"","digital_wallet_token_id":""}'
};

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 = @{ @"amount": @0,
                              @"card_id": @"",
                              @"digital_wallet_token_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/card_authorizations"]
                                                       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}}/simulations/card_authorizations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/card_authorizations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => 0,
    'card_id' => '',
    'digital_wallet_token_id' => ''
  ]),
  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}}/simulations/card_authorizations', [
  'body' => '{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/card_authorizations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => 0,
  'card_id' => '',
  'digital_wallet_token_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => 0,
  'card_id' => '',
  'digital_wallet_token_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/card_authorizations');
$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}}/simulations/card_authorizations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/card_authorizations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/card_authorizations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/card_authorizations"

payload = {
    "amount": 0,
    "card_id": "",
    "digital_wallet_token_id": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/card_authorizations"

payload <- "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\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}}/simulations/card_authorizations")

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  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\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/simulations/card_authorizations') do |req|
  req.body = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"digital_wallet_token_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/card_authorizations";

    let payload = json!({
        "amount": 0,
        "card_id": "",
        "digital_wallet_token_id": ""
    });

    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}}/simulations/card_authorizations \
  --header 'content-type: application/json' \
  --data '{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}'
echo '{
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/card_authorizations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": 0,\n  "card_id": "",\n  "digital_wallet_token_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/card_authorizations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": 0,
  "card_id": "",
  "digital_wallet_token_id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/card_authorizations")! 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

{
  "declined_transaction": null,
  "pending_transaction": {
    "account_id": "account_in71c4amph0vgo2qllky",
    "amount": 100,
    "created_at": "2020-01-31T23:59:59Z",
    "currency": "USD",
    "description": "Frederick S. Holmes",
    "id": "pending_transaction_k1sfetcau2qbvjbzgju4",
    "route_id": "card_route_jk5pd79u6ydmbf9qzu6i",
    "route_type": "transfer_instruction",
    "source": {
      "card_authorization": {
        "amount": 100,
        "currency": "USD",
        "digital_wallet_token_id": null,
        "merchant_acceptor_id": "5665270011000168",
        "merchant_category_code": "5734",
        "merchant_city": "New York",
        "merchant_country": "US",
        "merchant_descriptor": "AMAZON.COM",
        "network": "visa",
        "network_details": {
          "visa": {
            "electronic_commerce_indicator": "secure_electronic_commerce",
            "point_of_service_entry_mode": "manual"
          }
        },
        "real_time_decision_id": null
      },
      "category": "card_authorization"
    },
    "status": "pending",
    "type": "pending_transaction"
  },
  "type": "inbound_card_authorization_simulation_result"
}
POST Simulate digital wallet provisioning for a card
{{baseUrl}}/simulations/digital_wallet_token_requests
BODY json

{
  "card_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/digital_wallet_token_requests");

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  \"card_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/digital_wallet_token_requests" {:content-type :json
                                                                                      :form-params {:card_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/digital_wallet_token_requests"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"card_id\": \"\"\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}}/simulations/digital_wallet_token_requests"),
    Content = new StringContent("{\n  \"card_id\": \"\"\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}}/simulations/digital_wallet_token_requests");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"card_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/digital_wallet_token_requests"

	payload := strings.NewReader("{\n  \"card_id\": \"\"\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/simulations/digital_wallet_token_requests HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "card_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/digital_wallet_token_requests")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"card_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/digital_wallet_token_requests"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"card_id\": \"\"\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  \"card_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/digital_wallet_token_requests")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/digital_wallet_token_requests")
  .header("content-type", "application/json")
  .body("{\n  \"card_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  card_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/digital_wallet_token_requests');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/digital_wallet_token_requests',
  headers: {'content-type': 'application/json'},
  data: {card_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/digital_wallet_token_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_id":""}'
};

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}}/simulations/digital_wallet_token_requests',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "card_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"card_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/digital_wallet_token_requests")
  .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/simulations/digital_wallet_token_requests',
  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({card_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/digital_wallet_token_requests',
  headers: {'content-type': 'application/json'},
  body: {card_id: ''},
  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}}/simulations/digital_wallet_token_requests');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  card_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: 'POST',
  url: '{{baseUrl}}/simulations/digital_wallet_token_requests',
  headers: {'content-type': 'application/json'},
  data: {card_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/digital_wallet_token_requests';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_id":""}'
};

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 = @{ @"card_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/digital_wallet_token_requests"]
                                                       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}}/simulations/digital_wallet_token_requests" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"card_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/digital_wallet_token_requests",
  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([
    'card_id' => ''
  ]),
  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}}/simulations/digital_wallet_token_requests', [
  'body' => '{
  "card_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/digital_wallet_token_requests');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'card_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'card_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/digital_wallet_token_requests');
$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}}/simulations/digital_wallet_token_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/digital_wallet_token_requests' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"card_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/digital_wallet_token_requests", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/digital_wallet_token_requests"

payload = { "card_id": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/digital_wallet_token_requests"

payload <- "{\n  \"card_id\": \"\"\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}}/simulations/digital_wallet_token_requests")

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  \"card_id\": \"\"\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/simulations/digital_wallet_token_requests') do |req|
  req.body = "{\n  \"card_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/digital_wallet_token_requests";

    let payload = json!({"card_id": ""});

    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}}/simulations/digital_wallet_token_requests \
  --header 'content-type: application/json' \
  --data '{
  "card_id": ""
}'
echo '{
  "card_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/digital_wallet_token_requests \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "card_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/digital_wallet_token_requests
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["card_id": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/digital_wallet_token_requests")! 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

{
  "decline_reason": null,
  "digital_wallet_token_id": "digital_wallet_token_izi62go3h51p369jrie0",
  "type": "inbound_digital_wallet_token_request_simulation_result"
}
POST Simulate settling a card authorization
{{baseUrl}}/simulations/card_settlements
BODY json

{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/card_settlements");

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  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/card_settlements" {:content-type :json
                                                                         :form-params {:amount 0
                                                                                       :card_id ""
                                                                                       :pending_transaction_id ""}})
require "http/client"

url = "{{baseUrl}}/simulations/card_settlements"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\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}}/simulations/card_settlements"),
    Content = new StringContent("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\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}}/simulations/card_settlements");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/card_settlements"

	payload := strings.NewReader("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\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/simulations/card_settlements HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/card_settlements")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/card_settlements"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/card_settlements")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/card_settlements")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: 0,
  card_id: '',
  pending_transaction_id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/card_settlements');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_settlements',
  headers: {'content-type': 'application/json'},
  data: {amount: 0, card_id: '', pending_transaction_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/card_settlements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"card_id":"","pending_transaction_id":""}'
};

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}}/simulations/card_settlements',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": 0,\n  "card_id": "",\n  "pending_transaction_id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/card_settlements")
  .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/simulations/card_settlements',
  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({amount: 0, card_id: '', pending_transaction_id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_settlements',
  headers: {'content-type': 'application/json'},
  body: {amount: 0, card_id: '', pending_transaction_id: ''},
  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}}/simulations/card_settlements');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: 0,
  card_id: '',
  pending_transaction_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: 'POST',
  url: '{{baseUrl}}/simulations/card_settlements',
  headers: {'content-type': 'application/json'},
  data: {amount: 0, card_id: '', pending_transaction_id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/card_settlements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":0,"card_id":"","pending_transaction_id":""}'
};

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 = @{ @"amount": @0,
                              @"card_id": @"",
                              @"pending_transaction_id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/card_settlements"]
                                                       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}}/simulations/card_settlements" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/card_settlements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => 0,
    'card_id' => '',
    'pending_transaction_id' => ''
  ]),
  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}}/simulations/card_settlements', [
  'body' => '{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/card_settlements');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => 0,
  'card_id' => '',
  'pending_transaction_id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => 0,
  'card_id' => '',
  'pending_transaction_id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/card_settlements');
$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}}/simulations/card_settlements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/card_settlements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/card_settlements", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/card_settlements"

payload = {
    "amount": 0,
    "card_id": "",
    "pending_transaction_id": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/card_settlements"

payload <- "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\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}}/simulations/card_settlements")

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  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\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/simulations/card_settlements') do |req|
  req.body = "{\n  \"amount\": 0,\n  \"card_id\": \"\",\n  \"pending_transaction_id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/card_settlements";

    let payload = json!({
        "amount": 0,
        "card_id": "",
        "pending_transaction_id": ""
    });

    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}}/simulations/card_settlements \
  --header 'content-type: application/json' \
  --data '{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}'
echo '{
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
}' |  \
  http POST {{baseUrl}}/simulations/card_settlements \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": 0,\n  "card_id": "",\n  "pending_transaction_id": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/card_settlements
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": 0,
  "card_id": "",
  "pending_transaction_id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/card_settlements")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 100,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "Frederick S. Holmes",
  "id": "transaction_uyrp7fld2ium70oa7oi",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "category": "inbound_ach_transfer",
    "inbound_ach_transfer": {
      "amount": 100,
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_entry_description": "RESERVE",
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022"
    }
  },
  "type": "transaction"
}
POST Simulates advancing the state of a card dispute
{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action
QUERY PARAMS

card_dispute_id
BODY json

{
  "explanation": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action");

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  \"explanation\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action" {:content-type :json
                                                                                              :form-params {:explanation ""
                                                                                                            :status ""}})
require "http/client"

url = "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"explanation\": \"\",\n  \"status\": \"\"\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}}/simulations/card_disputes/:card_dispute_id/action"),
    Content = new StringContent("{\n  \"explanation\": \"\",\n  \"status\": \"\"\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}}/simulations/card_disputes/:card_dispute_id/action");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"

	payload := strings.NewReader("{\n  \"explanation\": \"\",\n  \"status\": \"\"\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/simulations/card_disputes/:card_dispute_id/action HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 39

{
  "explanation": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"explanation\": \"\",\n  \"status\": \"\"\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  \"explanation\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action")
  .header("content-type", "application/json")
  .body("{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  explanation: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action',
  headers: {'content-type': 'application/json'},
  data: {explanation: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"explanation":"","status":""}'
};

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}}/simulations/card_disputes/:card_dispute_id/action',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "explanation": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action")
  .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/simulations/card_disputes/:card_dispute_id/action',
  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({explanation: '', status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action',
  headers: {'content-type': 'application/json'},
  body: {explanation: '', status: ''},
  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}}/simulations/card_disputes/:card_dispute_id/action');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  explanation: '',
  status: ''
});

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}}/simulations/card_disputes/:card_dispute_id/action',
  headers: {'content-type': 'application/json'},
  data: {explanation: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"explanation":"","status":""}'
};

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 = @{ @"explanation": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"]
                                                       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}}/simulations/card_disputes/:card_dispute_id/action" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action",
  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([
    'explanation' => '',
    'status' => ''
  ]),
  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}}/simulations/card_disputes/:card_dispute_id/action', [
  'body' => '{
  "explanation": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'explanation' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'explanation' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action');
$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}}/simulations/card_disputes/:card_dispute_id/action' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "explanation": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "explanation": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/simulations/card_disputes/:card_dispute_id/action", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"

payload = {
    "explanation": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action"

payload <- "{\n  \"explanation\": \"\",\n  \"status\": \"\"\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}}/simulations/card_disputes/:card_dispute_id/action")

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  \"explanation\": \"\",\n  \"status\": \"\"\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/simulations/card_disputes/:card_dispute_id/action') do |req|
  req.body = "{\n  \"explanation\": \"\",\n  \"status\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action";

    let payload = json!({
        "explanation": "",
        "status": ""
    });

    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}}/simulations/card_disputes/:card_dispute_id/action \
  --header 'content-type: application/json' \
  --data '{
  "explanation": "",
  "status": ""
}'
echo '{
  "explanation": "",
  "status": ""
}' |  \
  http POST {{baseUrl}}/simulations/card_disputes/:card_dispute_id/action \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "explanation": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/simulations/card_disputes/:card_dispute_id/action
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "explanation": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/card_disputes/:card_dispute_id/action")! 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

{
  "acceptance": null,
  "created_at": "2020-01-31T23:59:59Z",
  "disputed_transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "explanation": "Unauthorized recurring purchase",
  "id": "card_dispute_h9sc95nbl1cgltpp7men",
  "rejection": null,
  "status": "pending_reviewing",
  "type": "card_dispute"
}
POST Submit a Sandbox ACH Transfer
{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit
QUERY PARAMS

ach_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")
require "http/client"

url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit"

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}}/simulations/ach_transfers/:ach_transfer_id/submit"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit"

	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/simulations/ach_transfers/:ach_transfer_id/submit HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit"))
    .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}}/simulations/ach_transfers/:ach_transfer_id/submit")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")
  .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}}/simulations/ach_transfers/:ach_transfer_id/submit');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit';
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}}/simulations/ach_transfers/:ach_transfer_id/submit',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/ach_transfers/:ach_transfer_id/submit',
  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}}/simulations/ach_transfers/:ach_transfer_id/submit'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit');

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}}/simulations/ach_transfers/:ach_transfer_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit';
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}}/simulations/ach_transfers/:ach_transfer_id/submit"]
                                                       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}}/simulations/ach_transfers/:ach_transfer_id/submit" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit",
  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}}/simulations/ach_transfers/:ach_transfer_id/submit');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/ach_transfers/:ach_transfer_id/submit")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")

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/simulations/ach_transfers/:ach_transfer_id/submit') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit";

    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}}/simulations/ach_transfers/:ach_transfer_id/submit
http POST {{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/ach_transfers/:ach_transfer_id/submit")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "addendum": null,
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "cancellation": null,
  "company_descriptive_date": null,
  "company_discretionary_data": null,
  "company_entry_description": null,
  "company_name": "National Phonograph Company",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "funding": "checking",
  "id": "ach_transfer_uoxatyh3lt5evrsdvo7q",
  "individual_id": null,
  "individual_name": "Ian Crease",
  "network": "ach",
  "notification_of_change": null,
  "return": null,
  "routing_number": "101050001",
  "standard_entry_class_code": "corporate_credit_or_debit",
  "statement_descriptor": "Statement descriptor",
  "status": "returned",
  "submission": {
    "submitted_at": "2020-01-31T23:59:59Z",
    "trace_number": "058349238292834"
  },
  "template_id": "ach_transfer_template_wofoi8uhkjzi5rubh3kt",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "ach_transfer"
}
POST Submit a Sandbox Check Deposit
{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit
QUERY PARAMS

check_deposit_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")
require "http/client"

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit"

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}}/simulations/check_deposits/:check_deposit_id/submit"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit"

	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/simulations/check_deposits/:check_deposit_id/submit HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit"))
    .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}}/simulations/check_deposits/:check_deposit_id/submit")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")
  .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}}/simulations/check_deposits/:check_deposit_id/submit');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit';
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}}/simulations/check_deposits/:check_deposit_id/submit',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/check_deposits/:check_deposit_id/submit',
  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}}/simulations/check_deposits/:check_deposit_id/submit'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit');

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}}/simulations/check_deposits/:check_deposit_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit';
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}}/simulations/check_deposits/:check_deposit_id/submit"]
                                                       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}}/simulations/check_deposits/:check_deposit_id/submit" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit",
  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}}/simulations/check_deposits/:check_deposit_id/submit');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/check_deposits/:check_deposit_id/submit")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")

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/simulations/check_deposits/:check_deposit_id/submit') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit";

    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}}/simulations/check_deposits/:check_deposit_id/submit
http POST {{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/check_deposits/:check_deposit_id/submit")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1000,
  "back_image_file_id": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "deposit_acceptance": null,
  "deposit_rejection": null,
  "deposit_return": null,
  "front_image_file_id": "file_makxrc67oh9l6sg7w9yc",
  "id": "check_deposit_f06n9gpg7sxn8t19lfc1",
  "status": "submitted",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "check_deposit"
}
POST Submit a Sandbox Wire Transfer
{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit
QUERY PARAMS

wire_transfer_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")
require "http/client"

url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit"

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}}/simulations/wire_transfers/:wire_transfer_id/submit"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit"

	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/simulations/wire_transfers/:wire_transfer_id/submit HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit"))
    .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}}/simulations/wire_transfers/:wire_transfer_id/submit")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")
  .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}}/simulations/wire_transfers/:wire_transfer_id/submit');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit';
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}}/simulations/wire_transfers/:wire_transfer_id/submit',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/simulations/wire_transfers/:wire_transfer_id/submit',
  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}}/simulations/wire_transfers/:wire_transfer_id/submit'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit');

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}}/simulations/wire_transfers/:wire_transfer_id/submit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit';
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}}/simulations/wire_transfers/:wire_transfer_id/submit"]
                                                       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}}/simulations/wire_transfers/:wire_transfer_id/submit" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit",
  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}}/simulations/wire_transfers/:wire_transfer_id/submit');

echo $response->getBody();
setUrl('{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/simulations/wire_transfers/:wire_transfer_id/submit")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")

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/simulations/wire_transfers/:wire_transfer_id/submit') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit";

    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}}/simulations/wire_transfers/:wire_transfer_id/submit
http POST {{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/simulations/wire_transfers/:wire_transfer_id/submit")! 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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "amount": 100,
  "approval": {
    "approved_at": "2020-01-31T23:59:59Z"
  },
  "beneficiary_address_line1": null,
  "beneficiary_address_line2": null,
  "beneficiary_address_line3": null,
  "beneficiary_financial_institution_address_line1": null,
  "beneficiary_financial_institution_address_line2": null,
  "beneficiary_financial_institution_address_line3": null,
  "beneficiary_financial_institution_identifier": null,
  "beneficiary_financial_institution_identifier_type": null,
  "beneficiary_financial_institution_name": null,
  "beneficiary_name": null,
  "cancellation": null,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "external_account_id": "external_account_ukk55lr923a3ac0pp7iv",
  "id": "wire_transfer_5akynk7dqsq25qwk9q2u",
  "message_to_recipient": "Message to recipient",
  "network": "wire",
  "reversal": null,
  "routing_number": "101050001",
  "status": "complete",
  "submission": null,
  "template_id": "wire_transfer_template_1brjk98vuwdd2er5o5sy",
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi",
  "type": "wire_transfer"
}
PATCH Update a Card
{{baseUrl}}/cards/:card_id
QUERY PARAMS

card_id
BODY json

{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/cards/:card_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  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/cards/:card_id" {:content-type :json
                                                            :form-params {:billing_address {:city ""
                                                                                            :line1 ""
                                                                                            :line2 ""
                                                                                            :postal_code ""
                                                                                            :state ""}
                                                                          :description ""
                                                                          :digital_wallet {:card_profile_id ""
                                                                                           :email ""
                                                                                           :phone ""}
                                                                          :status ""}})
require "http/client"

url = "{{baseUrl}}/cards/:card_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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}}/cards/:card_id"),
    Content = new StringContent("{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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}}/cards/:card_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/cards/:card_id"

	payload := strings.NewReader("{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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/cards/:card_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 243

{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/cards/:card_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cards/:card_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cards/:card_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/cards/:card_id")
  .header("content-type", "application/json")
  .body("{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  billing_address: {
    city: '',
    line1: '',
    line2: '',
    postal_code: '',
    state: ''
  },
  description: '',
  digital_wallet: {
    card_profile_id: '',
    email: '',
    phone: ''
  },
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/cards/:card_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/cards/:card_id',
  headers: {'content-type': 'application/json'},
  data: {
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''},
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cards/:card_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billing_address":{"city":"","line1":"","line2":"","postal_code":"","state":""},"description":"","digital_wallet":{"card_profile_id":"","email":"","phone":""},"status":""}'
};

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}}/cards/:card_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billing_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "postal_code": "",\n    "state": ""\n  },\n  "description": "",\n  "digital_wallet": {\n    "card_profile_id": "",\n    "email": "",\n    "phone": ""\n  },\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cards/:card_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/cards/:card_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({
  billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
  description: '',
  digital_wallet: {card_profile_id: '', email: '', phone: ''},
  status: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/cards/:card_id',
  headers: {'content-type': 'application/json'},
  body: {
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''},
    status: ''
  },
  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}}/cards/:card_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billing_address: {
    city: '',
    line1: '',
    line2: '',
    postal_code: '',
    state: ''
  },
  description: '',
  digital_wallet: {
    card_profile_id: '',
    email: '',
    phone: ''
  },
  status: ''
});

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}}/cards/:card_id',
  headers: {'content-type': 'application/json'},
  data: {
    billing_address: {city: '', line1: '', line2: '', postal_code: '', state: ''},
    description: '',
    digital_wallet: {card_profile_id: '', email: '', phone: ''},
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/cards/:card_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billing_address":{"city":"","line1":"","line2":"","postal_code":"","state":""},"description":"","digital_wallet":{"card_profile_id":"","email":"","phone":""},"status":""}'
};

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 = @{ @"billing_address": @{ @"city": @"", @"line1": @"", @"line2": @"", @"postal_code": @"", @"state": @"" },
                              @"description": @"",
                              @"digital_wallet": @{ @"card_profile_id": @"", @"email": @"", @"phone": @"" },
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cards/:card_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}}/cards/:card_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cards/:card_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([
    'billing_address' => [
        'city' => '',
        'line1' => '',
        'line2' => '',
        'postal_code' => '',
        'state' => ''
    ],
    'description' => '',
    'digital_wallet' => [
        'card_profile_id' => '',
        'email' => '',
        'phone' => ''
    ],
    'status' => ''
  ]),
  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}}/cards/:card_id', [
  'body' => '{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/cards/:card_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billing_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'postal_code' => '',
    'state' => ''
  ],
  'description' => '',
  'digital_wallet' => [
    'card_profile_id' => '',
    'email' => '',
    'phone' => ''
  ],
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billing_address' => [
    'city' => '',
    'line1' => '',
    'line2' => '',
    'postal_code' => '',
    'state' => ''
  ],
  'description' => '',
  'digital_wallet' => [
    'card_profile_id' => '',
    'email' => '',
    'phone' => ''
  ],
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/cards/:card_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}}/cards/:card_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cards/:card_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/cards/:card_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/cards/:card_id"

payload = {
    "billing_address": {
        "city": "",
        "line1": "",
        "line2": "",
        "postal_code": "",
        "state": ""
    },
    "description": "",
    "digital_wallet": {
        "card_profile_id": "",
        "email": "",
        "phone": ""
    },
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/cards/:card_id"

payload <- "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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}}/cards/:card_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  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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/cards/:card_id') do |req|
  req.body = "{\n  \"billing_address\": {\n    \"city\": \"\",\n    \"line1\": \"\",\n    \"line2\": \"\",\n    \"postal_code\": \"\",\n    \"state\": \"\"\n  },\n  \"description\": \"\",\n  \"digital_wallet\": {\n    \"card_profile_id\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n  },\n  \"status\": \"\"\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}}/cards/:card_id";

    let payload = json!({
        "billing_address": json!({
            "city": "",
            "line1": "",
            "line2": "",
            "postal_code": "",
            "state": ""
        }),
        "description": "",
        "digital_wallet": json!({
            "card_profile_id": "",
            "email": "",
            "phone": ""
        }),
        "status": ""
    });

    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}}/cards/:card_id \
  --header 'content-type: application/json' \
  --data '{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}'
echo '{
  "billing_address": {
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  },
  "description": "",
  "digital_wallet": {
    "card_profile_id": "",
    "email": "",
    "phone": ""
  },
  "status": ""
}' |  \
  http PATCH {{baseUrl}}/cards/:card_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "billing_address": {\n    "city": "",\n    "line1": "",\n    "line2": "",\n    "postal_code": "",\n    "state": ""\n  },\n  "description": "",\n  "digital_wallet": {\n    "card_profile_id": "",\n    "email": "",\n    "phone": ""\n  },\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/cards/:card_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billing_address": [
    "city": "",
    "line1": "",
    "line2": "",
    "postal_code": "",
    "state": ""
  ],
  "description": "",
  "digital_wallet": [
    "card_profile_id": "",
    "email": "",
    "phone": ""
  ],
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/cards/:card_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "billing_address": {
    "city": "New York",
    "line1": "33 Liberty Street",
    "line2": null,
    "postal_code": "10045",
    "state": "NY"
  },
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Office Expenses",
  "digital_wallet": {
    "card_profile_id": "card_profile_cox5y73lob2eqly18piy",
    "email": "user@example.com",
    "phone": "+15551234567"
  },
  "expiration_month": 11,
  "expiration_year": 2028,
  "id": "card_oubs0hwk5rn6knuecxg2",
  "last4": "4242",
  "replacement": {
    "replaced_by_card_id": null,
    "replaced_card_id": null
  },
  "status": "active",
  "type": "card"
}
PATCH Update a Limit
{{baseUrl}}/limits/:limit_id
QUERY PARAMS

limit_id
BODY json

{
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/limits/:limit_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  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/limits/:limit_id" {:content-type :json
                                                              :form-params {:status ""}})
require "http/client"

url = "{{baseUrl}}/limits/:limit_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"status\": \"\"\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}}/limits/:limit_id"),
    Content = new StringContent("{\n  \"status\": \"\"\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}}/limits/:limit_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/limits/:limit_id"

	payload := strings.NewReader("{\n  \"status\": \"\"\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/limits/:limit_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 18

{
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/limits/:limit_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/limits/:limit_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"status\": \"\"\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  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/limits/:limit_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/limits/:limit_id")
  .header("content-type", "application/json")
  .body("{\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/limits/:limit_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/limits/:limit_id',
  headers: {'content-type': 'application/json'},
  data: {status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/limits/:limit_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"status":""}'
};

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}}/limits/:limit_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/limits/:limit_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/limits/:limit_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({status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/limits/:limit_id',
  headers: {'content-type': 'application/json'},
  body: {status: ''},
  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}}/limits/:limit_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  status: ''
});

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}}/limits/:limit_id',
  headers: {'content-type': 'application/json'},
  data: {status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/limits/:limit_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"status":""}'
};

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 = @{ @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/limits/:limit_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}}/limits/:limit_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/limits/:limit_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([
    'status' => ''
  ]),
  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}}/limits/:limit_id', [
  'body' => '{
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/limits/:limit_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/limits/:limit_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}}/limits/:limit_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/limits/:limit_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/limits/:limit_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/limits/:limit_id"

payload = { "status": "" }
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/limits/:limit_id"

payload <- "{\n  \"status\": \"\"\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}}/limits/:limit_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  \"status\": \"\"\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/limits/:limit_id') do |req|
  req.body = "{\n  \"status\": \"\"\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}}/limits/:limit_id";

    let payload = json!({"status": ""});

    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}}/limits/:limit_id \
  --header 'content-type: application/json' \
  --data '{
  "status": ""
}'
echo '{
  "status": ""
}' |  \
  http PATCH {{baseUrl}}/limits/:limit_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/limits/:limit_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["status": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/limits/:limit_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": "limit_fku42k0qtc8ulsuas38q",
  "interval": "month",
  "metric": "volume",
  "model_id": "account_number_v18nkfqm6afpsrvy82b2",
  "model_type": "account_number",
  "status": "active",
  "type": "limit",
  "value": 0
}
PATCH Update an Account Number
{{baseUrl}}/account_numbers/:account_number_id
QUERY PARAMS

account_number_id
BODY json

{
  "name": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/account_numbers/:account_number_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  \"name\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/account_numbers/:account_number_id" {:content-type :json
                                                                                :form-params {:name ""
                                                                                              :status ""}})
require "http/client"

url = "{{baseUrl}}/account_numbers/:account_number_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"status\": \"\"\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}}/account_numbers/:account_number_id"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"status\": \"\"\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}}/account_numbers/:account_number_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/account_numbers/:account_number_id"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"status\": \"\"\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/account_numbers/:account_number_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 32

{
  "name": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/account_numbers/:account_number_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/account_numbers/:account_number_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"status\": \"\"\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  \"name\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/account_numbers/:account_number_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/account_numbers/:account_number_id")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/account_numbers/:account_number_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/account_numbers/:account_number_id',
  headers: {'content-type': 'application/json'},
  data: {name: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/account_numbers/:account_number_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","status":""}'
};

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}}/account_numbers/:account_number_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/account_numbers/:account_number_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/account_numbers/:account_number_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({name: '', status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/account_numbers/:account_number_id',
  headers: {'content-type': 'application/json'},
  body: {name: '', status: ''},
  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}}/account_numbers/:account_number_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  name: '',
  status: ''
});

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}}/account_numbers/:account_number_id',
  headers: {'content-type': 'application/json'},
  data: {name: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/account_numbers/:account_number_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","status":""}'
};

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 = @{ @"name": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/account_numbers/:account_number_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([
    'name' => '',
    'status' => ''
  ]),
  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}}/account_numbers/:account_number_id', [
  'body' => '{
  "name": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/account_numbers/:account_number_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/account_numbers/:account_number_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}}/account_numbers/:account_number_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/account_numbers/:account_number_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"name\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/account_numbers/:account_number_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/account_numbers/:account_number_id"

payload = {
    "name": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/account_numbers/:account_number_id"

payload <- "{\n  \"name\": \"\",\n  \"status\": \"\"\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}}/account_numbers/:account_number_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  \"name\": \"\",\n  \"status\": \"\"\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/account_numbers/:account_number_id') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"status\": \"\"\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}}/account_numbers/:account_number_id";

    let payload = json!({
        "name": "",
        "status": ""
    });

    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}}/account_numbers/:account_number_id \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "status": ""
}'
echo '{
  "name": "",
  "status": ""
}' |  \
  http PATCH {{baseUrl}}/account_numbers/:account_number_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/account_numbers/:account_number_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/account_numbers/:account_number_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

{
  "account_id": "account_in71c4amph0vgo2qllky",
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "id": "account_number_v18nkfqm6afpsrvy82b2",
  "name": "ACH",
  "replacement": {
    "replaced_account_number_id": null,
    "replaced_by_account_number_id": null
  },
  "routing_number": "101050001",
  "status": "active",
  "type": "account_number"
}
PATCH Update an Account
{{baseUrl}}/accounts/:account_id
QUERY PARAMS

account_id
BODY json

{
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account_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  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/accounts/:account_id" {:content-type :json
                                                                  :form-params {:name ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:account_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\"\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}}/accounts/:account_id"),
    Content = new StringContent("{\n  \"name\": \"\"\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}}/accounts/:account_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account_id"

	payload := strings.NewReader("{\n  \"name\": \"\"\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/accounts/:account_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 16

{
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/accounts/:account_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\"\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  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/accounts/:account_id")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/accounts/:account_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:account_id',
  headers: {'content-type': 'application/json'},
  data: {name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":""}'
};

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}}/accounts/:account_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account_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/accounts/:account_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({name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:account_id',
  headers: {'content-type': 'application/json'},
  body: {name: ''},
  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}}/accounts/:account_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  name: ''
});

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}}/accounts/:account_id',
  headers: {'content-type': 'application/json'},
  data: {name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":""}'
};

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 = @{ @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account_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}}/accounts/:account_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account_id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => ''
  ]),
  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}}/accounts/:account_id', [
  'body' => '{
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:account_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}}/accounts/:account_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/accounts/:account_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account_id"

payload = { "name": "" }
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account_id"

payload <- "{\n  \"name\": \"\"\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}}/accounts/:account_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  \"name\": \"\"\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/accounts/:account_id') do |req|
  req.body = "{\n  \"name\": \"\"\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}}/accounts/:account_id";

    let payload = json!({"name": ""});

    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}}/accounts/:account_id \
  --header 'content-type: application/json' \
  --data '{
  "name": ""
}'
echo '{
  "name": ""
}' |  \
  http PATCH {{baseUrl}}/accounts/:account_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:account_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["name": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account_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

{
  "balances": {
    "available_balance": 100,
    "current_balance": 100
  },
  "bank": "first_internet_bank",
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "entity_id": "entity_n8y8tnk2p9339ti393yi",
  "id": "account_in71c4amph0vgo2qllky",
  "informational_entity_id": null,
  "interest_accrued": "0.01",
  "interest_accrued_at": "2020-01-31",
  "name": "My first account!",
  "replacement": {
    "replaced_account_id": null,
    "replaced_by_account_id": null
  },
  "status": "open",
  "type": "account"
}
PATCH Update an Event Subscription
{{baseUrl}}/event_subscriptions/:event_subscription_id
QUERY PARAMS

event_subscription_id
BODY json

{
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/event_subscriptions/:event_subscription_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  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/event_subscriptions/:event_subscription_id" {:content-type :json
                                                                                        :form-params {:status ""}})
require "http/client"

url = "{{baseUrl}}/event_subscriptions/:event_subscription_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"status\": \"\"\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}}/event_subscriptions/:event_subscription_id"),
    Content = new StringContent("{\n  \"status\": \"\"\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}}/event_subscriptions/:event_subscription_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/event_subscriptions/:event_subscription_id"

	payload := strings.NewReader("{\n  \"status\": \"\"\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/event_subscriptions/:event_subscription_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 18

{
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/event_subscriptions/:event_subscription_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/event_subscriptions/:event_subscription_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"status\": \"\"\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  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/event_subscriptions/:event_subscription_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/event_subscriptions/:event_subscription_id")
  .header("content-type", "application/json")
  .body("{\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/event_subscriptions/:event_subscription_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/event_subscriptions/:event_subscription_id',
  headers: {'content-type': 'application/json'},
  data: {status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/event_subscriptions/:event_subscription_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"status":""}'
};

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}}/event_subscriptions/:event_subscription_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/event_subscriptions/:event_subscription_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/event_subscriptions/:event_subscription_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({status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/event_subscriptions/:event_subscription_id',
  headers: {'content-type': 'application/json'},
  body: {status: ''},
  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}}/event_subscriptions/:event_subscription_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  status: ''
});

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}}/event_subscriptions/:event_subscription_id',
  headers: {'content-type': 'application/json'},
  data: {status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/event_subscriptions/:event_subscription_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"status":""}'
};

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 = @{ @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/event_subscriptions/:event_subscription_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([
    'status' => ''
  ]),
  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}}/event_subscriptions/:event_subscription_id', [
  'body' => '{
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/event_subscriptions/:event_subscription_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/event_subscriptions/:event_subscription_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}}/event_subscriptions/:event_subscription_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/event_subscriptions/:event_subscription_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/event_subscriptions/:event_subscription_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/event_subscriptions/:event_subscription_id"

payload = { "status": "" }
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/event_subscriptions/:event_subscription_id"

payload <- "{\n  \"status\": \"\"\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}}/event_subscriptions/:event_subscription_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  \"status\": \"\"\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/event_subscriptions/:event_subscription_id') do |req|
  req.body = "{\n  \"status\": \"\"\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}}/event_subscriptions/:event_subscription_id";

    let payload = json!({"status": ""});

    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}}/event_subscriptions/:event_subscription_id \
  --header 'content-type: application/json' \
  --data '{
  "status": ""
}'
echo '{
  "status": ""
}' |  \
  http PATCH {{baseUrl}}/event_subscriptions/:event_subscription_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/event_subscriptions/:event_subscription_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["status": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/event_subscriptions/:event_subscription_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

{
  "created_at": "2020-01-31T23:59:59Z",
  "id": "event_subscription_001dzz0r20rcdxgb013zqb8m04g",
  "selected_event_category": null,
  "shared_secret": "b88l20",
  "status": "active",
  "type": "event_subscription",
  "url": "https://website.com/webhooks"
}
PATCH Update an External Account
{{baseUrl}}/external_accounts/:external_account_id
QUERY PARAMS

external_account_id
BODY json

{
  "description": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/external_accounts/:external_account_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  \"description\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/external_accounts/:external_account_id" {:content-type :json
                                                                                    :form-params {:description ""
                                                                                                  :status ""}})
require "http/client"

url = "{{baseUrl}}/external_accounts/:external_account_id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\",\n  \"status\": \"\"\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}}/external_accounts/:external_account_id"),
    Content = new StringContent("{\n  \"description\": \"\",\n  \"status\": \"\"\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}}/external_accounts/:external_account_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/external_accounts/:external_account_id"

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"status\": \"\"\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/external_accounts/:external_account_id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 39

{
  "description": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/external_accounts/:external_account_id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"description\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/external_accounts/:external_account_id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"status\": \"\"\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  \"description\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/external_accounts/:external_account_id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/external_accounts/:external_account_id")
  .header("content-type", "application/json")
  .body("{\n  \"description\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/external_accounts/:external_account_id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/external_accounts/:external_account_id',
  headers: {'content-type': 'application/json'},
  data: {description: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/external_accounts/:external_account_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","status":""}'
};

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}}/external_accounts/:external_account_id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "description": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"description\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/external_accounts/:external_account_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/external_accounts/:external_account_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({description: '', status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/external_accounts/:external_account_id',
  headers: {'content-type': 'application/json'},
  body: {description: '', status: ''},
  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}}/external_accounts/:external_account_id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  description: '',
  status: ''
});

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}}/external_accounts/:external_account_id',
  headers: {'content-type': 'application/json'},
  data: {description: '', status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/external_accounts/:external_account_id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","status":""}'
};

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 = @{ @"description": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/external_accounts/:external_account_id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'description' => '',
    'status' => ''
  ]),
  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}}/external_accounts/:external_account_id', [
  'body' => '{
  "description": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/external_accounts/:external_account_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/external_accounts/:external_account_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}}/external_accounts/:external_account_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/external_accounts/:external_account_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"description\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/external_accounts/:external_account_id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/external_accounts/:external_account_id"

payload = {
    "description": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/external_accounts/:external_account_id"

payload <- "{\n  \"description\": \"\",\n  \"status\": \"\"\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}}/external_accounts/:external_account_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  \"description\": \"\",\n  \"status\": \"\"\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/external_accounts/:external_account_id') do |req|
  req.body = "{\n  \"description\": \"\",\n  \"status\": \"\"\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}}/external_accounts/:external_account_id";

    let payload = json!({
        "description": "",
        "status": ""
    });

    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}}/external_accounts/:external_account_id \
  --header 'content-type: application/json' \
  --data '{
  "description": "",
  "status": ""
}'
echo '{
  "description": "",
  "status": ""
}' |  \
  http PATCH {{baseUrl}}/external_accounts/:external_account_id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "description": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/external_accounts/:external_account_id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "description": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/external_accounts/:external_account_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

{
  "account_number": "987654321",
  "created_at": "2020-01-31T23:59:59Z",
  "description": "Landlord",
  "funding": "checking",
  "id": "external_account_ukk55lr923a3ac0pp7iv",
  "routing_number": "101050001",
  "status": "active",
  "type": "external_account",
  "verification_status": "verified"
}