GET accounts_balances_retrieve
{{baseUrl}}/api/v2/accounts/:id/balances/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/accounts/:id/balances/");

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

(client/get "{{baseUrl}}/api/v2/accounts/:id/balances/")
require "http/client"

url = "{{baseUrl}}/api/v2/accounts/:id/balances/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/accounts/:id/balances/"

	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/api/v2/accounts/:id/balances/ HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/accounts/:id/balances/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/accounts/:id/balances/")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/accounts/:id/balances/');

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}}/api/v2/accounts/:id/balances/'
};

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

const url = '{{baseUrl}}/api/v2/accounts/:id/balances/';
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}}/api/v2/accounts/:id/balances/"]
                                                       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}}/api/v2/accounts/:id/balances/" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/accounts/:id/balances/")

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

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

url = "{{baseUrl}}/api/v2/accounts/:id/balances/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/accounts/:id/balances/"

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

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

url = URI("{{baseUrl}}/api/v2/accounts/:id/balances/")

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/api/v2/accounts/:id/balances/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

{
  "detail": "Starting date '2023-03-13' is greater than end date '2023-03-03'. When specifying date range, starting date must precede the end date",
  "status_code": 400,
  "summary": "Incorrect date range"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "$ACCOUNT_ID is not a valid Account UUID. ",
  "status_code": 400,
  "summary": "Invalid Account ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access has expired or it has been revoked. To restore access reconnect the account.",
  "status_code": 401,
  "summary": "Couldn't update account balances",
  "type": "AccessExpiredError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account has been deactivated or it no longer exists.",
  "status_code": 401,
  "summary": "Couldn't update account balances",
  "type": "AccountInactiveError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "SSN Verification has failed",
  "status_code": 401,
  "summary": "Couldn't update account balances",
  "type": "FailedAuthentication"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access to account is forbidden. The user might not have the necessary permissions.",
  "status_code": 403,
  "summary": "Couldn't update account balances",
  "type": "AccountAccessForbidden"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "EUA doesn't allow access to account balances. Check EUA access scope. Or create new EUA with correct access scope",
  "status_code": 403,
  "summary": "End User Agreement (EUA) access scope error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account exists but there is no valid End User Agreement permitting you to access it",
  "status_code": 403,
  "summary": "No valid End User Agreement"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Please check whether you specified a valid Account ID",
  "status_code": 404,
  "summary": "Account ID $ACC_ID not found"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "aspsp_identifier": "string",
  "created": "2023-03-03 17:05:05.270281+00:00",
  "iban": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "last_accessed": "2023-03-03 17:05:05.270299+00:00",
  "status": "ERROR"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "This account or its requisition was suspended due to numerous errors that occurred while accessing it.",
  "status_code": 409,
  "summary": "Account suspended"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Daily request limit set by the Institution has been exceeded.",
  "status_code": 429,
  "summary": "Couldn't update account balances",
  "type": "RateLimitError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Request to Institution returned an error",
  "status_code": 500,
  "summary": "Couldn't update account balances",
  "type": "UnknownRequestError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Couldn't connect to Institution",
  "status_code": 503,
  "summary": "Couldn't update account balances",
  "type": "ConnectionError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Institution service unavailable",
  "status_code": 503,
  "summary": "Couldn't update account balances",
  "type": "ServiceError"
}
GET accounts_details_retrieve
{{baseUrl}}/api/v2/accounts/:id/details/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/accounts/:id/details/");

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

(client/get "{{baseUrl}}/api/v2/accounts/:id/details/")
require "http/client"

url = "{{baseUrl}}/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/:id/details/");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/accounts/:id/details/'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/accounts/: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/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/: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}}/api/v2/accounts/:id/details/" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/accounts/:id/details/")

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

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

url = "{{baseUrl}}/api/v2/accounts/:id/details/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/accounts/:id/details/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "Starting date '2023-03-13' is greater than end date '2023-03-03'. When specifying date range, starting date must precede the end date",
  "status_code": 400,
  "summary": "Incorrect date range"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "$ACCOUNT_ID is not a valid Account UUID. ",
  "status_code": 400,
  "summary": "Invalid Account ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access has expired or it has been revoked. To restore access reconnect the account.",
  "status_code": 401,
  "summary": "Couldn't update account details",
  "type": "AccessExpiredError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account has been deactivated or it no longer exists.",
  "status_code": 401,
  "summary": "Couldn't update account details",
  "type": "AccountInactiveError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "SSN Verification has failed",
  "status_code": 401,
  "summary": "Couldn't update account details",
  "type": "FailedAuthentication"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access to account is forbidden. The user might not have the necessary permissions.",
  "status_code": 403,
  "summary": "Couldn't update account details",
  "type": "AccountAccessForbidden"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "EUA doesn't allow access to account details. Check EUA access scope. Or create new EUA with correct access scope",
  "status_code": 403,
  "summary": "End User Agreement (EUA) access scope error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account exists but there is no valid End User Agreement permitting you to access it",
  "status_code": 403,
  "summary": "No valid End User Agreement"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Please check whether you specified a valid Account ID",
  "status_code": 404,
  "summary": "Account ID $ACC_ID not found"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "aspsp_identifier": "string",
  "created": "2023-03-03 17:05:05.270281+00:00",
  "iban": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "last_accessed": "2023-03-03 17:05:05.270299+00:00",
  "status": "ERROR"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "This account or its requisition was suspended due to numerous errors that occurred while accessing it.",
  "status_code": 409,
  "summary": "Account suspended"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Daily request limit set by the Institution has been exceeded.",
  "status_code": 429,
  "summary": "Couldn't update account details",
  "type": "RateLimitError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Request to Institution returned an error",
  "status_code": 500,
  "summary": "Couldn't update account details",
  "type": "UnknownRequestError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Couldn't connect to Institution",
  "status_code": 503,
  "summary": "Couldn't update account details",
  "type": "ConnectionError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Institution service unavailable",
  "status_code": 503,
  "summary": "Couldn't update account details",
  "type": "ServiceError"
}
GET accounts_transactions_retrieve
{{baseUrl}}/api/v2/accounts/:id/transactions/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/accounts/:id/transactions/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/accounts/:id/transactions/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/accounts/:id/transactions/")
  .get()
  .build()

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/accounts/:id/transactions/")

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

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

url = "{{baseUrl}}/api/v2/accounts/:id/transactions/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/accounts/:id/transactions/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "Starting date '2023-03-13' is greater than end date '2023-03-03'. When specifying date range, starting date must precede the end date",
  "status_code": 400,
  "summary": "Incorrect date range"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "$ACCOUNT_ID is not a valid Account UUID. ",
  "status_code": 400,
  "summary": "Invalid Account ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access has expired or it has been revoked. To restore access reconnect the account.",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "AccessExpiredError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account has been deactivated or it no longer exists.",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "AccountInactiveError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "SSN Verification has failed",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "FailedAuthentication"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access to account is forbidden. The user might not have the necessary permissions.",
  "status_code": 403,
  "summary": "Couldn't update account transactions",
  "type": "AccountAccessForbidden"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "EUA doesn't allow access to account transactions. Check EUA access scope. Or create new EUA with correct access scope",
  "status_code": 403,
  "summary": "End User Agreement (EUA) access scope error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account exists but there is no valid End User Agreement permitting you to access it",
  "status_code": 403,
  "summary": "No valid End User Agreement"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Please check whether you specified a valid Account ID",
  "status_code": 404,
  "summary": "Account ID $ACC_ID not found"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "aspsp_identifier": "string",
  "created": "2023-03-03 17:05:05.270281+00:00",
  "iban": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "last_accessed": "2023-03-03 17:05:05.270299+00:00",
  "status": "ERROR"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "This account or its requisition was suspended due to numerous errors that occurred while accessing it.",
  "status_code": 409,
  "summary": "Account suspended"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Daily request limit set by the Institution has been exceeded.",
  "status_code": 429,
  "summary": "Couldn't update account transactions",
  "type": "RateLimitError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Request to Institution returned an error",
  "status_code": 500,
  "summary": "Couldn't update account transactions",
  "type": "UnknownRequestError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Couldn't connect to Institution",
  "status_code": 503,
  "summary": "Couldn't update account transactions",
  "type": "ConnectionError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Institution service unavailable",
  "status_code": 503,
  "summary": "Couldn't update account transactions",
  "type": "ServiceError"
}
GET retrieve account metadata
{{baseUrl}}/api/v2/accounts/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/accounts/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/accounts/:id/'};

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/accounts/:id/")

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

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

url = "{{baseUrl}}/api/v2/accounts/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/accounts/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Please check whether you specified a valid Account ID",
  "status_code": 404,
  "summary": "Account ID $ACC_ID not found"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
PUT accept EUA
{{baseUrl}}/api/v2/agreements/enduser/:id/accept/
QUERY PARAMS

id
BODY json

{
  "ip_address": "",
  "user_agent": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/");

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

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

(client/put "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/" {:content-type :json
                                                                                 :form-params {:ip_address ""
                                                                                               :user_agent ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"),
    Content = new StringContent("{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\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}}/api/v2/agreements/enduser/:id/accept/");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"

	payload := strings.NewReader("{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}")

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

}
PUT /baseUrl/api/v2/agreements/enduser/:id/accept/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 42

{
  "ip_address": "",
  "user_agent": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\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  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/")
  .header("content-type", "application/json")
  .body("{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  ip_address: '',
  user_agent: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/',
  headers: {'content-type': 'application/json'},
  data: {ip_address: '', user_agent: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"ip_address":"","user_agent":""}'
};

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}}/api/v2/agreements/enduser/:id/accept/',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ip_address": "",\n  "user_agent": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/agreements/enduser/:id/accept/',
  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({ip_address: '', user_agent: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/',
  headers: {'content-type': 'application/json'},
  body: {ip_address: '', user_agent: ''},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/');

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

req.type('json');
req.send({
  ip_address: '',
  user_agent: ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/',
  headers: {'content-type': 'application/json'},
  data: {ip_address: '', user_agent: ''}
};

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

const url = '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"ip_address":"","user_agent":""}'
};

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

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/v2/agreements/enduser/:id/accept/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'ip_address' => '',
    'user_agent' => ''
  ]),
  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('PUT', '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/', [
  'body' => '{
  "ip_address": "",
  "user_agent": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/agreements/enduser/:id/accept/');
$request->setMethod(HTTP_METH_PUT);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ip_address' => '',
  'user_agent' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/agreements/enduser/:id/accept/');
$request->setRequestMethod('PUT');
$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}}/api/v2/agreements/enduser/:id/accept/' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "ip_address": "",
  "user_agent": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/agreements/enduser/:id/accept/' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "ip_address": "",
  "user_agent": ""
}'
import http.client

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

payload = "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/api/v2/agreements/enduser/:id/accept/", payload, headers)

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

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

url = "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"

payload = {
    "ip_address": "",
    "user_agent": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/v2/agreements/enduser/:id/accept/"

payload <- "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/v2/agreements/enduser/:id/accept/")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\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.put('/baseUrl/api/v2/agreements/enduser/:id/accept/') do |req|
  req.body = "{\n  \"ip_address\": \"\",\n  \"user_agent\": \"\"\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}}/api/v2/agreements/enduser/:id/accept/";

    let payload = json!({
        "ip_address": "",
        "user_agent": ""
    });

    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("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/v2/agreements/enduser/:id/accept/ \
  --header 'content-type: application/json' \
  --data '{
  "ip_address": "",
  "user_agent": ""
}'
echo '{
  "ip_address": "",
  "user_agent": ""
}' |  \
  http PUT {{baseUrl}}/api/v2/agreements/enduser/:id/accept/ \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "ip_address": "",\n  "user_agent": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/agreements/enduser/:id/accept/
import Foundation

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

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

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

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your company doesn't have permission to accept EUA. You'll have to use our default form for this action.",
  "status_code": 403,
  "summary": "Insufficient permissions"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "End User Agreements cannot be accepted more than once",
  "status_code": 405,
  "summary": "EUA cannot be accepted more than once"
}
POST create EUA v2
{{baseUrl}}/api/v2/agreements/enduser/
BODY json

{
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/agreements/enduser/");

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  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}");

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

(client/post "{{baseUrl}}/api/v2/agreements/enduser/" {:content-type :json
                                                                       :form-params {:access_scope []
                                                                                     :access_valid_for_days 0
                                                                                     :institution_id ""
                                                                                     :max_historical_days 0}})
require "http/client"

url = "{{baseUrl}}/api/v2/agreements/enduser/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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}}/api/v2/agreements/enduser/"),
    Content = new StringContent("{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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}}/api/v2/agreements/enduser/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/v2/agreements/enduser/"

	payload := strings.NewReader("{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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/api/v2/agreements/enduser/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/agreements/enduser/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/agreements/enduser/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/agreements/enduser/")
  .header("content-type", "application/json")
  .body("{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}")
  .asString();
const data = JSON.stringify({
  access_scope: [],
  access_valid_for_days: 0,
  institution_id: '',
  max_historical_days: 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}}/api/v2/agreements/enduser/');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/agreements/enduser/',
  headers: {'content-type': 'application/json'},
  data: {
    access_scope: [],
    access_valid_for_days: 0,
    institution_id: '',
    max_historical_days: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/agreements/enduser/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access_scope":[],"access_valid_for_days":0,"institution_id":"","max_historical_days":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}}/api/v2/agreements/enduser/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access_scope": [],\n  "access_valid_for_days": 0,\n  "institution_id": "",\n  "max_historical_days": 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  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/")
  .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/api/v2/agreements/enduser/',
  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({
  access_scope: [],
  access_valid_for_days: 0,
  institution_id: '',
  max_historical_days: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/agreements/enduser/',
  headers: {'content-type': 'application/json'},
  body: {
    access_scope: [],
    access_valid_for_days: 0,
    institution_id: '',
    max_historical_days: 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}}/api/v2/agreements/enduser/');

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

req.type('json');
req.send({
  access_scope: [],
  access_valid_for_days: 0,
  institution_id: '',
  max_historical_days: 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}}/api/v2/agreements/enduser/',
  headers: {'content-type': 'application/json'},
  data: {
    access_scope: [],
    access_valid_for_days: 0,
    institution_id: '',
    max_historical_days: 0
  }
};

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

const url = '{{baseUrl}}/api/v2/agreements/enduser/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access_scope":[],"access_valid_for_days":0,"institution_id":"","max_historical_days":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 = @{ @"access_scope": @[  ],
                              @"access_valid_for_days": @0,
                              @"institution_id": @"",
                              @"max_historical_days": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/agreements/enduser/"]
                                                       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}}/api/v2/agreements/enduser/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/agreements/enduser/",
  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([
    'access_scope' => [
        
    ],
    'access_valid_for_days' => 0,
    'institution_id' => '',
    'max_historical_days' => 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}}/api/v2/agreements/enduser/', [
  'body' => '{
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/agreements/enduser/');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access_scope' => [
    
  ],
  'access_valid_for_days' => 0,
  'institution_id' => '',
  'max_historical_days' => 0
]));

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

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

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

payload = "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}"

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

conn.request("POST", "/baseUrl/api/v2/agreements/enduser/", payload, headers)

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

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

url = "{{baseUrl}}/api/v2/agreements/enduser/"

payload = {
    "access_scope": [],
    "access_valid_for_days": 0,
    "institution_id": "",
    "max_historical_days": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/v2/agreements/enduser/"

payload <- "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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}}/api/v2/agreements/enduser/")

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  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 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/api/v2/agreements/enduser/') do |req|
  req.body = "{\n  \"access_scope\": [],\n  \"access_valid_for_days\": 0,\n  \"institution_id\": \"\",\n  \"max_historical_days\": 0\n}"
end

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

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

    let payload = json!({
        "access_scope": (),
        "access_valid_for_days": 0,
        "institution_id": "",
        "max_historical_days": 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}}/api/v2/agreements/enduser/ \
  --header 'content-type: application/json' \
  --data '{
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
}'
echo '{
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
}' |  \
  http POST {{baseUrl}}/api/v2/agreements/enduser/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "access_scope": [],\n  "access_valid_for_days": 0,\n  "institution_id": "",\n  "max_historical_days": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/agreements/enduser/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access_scope": [],
  "access_valid_for_days": 0,
  "institution_id": "",
  "max_historical_days": 0
] as [String : Any]

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

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

{
  "access_scope": [
    {
      "detail": "Choose one or several from ['balances', 'details', 'transactions']",
      "summary": "Unknown value '$SCOPE' in access_scope"
    },
    {
      "detail": "For this institution the following scopes are required together: ['balances', 'details']",
      "summary": "Institution access scope dependencies error"
    },
    {
      "detail": "The following scopes are mandatory for this institution: ['transactions']",
      "summary": "Institution access scope dependencies error"
    }
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "access_valid_for_days": [
    {
      "detail": "access_valid_for_days must be > 0 and <= 90",
      "summary": "Incorrect access_valid_for_days"
    }
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "agreement": {
    "detail": "Provided Institution ID: '$INSTITUTION_ID' for requisition does not match EUA institution ID '$EUA_INSTITUTION_ID'. Please provide correct institution ID: '$EUA_INSTITUTION_ID'",
    "summary": "Incorrect Institution ID $INSTITUTION_ID"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "institution_id": {
    "detail": "Get Institution IDs from /institutions/?country={$COUNTRY_CODE}",
    "summary": "Unknown Institution ID $INSTITUTION_ID"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "max_historical_days": [
    {
      "detail": "max_historical_days must be > 0 and <= N26_NTSBDEB1 transaction_total_days (730)",
      "summary": "Incorrect max_historical_days"
    }
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
DELETE delete EUA by id v2
{{baseUrl}}/api/v2/agreements/enduser/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/agreements/enduser/:id/");

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

(client/delete "{{baseUrl}}/api/v2/agreements/enduser/:id/")
require "http/client"

url = "{{baseUrl}}/api/v2/agreements/enduser/:id/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/agreements/enduser/:id/"

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

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

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

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

}
DELETE /baseUrl/api/v2/agreements/enduser/:id/ HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/agreements/enduser/:id/"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/:id/")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/v2/agreements/enduser/:id/")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/api/v2/agreements/enduser/:id/');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/'
};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/:id/")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/agreements/enduser/:id/',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/api/v2/agreements/enduser/:id/');

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/'
};

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

const url = '{{baseUrl}}/api/v2/agreements/enduser/:id/';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/agreements/enduser/:id/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/api/v2/agreements/enduser/:id/" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/api/v2/agreements/enduser/:id/")

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

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

url = "{{baseUrl}}/api/v2/agreements/enduser/:id/"

response = requests.delete(url)

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

url <- "{{baseUrl}}/api/v2/agreements/enduser/:id/"

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

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

url = URI("{{baseUrl}}/api/v2/agreements/enduser/:id/")

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

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

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

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

response = conn.delete('/baseUrl/api/v2/agreements/enduser/:id/') do |req|
end

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

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

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

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

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Cannot delete accepted End User Agreement: $EUA_ID. Only non accepted agreements can be deleted",
  "status_code": 400,
  "summary": "Cannot delete End User Agreement"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET retrieve EUA by id v2
{{baseUrl}}/api/v2/agreements/enduser/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/agreements/enduser/:id/");

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

(client/get "{{baseUrl}}/api/v2/agreements/enduser/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/agreements/enduser/:id/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/:id/")
  .get()
  .build()

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/agreements/enduser/:id/")

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

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

url = "{{baseUrl}}/api/v2/agreements/enduser/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/agreements/enduser/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET retrieve all EUAs for an end user v2
{{baseUrl}}/api/v2/agreements/enduser/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/agreements/enduser/");

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

(client/get "{{baseUrl}}/api/v2/agreements/enduser/")
require "http/client"

url = "{{baseUrl}}/api/v2/agreements/enduser/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/agreements/enduser/"

	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/api/v2/agreements/enduser/ HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/agreements/enduser/'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/agreements/enduser/")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/agreements/enduser/');

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}}/api/v2/agreements/enduser/'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/agreements/enduser/');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/agreements/enduser/")

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

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

url = "{{baseUrl}}/api/v2/agreements/enduser/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/agreements/enduser/"

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

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

url = URI("{{baseUrl}}/api/v2/agreements/enduser/")

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/api/v2/agreements/enduser/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

{
  "count": 123,
  "next": "https://ob.nordigen.com/api/v2/agreements/enduser/?limit=100&offset=0",
  "previous": "https://ob.nordigen.com/api/v2/agreements/enduser/?limit=100&offset=0"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET retrieve all supported Institutions in a given country
{{baseUrl}}/api/v2/institutions/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/institutions/");

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

(client/get "{{baseUrl}}/api/v2/institutions/")
require "http/client"

url = "{{baseUrl}}/api/v2/institutions/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/institutions/"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/institutions/'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/institutions/');

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}}/api/v2/institutions/'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/institutions/")

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

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

url = "{{baseUrl}}/api/v2/institutions/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/institutions/"

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

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

url = URI("{{baseUrl}}/api/v2/institutions/")

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/api/v2/institutions/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

[
  {
    "bic": "NTSBDEB1",
    "countries": [
      "GB",
      "NO",
      "SE",
      "FI",
      "DK",
      "EE",
      "LV",
      "LT",
      "NL",
      "CZ",
      "ES",
      "PL",
      "BE",
      "DE",
      "AT",
      "BG",
      "HR",
      "CY",
      "FR",
      "GR",
      "HU",
      "IS",
      "IE",
      "IT",
      "LI",
      "LU",
      "MT",
      "PT",
      "RO",
      "SK",
      "SI"
    ],
    "id": "N26_NTSBDEB1",
    "logo": "https://cdn.nordigen.com/ais/N26_SANDBOX_NTSBDEB1.png",
    "name": "N26 Bank",
    "transaction_total_days": "90"
  },
  {
    "bic": "FTSBDEFAXXX",
    "countries": [
      "DE"
    ],
    "id": "ABNAMRO_FTSBDEFAXXX",
    "logo": "https://cdn.nordigen.com/ais/ABNAMRO_FTSBDEFAXXX.png",
    "name": "ABN AMRO Bank Commercial",
    "transaction_total_days": "558"
  }
]
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "country": [
    "GBA is not a valid choice."
  ],
  "status_code": 400,
  "summary": "Invalid country choice."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET retrieve institution
{{baseUrl}}/api/v2/institutions/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/institutions/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/institutions/:id/'};

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/institutions/:id/")

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

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

url = "{{baseUrl}}/api/v2/institutions/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/institutions/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "bic": "FTSBDEFAXXX",
  "countries": [
    "DE"
  ],
  "id": "ABNAMRO_FTSBDEFAXXX",
  "logo": "https://cdn.nordigen.com/ais/ABNAMRO_FTSBDEFAXXX.png",
  "name": "ABN AMRO Bank Commercial",
  "transaction_total_days": "558"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "bic": "NTSBDEB1",
  "countries": [
    "GB",
    "NO",
    "SE",
    "FI",
    "DK",
    "EE",
    "LV",
    "LT",
    "NL",
    "CZ",
    "ES",
    "PL",
    "BE",
    "DE",
    "AT",
    "BG",
    "HR",
    "CY",
    "FR",
    "GR",
    "HU",
    "IS",
    "IE",
    "IT",
    "LI",
    "LU",
    "MT",
    "PT",
    "RO",
    "SK",
    "SI"
  ],
  "id": "N26_NTSBDEB1",
  "logo": "https://cdn.nordigen.com/ais/N26_SANDBOX_NTSBDEB1.png",
  "name": "N26 Bank",
  "transaction_total_days": "90"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
POST create payment
{{baseUrl}}/api/v2/payments/
BODY json

{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/");

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  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/v2/payments/" {:content-type :json
                                                             :form-params {:creditor_account ""
                                                                           :custom_payment_id ""
                                                                           :debtor_account ""
                                                                           :description ""
                                                                           :institution_id ""
                                                                           :instructed_amount ""
                                                                           :payment_product ""
                                                                           :periodic_payment {:day_of_execution ""
                                                                                              :end_date ""
                                                                                              :execution_rule ""
                                                                                              :frequency ""
                                                                                              :start_date ""}
                                                                           :redirect ""
                                                                           :requested_execution_date ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/payments/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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}}/api/v2/payments/"),
    Content = new StringContent("{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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}}/api/v2/payments/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/"

	payload := strings.NewReader("{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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/api/v2/payments/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 373

{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/payments/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/payments/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/payments/")
  .header("content-type", "application/json")
  .body("{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  creditor_account: '',
  custom_payment_id: '',
  debtor_account: '',
  description: '',
  institution_id: '',
  instructed_amount: '',
  payment_product: '',
  periodic_payment: {
    day_of_execution: '',
    end_date: '',
    execution_rule: '',
    frequency: '',
    start_date: ''
  },
  redirect: '',
  requested_execution_date: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/payments/',
  headers: {'content-type': 'application/json'},
  data: {
    creditor_account: '',
    custom_payment_id: '',
    debtor_account: '',
    description: '',
    institution_id: '',
    instructed_amount: '',
    payment_product: '',
    periodic_payment: {
      day_of_execution: '',
      end_date: '',
      execution_rule: '',
      frequency: '',
      start_date: ''
    },
    redirect: '',
    requested_execution_date: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/payments/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"creditor_account":"","custom_payment_id":"","debtor_account":"","description":"","institution_id":"","instructed_amount":"","payment_product":"","periodic_payment":{"day_of_execution":"","end_date":"","execution_rule":"","frequency":"","start_date":""},"redirect":"","requested_execution_date":""}'
};

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}}/api/v2/payments/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "creditor_account": "",\n  "custom_payment_id": "",\n  "debtor_account": "",\n  "description": "",\n  "institution_id": "",\n  "instructed_amount": "",\n  "payment_product": "",\n  "periodic_payment": {\n    "day_of_execution": "",\n    "end_date": "",\n    "execution_rule": "",\n    "frequency": "",\n    "start_date": ""\n  },\n  "redirect": "",\n  "requested_execution_date": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/")
  .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/api/v2/payments/',
  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({
  creditor_account: '',
  custom_payment_id: '',
  debtor_account: '',
  description: '',
  institution_id: '',
  instructed_amount: '',
  payment_product: '',
  periodic_payment: {
    day_of_execution: '',
    end_date: '',
    execution_rule: '',
    frequency: '',
    start_date: ''
  },
  redirect: '',
  requested_execution_date: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/payments/',
  headers: {'content-type': 'application/json'},
  body: {
    creditor_account: '',
    custom_payment_id: '',
    debtor_account: '',
    description: '',
    institution_id: '',
    instructed_amount: '',
    payment_product: '',
    periodic_payment: {
      day_of_execution: '',
      end_date: '',
      execution_rule: '',
      frequency: '',
      start_date: ''
    },
    redirect: '',
    requested_execution_date: ''
  },
  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}}/api/v2/payments/');

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

req.type('json');
req.send({
  creditor_account: '',
  custom_payment_id: '',
  debtor_account: '',
  description: '',
  institution_id: '',
  instructed_amount: '',
  payment_product: '',
  periodic_payment: {
    day_of_execution: '',
    end_date: '',
    execution_rule: '',
    frequency: '',
    start_date: ''
  },
  redirect: '',
  requested_execution_date: ''
});

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}}/api/v2/payments/',
  headers: {'content-type': 'application/json'},
  data: {
    creditor_account: '',
    custom_payment_id: '',
    debtor_account: '',
    description: '',
    institution_id: '',
    instructed_amount: '',
    payment_product: '',
    periodic_payment: {
      day_of_execution: '',
      end_date: '',
      execution_rule: '',
      frequency: '',
      start_date: ''
    },
    redirect: '',
    requested_execution_date: ''
  }
};

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

const url = '{{baseUrl}}/api/v2/payments/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"creditor_account":"","custom_payment_id":"","debtor_account":"","description":"","institution_id":"","instructed_amount":"","payment_product":"","periodic_payment":{"day_of_execution":"","end_date":"","execution_rule":"","frequency":"","start_date":""},"redirect":"","requested_execution_date":""}'
};

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 = @{ @"creditor_account": @"",
                              @"custom_payment_id": @"",
                              @"debtor_account": @"",
                              @"description": @"",
                              @"institution_id": @"",
                              @"instructed_amount": @"",
                              @"payment_product": @"",
                              @"periodic_payment": @{ @"day_of_execution": @"", @"end_date": @"", @"execution_rule": @"", @"frequency": @"", @"start_date": @"" },
                              @"redirect": @"",
                              @"requested_execution_date": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/payments/"]
                                                       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}}/api/v2/payments/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/payments/",
  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([
    'creditor_account' => '',
    'custom_payment_id' => '',
    'debtor_account' => '',
    'description' => '',
    'institution_id' => '',
    'instructed_amount' => '',
    'payment_product' => '',
    'periodic_payment' => [
        'day_of_execution' => '',
        'end_date' => '',
        'execution_rule' => '',
        'frequency' => '',
        'start_date' => ''
    ],
    'redirect' => '',
    'requested_execution_date' => ''
  ]),
  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}}/api/v2/payments/', [
  'body' => '{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'creditor_account' => '',
  'custom_payment_id' => '',
  'debtor_account' => '',
  'description' => '',
  'institution_id' => '',
  'instructed_amount' => '',
  'payment_product' => '',
  'periodic_payment' => [
    'day_of_execution' => '',
    'end_date' => '',
    'execution_rule' => '',
    'frequency' => '',
    'start_date' => ''
  ],
  'redirect' => '',
  'requested_execution_date' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'creditor_account' => '',
  'custom_payment_id' => '',
  'debtor_account' => '',
  'description' => '',
  'institution_id' => '',
  'instructed_amount' => '',
  'payment_product' => '',
  'periodic_payment' => [
    'day_of_execution' => '',
    'end_date' => '',
    'execution_rule' => '',
    'frequency' => '',
    'start_date' => ''
  ],
  'redirect' => '',
  'requested_execution_date' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/payments/');
$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}}/api/v2/payments/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/payments/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}'
import http.client

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

payload = "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}"

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

conn.request("POST", "/baseUrl/api/v2/payments/", payload, headers)

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

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

url = "{{baseUrl}}/api/v2/payments/"

payload = {
    "creditor_account": "",
    "custom_payment_id": "",
    "debtor_account": "",
    "description": "",
    "institution_id": "",
    "instructed_amount": "",
    "payment_product": "",
    "periodic_payment": {
        "day_of_execution": "",
        "end_date": "",
        "execution_rule": "",
        "frequency": "",
        "start_date": ""
    },
    "redirect": "",
    "requested_execution_date": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/v2/payments/"

payload <- "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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}}/api/v2/payments/")

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  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\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/api/v2/payments/') do |req|
  req.body = "{\n  \"creditor_account\": \"\",\n  \"custom_payment_id\": \"\",\n  \"debtor_account\": \"\",\n  \"description\": \"\",\n  \"institution_id\": \"\",\n  \"instructed_amount\": \"\",\n  \"payment_product\": \"\",\n  \"periodic_payment\": {\n    \"day_of_execution\": \"\",\n    \"end_date\": \"\",\n    \"execution_rule\": \"\",\n    \"frequency\": \"\",\n    \"start_date\": \"\"\n  },\n  \"redirect\": \"\",\n  \"requested_execution_date\": \"\"\n}"
end

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

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

    let payload = json!({
        "creditor_account": "",
        "custom_payment_id": "",
        "debtor_account": "",
        "description": "",
        "institution_id": "",
        "instructed_amount": "",
        "payment_product": "",
        "periodic_payment": json!({
            "day_of_execution": "",
            "end_date": "",
            "execution_rule": "",
            "frequency": "",
            "start_date": ""
        }),
        "redirect": "",
        "requested_execution_date": ""
    });

    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}}/api/v2/payments/ \
  --header 'content-type: application/json' \
  --data '{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}'
echo '{
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": {
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  },
  "redirect": "",
  "requested_execution_date": ""
}' |  \
  http POST {{baseUrl}}/api/v2/payments/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "creditor_account": "",\n  "custom_payment_id": "",\n  "debtor_account": "",\n  "description": "",\n  "institution_id": "",\n  "instructed_amount": "",\n  "payment_product": "",\n  "periodic_payment": {\n    "day_of_execution": "",\n    "end_date": "",\n    "execution_rule": "",\n    "frequency": "",\n    "start_date": ""\n  },\n  "redirect": "",\n  "requested_execution_date": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/payments/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "creditor_account": "",
  "custom_payment_id": "",
  "debtor_account": "",
  "description": "",
  "institution_id": "",
  "instructed_amount": "",
  "payment_product": "",
  "periodic_payment": [
    "day_of_execution": "",
    "end_date": "",
    "execution_rule": "",
    "frequency": "",
    "start_date": ""
  ],
  "redirect": "",
  "requested_execution_date": ""
] as [String : Any]

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

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

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
DELETE delete periodic payment
{{baseUrl}}/api/v2/payments/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/delete "{{baseUrl}}/api/v2/payments/:id/")
require "http/client"

url = "{{baseUrl}}/api/v2/payments/:id/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/:id/"

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

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

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

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

}
DELETE /baseUrl/api/v2/payments/:id/ HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/payments/:id/"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/:id/")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/v2/payments/:id/")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/api/v2/payments/:id/');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/payments/:id/'};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/payments/:id/',
  method: 'DELETE',
  headers: {}
};

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/payments/:id/',
  headers: {}
};

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

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

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/payments/:id/'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/api/v2/payments/:id/');

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/payments/:id/'};

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

const url = '{{baseUrl}}/api/v2/payments/:id/';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/payments/:id/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/api/v2/payments/:id/" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/api/v2/payments/:id/")

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

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

url = "{{baseUrl}}/api/v2/payments/:id/"

response = requests.delete(url)

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

url <- "{{baseUrl}}/api/v2/payments/:id/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/:id/")

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

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

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

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

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

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

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

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

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

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Periodic payment '$PAYMENT_ID' deleted",
  "summary": "Periodic payment deleted"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Periodic payment '$PAYMENT_ID' cannot be deleted at this moment. Please try again later.",
  "status_code": 409,
  "summary": "Periodic payment cannot be deleted"
}
GET list minimum required fields for institution
{{baseUrl}}/api/v2/payments/fields/:institution_id/
QUERY PARAMS

institution_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/fields/:institution_id/");

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

(client/get "{{baseUrl}}/api/v2/payments/fields/:institution_id/")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/fields/:institution_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/api/v2/payments/fields/:institution_id/ HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/payments/fields/:institution_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}}/api/v2/payments/fields/:institution_id/")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/v2/payments/fields/:institution_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}}/api/v2/payments/fields/:institution_id/');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/payments/fields/:institution_id/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/fields/:institution_id/")
  .get()
  .build()

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

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

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

const url = '{{baseUrl}}/api/v2/payments/fields/:institution_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}}/api/v2/payments/fields/:institution_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}}/api/v2/payments/fields/:institution_id/" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/payments/fields/:institution_id/');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/v2/payments/fields/:institution_id/');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v2/payments/fields/:institution_id/' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/payments/fields/:institution_id/' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/api/v2/payments/fields/:institution_id/")

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

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

url = "{{baseUrl}}/api/v2/payments/fields/:institution_id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/fields/:institution_id/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/fields/:institution_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/api/v2/payments/fields/:institution_id/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/payments/fields/:institution_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

{
  "single-payment": {
    "SCT": {
      "creditor_account": "",
      "custom_payment_id": "",
      "description": "",
      "institution_id": "",
      "instructed_amount": {
        "amount": 10,
        "currency": "EUR"
      },
      "payment_product": "SCT",
      "redirect": ""
    }
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
GET list payments
{{baseUrl}}/api/v2/payments/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/");

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

(client/get "{{baseUrl}}/api/v2/payments/")
require "http/client"

url = "{{baseUrl}}/api/v2/payments/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/payments/'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/payments/');

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}}/api/v2/payments/'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/payments/")

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

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

url = "{{baseUrl}}/api/v2/payments/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/")

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/api/v2/payments/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
POST payments_creditors_create
{{baseUrl}}/api/v2/payments/creditors/
BODY json

{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/creditors/");

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\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/v2/payments/creditors/" {:content-type :json
                                                                       :form-params {:account ""
                                                                                     :address_country ""
                                                                                     :address_street ""
                                                                                     :agent ""
                                                                                     :agent_name ""
                                                                                     :currency ""
                                                                                     :institution_id ""
                                                                                     :name ""
                                                                                     :post_code ""
                                                                                     :type ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/payments/creditors/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v2/payments/creditors/"),
    Content = new StringContent("{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v2/payments/creditors/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/creditors/"

	payload := strings.NewReader("{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/api/v2/payments/creditors/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/payments/creditors/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/payments/creditors/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/payments/creditors/")
  .header("content-type", "application/json")
  .body("{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account: '',
  address_country: '',
  address_street: '',
  agent: '',
  agent_name: '',
  currency: '',
  institution_id: '',
  name: '',
  post_code: '',
  type: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/v2/payments/creditors/');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/payments/creditors/',
  headers: {'content-type': 'application/json'},
  data: {
    account: '',
    address_country: '',
    address_street: '',
    agent: '',
    agent_name: '',
    currency: '',
    institution_id: '',
    name: '',
    post_code: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/payments/creditors/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account":"","address_country":"","address_street":"","agent":"","agent_name":"","currency":"","institution_id":"","name":"","post_code":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/payments/creditors/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account": "",\n  "address_country": "",\n  "address_street": "",\n  "agent": "",\n  "agent_name": "",\n  "currency": "",\n  "institution_id": "",\n  "name": "",\n  "post_code": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/")
  .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/api/v2/payments/creditors/',
  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: '',
  address_country: '',
  address_street: '',
  agent: '',
  agent_name: '',
  currency: '',
  institution_id: '',
  name: '',
  post_code: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/payments/creditors/',
  headers: {'content-type': 'application/json'},
  body: {
    account: '',
    address_country: '',
    address_street: '',
    agent: '',
    agent_name: '',
    currency: '',
    institution_id: '',
    name: '',
    post_code: '',
    type: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/v2/payments/creditors/');

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

req.type('json');
req.send({
  account: '',
  address_country: '',
  address_street: '',
  agent: '',
  agent_name: '',
  currency: '',
  institution_id: '',
  name: '',
  post_code: '',
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/payments/creditors/',
  headers: {'content-type': 'application/json'},
  data: {
    account: '',
    address_country: '',
    address_street: '',
    agent: '',
    agent_name: '',
    currency: '',
    institution_id: '',
    name: '',
    post_code: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/api/v2/payments/creditors/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account":"","address_country":"","address_street":"","agent":"","agent_name":"","currency":"","institution_id":"","name":"","post_code":"","type":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"account": @"",
                              @"address_country": @"",
                              @"address_street": @"",
                              @"agent": @"",
                              @"agent_name": @"",
                              @"currency": @"",
                              @"institution_id": @"",
                              @"name": @"",
                              @"post_code": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/payments/creditors/"]
                                                       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}}/api/v2/payments/creditors/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/payments/creditors/",
  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' => '',
    'address_country' => '',
    'address_street' => '',
    'agent' => '',
    'agent_name' => '',
    'currency' => '',
    'institution_id' => '',
    'name' => '',
    'post_code' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v2/payments/creditors/', [
  'body' => '{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/payments/creditors/');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account' => '',
  'address_country' => '',
  'address_street' => '',
  'agent' => '',
  'agent_name' => '',
  'currency' => '',
  'institution_id' => '',
  'name' => '',
  'post_code' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account' => '',
  'address_country' => '',
  'address_street' => '',
  'agent' => '',
  'agent_name' => '',
  'currency' => '',
  'institution_id' => '',
  'name' => '',
  'post_code' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/payments/creditors/');
$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}}/api/v2/payments/creditors/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/payments/creditors/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/api/v2/payments/creditors/", payload, headers)

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

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

url = "{{baseUrl}}/api/v2/payments/creditors/"

payload = {
    "account": "",
    "address_country": "",
    "address_street": "",
    "agent": "",
    "agent_name": "",
    "currency": "",
    "institution_id": "",
    "name": "",
    "post_code": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/v2/payments/creditors/"

payload <- "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/v2/payments/creditors/")

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\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"

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

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

response = conn.post('/baseUrl/api/v2/payments/creditors/') do |req|
  req.body = "{\n  \"account\": \"\",\n  \"address_country\": \"\",\n  \"address_street\": \"\",\n  \"agent\": \"\",\n  \"agent_name\": \"\",\n  \"currency\": \"\",\n  \"institution_id\": \"\",\n  \"name\": \"\",\n  \"post_code\": \"\",\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "account": "",
        "address_country": "",
        "address_street": "",
        "agent": "",
        "agent_name": "",
        "currency": "",
        "institution_id": "",
        "name": "",
        "post_code": "",
        "type": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v2/payments/creditors/ \
  --header 'content-type: application/json' \
  --data '{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}'
echo '{
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/api/v2/payments/creditors/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account": "",\n  "address_country": "",\n  "address_street": "",\n  "agent": "",\n  "agent_name": "",\n  "currency": "",\n  "institution_id": "",\n  "name": "",\n  "post_code": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/payments/creditors/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account": "",
  "address_country": "",
  "address_street": "",
  "agent": "",
  "agent_name": "",
  "currency": "",
  "institution_id": "",
  "name": "",
  "post_code": "",
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/payments/creditors/")! 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()
DELETE payments_creditors_destroy
{{baseUrl}}/api/v2/payments/creditors/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/creditors/:id/");

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

(client/delete "{{baseUrl}}/api/v2/payments/creditors/:id/")
require "http/client"

url = "{{baseUrl}}/api/v2/payments/creditors/:id/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/creditors/:id/"

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

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

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

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

}
DELETE /baseUrl/api/v2/payments/creditors/:id/ HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/payments/creditors/:id/"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/:id/")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/v2/payments/creditors/:id/")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/api/v2/payments/creditors/:id/');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/payments/creditors/:id/'
};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/payments/creditors/:id/',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/:id/")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/payments/creditors/:id/',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/payments/creditors/:id/'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/api/v2/payments/creditors/:id/');

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/v2/payments/creditors/:id/'
};

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

const url = '{{baseUrl}}/api/v2/payments/creditors/:id/';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/payments/creditors/:id/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/api/v2/payments/creditors/:id/" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/api/v2/payments/creditors/:id/")

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

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

url = "{{baseUrl}}/api/v2/payments/creditors/:id/"

response = requests.delete(url)

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

url <- "{{baseUrl}}/api/v2/payments/creditors/:id/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/creditors/:id/")

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

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

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

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

response = conn.delete('/baseUrl/api/v2/payments/creditors/:id/') do |req|
end

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

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

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

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

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

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

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

dataTask.resume()
GET payments_creditors_list
{{baseUrl}}/api/v2/payments/creditors/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/creditors/");

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

(client/get "{{baseUrl}}/api/v2/payments/creditors/")
require "http/client"

url = "{{baseUrl}}/api/v2/payments/creditors/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/creditors/"

	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/api/v2/payments/creditors/ HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/payments/creditors/'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/payments/creditors/');

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}}/api/v2/payments/creditors/'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/payments/creditors/');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/payments/creditors/")

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

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

url = "{{baseUrl}}/api/v2/payments/creditors/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/creditors/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/creditors/")

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/api/v2/payments/creditors/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}
GET payments_creditors_retrieve
{{baseUrl}}/api/v2/payments/creditors/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/creditors/:id/");

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

(client/get "{{baseUrl}}/api/v2/payments/creditors/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/payments/creditors/:id/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/creditors/:id/")
  .get()
  .build()

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/payments/creditors/:id/")

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

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

url = "{{baseUrl}}/api/v2/payments/creditors/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/creditors/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/payments/creditors/: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()
GET retrieve all payment creditor accounts
{{baseUrl}}/api/v2/payments/account/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/payments/account/");

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

(client/get "{{baseUrl}}/api/v2/payments/account/")
require "http/client"

url = "{{baseUrl}}/api/v2/payments/account/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/payments/account/"

	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/api/v2/payments/account/ HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/payments/account/'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/payments/account/")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/api/v2/payments/account/');

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}}/api/v2/payments/account/'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/payments/account/');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/payments/account/")

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

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

url = "{{baseUrl}}/api/v2/payments/account/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/account/"

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

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

url = URI("{{baseUrl}}/api/v2/payments/account/")

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/api/v2/payments/account/') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
GET retrieve payment
{{baseUrl}}/api/v2/payments/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/payments/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/payments/:id/'};

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/payments/:id/")

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

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

url = "{{baseUrl}}/api/v2/payments/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/payments/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET retrieve account transactions v2
{{baseUrl}}/api/v2/accounts/premium/:id/transactions/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/accounts/premium/:id/transactions/")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/accounts/premium/:id/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/api/v2/accounts/premium/:id/transactions/ HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/v2/accounts/premium/:id/transactions/'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/accounts/premium/:id/transactions/")
  .get()
  .build()

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

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

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

const url = '{{baseUrl}}/api/v2/accounts/premium/:id/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}}/api/v2/accounts/premium/:id/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}}/api/v2/accounts/premium/:id/transactions/" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/accounts/premium/:id/transactions/")

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

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

url = "{{baseUrl}}/api/v2/accounts/premium/:id/transactions/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/accounts/premium/:id/transactions/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/accounts/premium/:id/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

{
  "detail": "Starting date '2023-03-13' is greater than end date '2023-03-03'. When specifying date range, starting date must precede the end date",
  "status_code": 400,
  "summary": "Incorrect date range"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "$ACCOUNT_ID is not a valid Account UUID. ",
  "status_code": 400,
  "summary": "Invalid Account ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access has expired or it has been revoked. To restore access reconnect the account.",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "AccessExpiredError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account has been deactivated or it no longer exists.",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "AccountInactiveError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "SSN Verification has failed",
  "status_code": 401,
  "summary": "Couldn't update account transactions",
  "type": "FailedAuthentication"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Access to account is forbidden. The user might not have the necessary permissions.",
  "status_code": 403,
  "summary": "Couldn't update account transactions",
  "type": "AccountAccessForbidden"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "EUA doesn't allow access to account transactions. Check EUA access scope. Or create new EUA with correct access scope",
  "status_code": 403,
  "summary": "End User Agreement (EUA) access scope error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Account exists but there is no valid End User Agreement permitting you to access it",
  "status_code": 403,
  "summary": "No valid End User Agreement"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Please check whether you specified a valid Account ID",
  "status_code": 404,
  "summary": "Account ID $ACC_ID not found"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "aspsp_identifier": "string",
  "created": "2023-03-03 17:05:05.270281+00:00",
  "iban": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "last_accessed": "2023-03-03 17:05:05.270299+00:00",
  "status": "ERROR"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "This account or its requisition was suspended due to numerous errors that occurred while accessing it.",
  "status_code": 409,
  "summary": "Account suspended"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Daily request limit set by the Institution has been exceeded.",
  "status_code": 429,
  "summary": "Couldn't update account transactions",
  "type": "RateLimitError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Request to Institution returned an error",
  "status_code": 500,
  "summary": "Couldn't update account transactions",
  "type": "UnknownRequestError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Couldn't connect to Institution",
  "status_code": 503,
  "summary": "Couldn't update account transactions",
  "type": "ConnectionError"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Institution service unavailable",
  "status_code": 503,
  "summary": "Couldn't update account transactions",
  "type": "ServiceError"
}
DELETE delete requisition by id v2
{{baseUrl}}/api/v2/requisitions/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/delete "{{baseUrl}}/api/v2/requisitions/:id/")
require "http/client"

url = "{{baseUrl}}/api/v2/requisitions/:id/"

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

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

func main() {

	url := "{{baseUrl}}/api/v2/requisitions/:id/"

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

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

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

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

}
DELETE /baseUrl/api/v2/requisitions/:id/ HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/requisitions/:id/"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/requisitions/:id/")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/v2/requisitions/:id/")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/api/v2/requisitions/:id/');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/requisitions/:id/'};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/requisitions/:id/',
  method: 'DELETE',
  headers: {}
};

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/requisitions/:id/',
  headers: {}
};

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

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

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/requisitions/:id/'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/api/v2/requisitions/:id/');

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/api/v2/requisitions/:id/'};

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

const url = '{{baseUrl}}/api/v2/requisitions/:id/';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/requisitions/:id/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/api/v2/requisitions/:id/" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/api/v2/requisitions/:id/")

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

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

url = "{{baseUrl}}/api/v2/requisitions/:id/"

response = requests.delete(url)

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

url <- "{{baseUrl}}/api/v2/requisitions/:id/"

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

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

url = URI("{{baseUrl}}/api/v2/requisitions/:id/")

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

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

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

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

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

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

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

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

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

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
GET requisition by id
{{baseUrl}}/api/v2/requisitions/:id/
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/api/v2/requisitions/:id/")
require "http/client"

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

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

func main() {

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/requisitions/:id/'};

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/api/v2/requisitions/:id/")

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

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

url = "{{baseUrl}}/api/v2/requisitions/:id/"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/v2/requisitions/:id/"

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

{
  "detail": "272785d5-de45-4efb-aa1a-f8157ffa94 is not a valid UUID.",
  "status_code": 400,
  "summary": "Invalid ID"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
POST requisition created
{{baseUrl}}/api/v2/requisitions/
BODY json

{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/requisitions/");

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_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/v2/requisitions/" {:content-type :json
                                                                 :form-params {:account_selection false
                                                                               :agreement ""
                                                                               :institution_id ""
                                                                               :redirect ""
                                                                               :redirect_immediate false
                                                                               :reference ""
                                                                               :ssn ""
                                                                               :user_language ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/requisitions/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v2/requisitions/"),
    Content = new StringContent("{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v2/requisitions/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/v2/requisitions/"

	payload := strings.NewReader("{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/api/v2/requisitions/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 179

{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/requisitions/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/requisitions/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/requisitions/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/requisitions/")
  .header("content-type", "application/json")
  .body("{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  account_selection: false,
  agreement: '',
  institution_id: '',
  redirect: '',
  redirect_immediate: false,
  reference: '',
  ssn: '',
  user_language: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/requisitions/',
  headers: {'content-type': 'application/json'},
  data: {
    account_selection: false,
    agreement: '',
    institution_id: '',
    redirect: '',
    redirect_immediate: false,
    reference: '',
    ssn: '',
    user_language: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/requisitions/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_selection":false,"agreement":"","institution_id":"","redirect":"","redirect_immediate":false,"reference":"","ssn":"","user_language":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v2/requisitions/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "account_selection": false,\n  "agreement": "",\n  "institution_id": "",\n  "redirect": "",\n  "redirect_immediate": false,\n  "reference": "",\n  "ssn": "",\n  "user_language": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/requisitions/")
  .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/api/v2/requisitions/',
  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_selection: false,
  agreement: '',
  institution_id: '',
  redirect: '',
  redirect_immediate: false,
  reference: '',
  ssn: '',
  user_language: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/requisitions/',
  headers: {'content-type': 'application/json'},
  body: {
    account_selection: false,
    agreement: '',
    institution_id: '',
    redirect: '',
    redirect_immediate: false,
    reference: '',
    ssn: '',
    user_language: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/v2/requisitions/');

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

req.type('json');
req.send({
  account_selection: false,
  agreement: '',
  institution_id: '',
  redirect: '',
  redirect_immediate: false,
  reference: '',
  ssn: '',
  user_language: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/requisitions/',
  headers: {'content-type': 'application/json'},
  data: {
    account_selection: false,
    agreement: '',
    institution_id: '',
    redirect: '',
    redirect_immediate: false,
    reference: '',
    ssn: '',
    user_language: ''
  }
};

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

const url = '{{baseUrl}}/api/v2/requisitions/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"account_selection":false,"agreement":"","institution_id":"","redirect":"","redirect_immediate":false,"reference":"","ssn":"","user_language":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"account_selection": @NO,
                              @"agreement": @"",
                              @"institution_id": @"",
                              @"redirect": @"",
                              @"redirect_immediate": @NO,
                              @"reference": @"",
                              @"ssn": @"",
                              @"user_language": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/requisitions/"]
                                                       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}}/api/v2/requisitions/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/requisitions/",
  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_selection' => null,
    'agreement' => '',
    'institution_id' => '',
    'redirect' => '',
    'redirect_immediate' => null,
    'reference' => '',
    'ssn' => '',
    'user_language' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v2/requisitions/', [
  'body' => '{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'account_selection' => null,
  'agreement' => '',
  'institution_id' => '',
  'redirect' => '',
  'redirect_immediate' => null,
  'reference' => '',
  'ssn' => '',
  'user_language' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'account_selection' => null,
  'agreement' => '',
  'institution_id' => '',
  'redirect' => '',
  'redirect_immediate' => null,
  'reference' => '',
  'ssn' => '',
  'user_language' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/requisitions/');
$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}}/api/v2/requisitions/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/requisitions/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}'
import http.client

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

payload = "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"

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

conn.request("POST", "/baseUrl/api/v2/requisitions/", payload, headers)

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

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

url = "{{baseUrl}}/api/v2/requisitions/"

payload = {
    "account_selection": False,
    "agreement": "",
    "institution_id": "",
    "redirect": "",
    "redirect_immediate": False,
    "reference": "",
    "ssn": "",
    "user_language": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/v2/requisitions/"

payload <- "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/v2/requisitions/")

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_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"

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

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

response = conn.post('/baseUrl/api/v2/requisitions/') do |req|
  req.body = "{\n  \"account_selection\": false,\n  \"agreement\": \"\",\n  \"institution_id\": \"\",\n  \"redirect\": \"\",\n  \"redirect_immediate\": false,\n  \"reference\": \"\",\n  \"ssn\": \"\",\n  \"user_language\": \"\"\n}"
end

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

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

    let payload = json!({
        "account_selection": false,
        "agreement": "",
        "institution_id": "",
        "redirect": "",
        "redirect_immediate": false,
        "reference": "",
        "ssn": "",
        "user_language": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v2/requisitions/ \
  --header 'content-type: application/json' \
  --data '{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}'
echo '{
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
}' |  \
  http POST {{baseUrl}}/api/v2/requisitions/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "account_selection": false,\n  "agreement": "",\n  "institution_id": "",\n  "redirect": "",\n  "redirect_immediate": false,\n  "reference": "",\n  "ssn": "",\n  "user_language": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/requisitions/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "account_selection": false,
  "agreement": "",
  "institution_id": "",
  "redirect": "",
  "redirect_immediate": false,
  "reference": "",
  "ssn": "",
  "user_language": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/requisitions/")! 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_selection": {
    "detail": "Account selection not supported for $INSTITUTION_ID",
    "summary": "Account selection not supported"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "agreement": [
    {
      "detail": "Get Institution IDs from /institutions/?country={$COUNTRY_CODE}",
      "summary": "Unknown Institution ID $ASPSP_ID"
    },
    {
      "detail": "$AGREEMENT_ID is not a valid EndUserAgreement UUID.  Please specify valid agreement from /api/agreements/enduser/?={$ENDUSER_ID} or create a new one",
      "summary": "Invalid EndUserAgreement ID"
    }
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "institution_id": [
    "This field is required."
  ],
  "redirect": [
    "This field is required."
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "institution_id": {
    "detail": "Get Institution IDs from /institutions/?country={$COUNTRY_CODE}",
    "summary": "Unknown Institution ID $INSTITUTION_ID"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "redirect": [
    {
      "detail": "Where an end user will be redirected after finishing authentication in ASPSP",
      "summary": "Redirect URL is required"
    },
    {
      "detail": "Redirect URI must have a valid URI structure",
      "summary": "Invalid redirect URI"
    }
  ],
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "reference": {
    "detail": "Client reference: $REFERENCE_ID already exists",
    "summary": "Client reference must be unique"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ssn": {
    "detail": "SSN verification not supported for $INSTITUTION_ID",
    "summary": "SSN verification not supported"
  },
  "status_code": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 400,
  "user_language": {
    "detail": "'$LNG_CODE' is an invalid or unsupported language",
    "summary": "Provided user_language is invalid or not supported"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "agreement": {
    "detail": "Please check whether you specified a valid ID",
    "summary": "ID $AGREEMENT_ID not found"
  },
  "status_code": 404
}
GET retrieve all requisitions
{{baseUrl}}/api/v2/requisitions/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/requisitions/");

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

(client/get "{{baseUrl}}/api/v2/requisitions/")
require "http/client"

url = "{{baseUrl}}/api/v2/requisitions/"

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}}/api/v2/requisitions/"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v2/requisitions/");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v2/requisitions/"

	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/api/v2/requisitions/ HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/v2/requisitions/")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/requisitions/"))
    .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}}/api/v2/requisitions/")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/v2/requisitions/")
  .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}}/api/v2/requisitions/');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/api/v2/requisitions/'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/requisitions/';
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}}/api/v2/requisitions/',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/requisitions/")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v2/requisitions/',
  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}}/api/v2/requisitions/'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/v2/requisitions/');

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}}/api/v2/requisitions/'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v2/requisitions/';
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}}/api/v2/requisitions/"]
                                                       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}}/api/v2/requisitions/" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/requisitions/",
  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}}/api/v2/requisitions/');

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/requisitions/');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/v2/requisitions/');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v2/requisitions/' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/requisitions/' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/api/v2/requisitions/")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v2/requisitions/"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v2/requisitions/"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v2/requisitions/")

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/api/v2/requisitions/') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v2/requisitions/";

    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}}/api/v2/requisitions/
http GET {{baseUrl}}/api/v2/requisitions/
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/api/v2/requisitions/
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/requisitions/")! 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

{
  "count": 123,
  "next": "https://ob.nordigen.com/api/v2/requisitions/?limit=100&offset=0",
  "previous": "https://ob.nordigen.com/api/v2/requisitions/?limit=100&offset=0"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Unknown fields {${FIELD}} in {${LOCATION}}",
  "status_code": 400,
  "summary": "Unknown fields"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Not found.",
  "status_code": 404,
  "summary": "Not found."
}
POST JWT Obtain
{{baseUrl}}/api/v2/token/new/
BODY json

{
  "secret_id": "",
  "secret_key": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/token/new/");

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  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v2/token/new/" {:content-type :json
                                                              :form-params {:secret_id ""
                                                                            :secret_key ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/token/new/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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}}/api/v2/token/new/"),
    Content = new StringContent("{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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}}/api/v2/token/new/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v2/token/new/"

	payload := strings.NewReader("{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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/api/v2/token/new/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 41

{
  "secret_id": "",
  "secret_key": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/token/new/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/token/new/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/token/new/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/token/new/")
  .header("content-type", "application/json")
  .body("{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  secret_id: '',
  secret_key: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v2/token/new/');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/token/new/',
  headers: {'content-type': 'application/json'},
  data: {secret_id: '', secret_key: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/token/new/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"secret_id":"","secret_key":""}'
};

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}}/api/v2/token/new/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "secret_id": "",\n  "secret_key": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/token/new/")
  .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/api/v2/token/new/',
  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({secret_id: '', secret_key: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/token/new/',
  headers: {'content-type': 'application/json'},
  body: {secret_id: '', secret_key: ''},
  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}}/api/v2/token/new/');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  secret_id: '',
  secret_key: ''
});

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}}/api/v2/token/new/',
  headers: {'content-type': 'application/json'},
  data: {secret_id: '', secret_key: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v2/token/new/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"secret_id":"","secret_key":""}'
};

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 = @{ @"secret_id": @"",
                              @"secret_key": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/token/new/"]
                                                       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}}/api/v2/token/new/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/token/new/",
  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([
    'secret_id' => '',
    'secret_key' => ''
  ]),
  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}}/api/v2/token/new/', [
  'body' => '{
  "secret_id": "",
  "secret_key": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/token/new/');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'secret_id' => '',
  'secret_key' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'secret_id' => '',
  'secret_key' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/token/new/');
$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}}/api/v2/token/new/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "secret_id": "",
  "secret_key": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/token/new/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "secret_id": "",
  "secret_key": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v2/token/new/", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v2/token/new/"

payload = {
    "secret_id": "",
    "secret_key": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v2/token/new/"

payload <- "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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}}/api/v2/token/new/")

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  \"secret_id\": \"\",\n  \"secret_key\": \"\"\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/api/v2/token/new/') do |req|
  req.body = "{\n  \"secret_id\": \"\",\n  \"secret_key\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v2/token/new/";

    let payload = json!({
        "secret_id": "",
        "secret_key": ""
    });

    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}}/api/v2/token/new/ \
  --header 'content-type: application/json' \
  --data '{
  "secret_id": "",
  "secret_key": ""
}'
echo '{
  "secret_id": "",
  "secret_key": ""
}' |  \
  http POST {{baseUrl}}/api/v2/token/new/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "secret_id": "",\n  "secret_key": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/token/new/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "secret_id": "",
  "secret_key": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/token/new/")! 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

{
  "detail": "No active account found with the given credentials",
  "status_code": 401,
  "summary": "Authentication failed"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}
POST JWT Refresh
{{baseUrl}}/api/v2/token/refresh/
BODY json

{
  "refresh": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v2/token/refresh/");

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  \"refresh\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v2/token/refresh/" {:content-type :json
                                                                  :form-params {:refresh ""}})
require "http/client"

url = "{{baseUrl}}/api/v2/token/refresh/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"refresh\": \"\"\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}}/api/v2/token/refresh/"),
    Content = new StringContent("{\n  \"refresh\": \"\"\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}}/api/v2/token/refresh/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"refresh\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v2/token/refresh/"

	payload := strings.NewReader("{\n  \"refresh\": \"\"\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/api/v2/token/refresh/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "refresh": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v2/token/refresh/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"refresh\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v2/token/refresh/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"refresh\": \"\"\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  \"refresh\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v2/token/refresh/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v2/token/refresh/")
  .header("content-type", "application/json")
  .body("{\n  \"refresh\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  refresh: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v2/token/refresh/');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/token/refresh/',
  headers: {'content-type': 'application/json'},
  data: {refresh: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v2/token/refresh/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"refresh":""}'
};

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}}/api/v2/token/refresh/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "refresh": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"refresh\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v2/token/refresh/")
  .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/api/v2/token/refresh/',
  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({refresh: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v2/token/refresh/',
  headers: {'content-type': 'application/json'},
  body: {refresh: ''},
  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}}/api/v2/token/refresh/');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  refresh: ''
});

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}}/api/v2/token/refresh/',
  headers: {'content-type': 'application/json'},
  data: {refresh: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v2/token/refresh/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"refresh":""}'
};

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 = @{ @"refresh": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v2/token/refresh/"]
                                                       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}}/api/v2/token/refresh/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"refresh\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v2/token/refresh/",
  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([
    'refresh' => ''
  ]),
  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}}/api/v2/token/refresh/', [
  'body' => '{
  "refresh": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v2/token/refresh/');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'refresh' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'refresh' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v2/token/refresh/');
$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}}/api/v2/token/refresh/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "refresh": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v2/token/refresh/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "refresh": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"refresh\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v2/token/refresh/", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v2/token/refresh/"

payload = { "refresh": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v2/token/refresh/"

payload <- "{\n  \"refresh\": \"\"\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}}/api/v2/token/refresh/")

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  \"refresh\": \"\"\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/api/v2/token/refresh/') do |req|
  req.body = "{\n  \"refresh\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v2/token/refresh/";

    let payload = json!({"refresh": ""});

    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}}/api/v2/token/refresh/ \
  --header 'content-type: application/json' \
  --data '{
  "refresh": ""
}'
echo '{
  "refresh": ""
}' |  \
  http POST {{baseUrl}}/api/v2/token/refresh/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "refresh": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v2/token/refresh/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["refresh": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v2/token/refresh/")! 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

{
  "detail": "Token is invalid or expired",
  "status_code": 401,
  "summary": "Invalid token"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "detail": "Your IP $IP_ADDRESS isn't whitelisted to perform this action",
  "status_code": 403,
  "summary": "IP address access denied"
}