POST Store details and submit a payout
{{baseUrl}}/storeDetailAndSubmitThirdParty
BODY json

{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");

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

(client/post "{{baseUrl}}/storeDetailAndSubmitThirdParty" {:content-type :json
                                                                           :form-params {:additionalData {}
                                                                                         :amount {:currency ""
                                                                                                  :value 0}
                                                                                         :bank {:bankAccountNumber ""
                                                                                                :bankCity ""
                                                                                                :bankLocationId ""
                                                                                                :bankName ""
                                                                                                :bic ""
                                                                                                :countryCode ""
                                                                                                :iban ""
                                                                                                :ownerName ""
                                                                                                :taxId ""}
                                                                                         :billingAddress {:city ""
                                                                                                          :country ""
                                                                                                          :houseNumberOrName ""
                                                                                                          :postalCode ""
                                                                                                          :stateOrProvince ""
                                                                                                          :street ""}
                                                                                         :card {:cvc ""
                                                                                                :expiryMonth ""
                                                                                                :expiryYear ""
                                                                                                :holderName ""
                                                                                                :issueNumber ""
                                                                                                :number ""
                                                                                                :startMonth ""
                                                                                                :startYear ""}
                                                                                         :dateOfBirth ""
                                                                                         :entityType ""
                                                                                         :fraudOffset 0
                                                                                         :merchantAccount ""
                                                                                         :nationality ""
                                                                                         :recurring {:contract ""
                                                                                                     :recurringDetailName ""
                                                                                                     :tokenService ""}
                                                                                         :reference ""
                                                                                         :selectedBrand ""
                                                                                         :shopperEmail ""
                                                                                         :shopperName {:firstName ""
                                                                                                       :lastName ""}
                                                                                         :shopperReference ""
                                                                                         :shopperStatement ""
                                                                                         :socialSecurityNumber ""}})
require "http/client"

url = "{{baseUrl}}/storeDetailAndSubmitThirdParty"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetailAndSubmitThirdParty"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetailAndSubmitThirdParty");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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/storeDetailAndSubmitThirdParty HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1035

{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/storeDetailAndSubmitThirdParty")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/storeDetailAndSubmitThirdParty"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/storeDetailAndSubmitThirdParty")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/storeDetailAndSubmitThirdParty")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  amount: {
    currency: '',
    value: 0
  },
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/storeDetailAndSubmitThirdParty',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    amount: {currency: '', value: 0},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/storeDetailAndSubmitThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"amount":{"currency":"","value":0},"bank":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedBrand":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":""}'
};

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}}/storeDetailAndSubmitThirdParty',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "bank": {\n    "bankAccountNumber": "",\n    "bankCity": "",\n    "bankLocationId": "",\n    "bankName": "",\n    "bic": "",\n    "countryCode": "",\n    "iban": "",\n    "ownerName": "",\n    "taxId": ""\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedBrand": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/storeDetailAndSubmitThirdParty")
  .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/storeDetailAndSubmitThirdParty',
  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({
  additionalData: {},
  amount: {currency: '', value: 0},
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {contract: '', recurringDetailName: '', tokenService: ''},
  reference: '',
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {firstName: '', lastName: ''},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/storeDetailAndSubmitThirdParty',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    amount: {currency: '', value: 0},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  },
  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}}/storeDetailAndSubmitThirdParty');

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

req.type('json');
req.send({
  additionalData: {},
  amount: {
    currency: '',
    value: 0
  },
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
});

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}}/storeDetailAndSubmitThirdParty',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    amount: {currency: '', value: 0},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  }
};

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

const url = '{{baseUrl}}/storeDetailAndSubmitThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"amount":{"currency":"","value":0},"bank":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedBrand":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":""}'
};

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 = @{ @"additionalData": @{  },
                              @"amount": @{ @"currency": @"", @"value": @0 },
                              @"bank": @{ @"bankAccountNumber": @"", @"bankCity": @"", @"bankLocationId": @"", @"bankName": @"", @"bic": @"", @"countryCode": @"", @"iban": @"", @"ownerName": @"", @"taxId": @"" },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"card": @{ @"cvc": @"", @"expiryMonth": @"", @"expiryYear": @"", @"holderName": @"", @"issueNumber": @"", @"number": @"", @"startMonth": @"", @"startYear": @"" },
                              @"dateOfBirth": @"",
                              @"entityType": @"",
                              @"fraudOffset": @0,
                              @"merchantAccount": @"",
                              @"nationality": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"tokenService": @"" },
                              @"reference": @"",
                              @"selectedBrand": @"",
                              @"shopperEmail": @"",
                              @"shopperName": @{ @"firstName": @"", @"lastName": @"" },
                              @"shopperReference": @"",
                              @"shopperStatement": @"",
                              @"socialSecurityNumber": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/storeDetailAndSubmitThirdParty"]
                                                       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}}/storeDetailAndSubmitThirdParty" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/storeDetailAndSubmitThirdParty",
  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([
    'additionalData' => [
        
    ],
    'amount' => [
        'currency' => '',
        'value' => 0
    ],
    'bank' => [
        'bankAccountNumber' => '',
        'bankCity' => '',
        'bankLocationId' => '',
        'bankName' => '',
        'bic' => '',
        'countryCode' => '',
        'iban' => '',
        'ownerName' => '',
        'taxId' => ''
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'card' => [
        'cvc' => '',
        'expiryMonth' => '',
        'expiryYear' => '',
        'holderName' => '',
        'issueNumber' => '',
        'number' => '',
        'startMonth' => '',
        'startYear' => ''
    ],
    'dateOfBirth' => '',
    'entityType' => '',
    'fraudOffset' => 0,
    'merchantAccount' => '',
    'nationality' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'tokenService' => ''
    ],
    'reference' => '',
    'selectedBrand' => '',
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'shopperStatement' => '',
    'socialSecurityNumber' => ''
  ]),
  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}}/storeDetailAndSubmitThirdParty', [
  'body' => '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'bank' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedBrand' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'bank' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedBrand' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => ''
]));
$request->setRequestUrl('{{baseUrl}}/storeDetailAndSubmitThirdParty');
$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}}/storeDetailAndSubmitThirdParty' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/storeDetailAndSubmitThirdParty' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/storeDetailAndSubmitThirdParty"

payload = {
    "additionalData": {},
    "amount": {
        "currency": "",
        "value": 0
    },
    "bank": {
        "bankAccountNumber": "",
        "bankCity": "",
        "bankLocationId": "",
        "bankName": "",
        "bic": "",
        "countryCode": "",
        "iban": "",
        "ownerName": "",
        "taxId": ""
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "card": {
        "cvc": "",
        "expiryMonth": "",
        "expiryYear": "",
        "holderName": "",
        "issueNumber": "",
        "number": "",
        "startMonth": "",
        "startYear": ""
    },
    "dateOfBirth": "",
    "entityType": "",
    "fraudOffset": 0,
    "merchantAccount": "",
    "nationality": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "tokenService": ""
    },
    "reference": "",
    "selectedBrand": "",
    "shopperEmail": "",
    "shopperName": {
        "firstName": "",
        "lastName": ""
    },
    "shopperReference": "",
    "shopperStatement": "",
    "socialSecurityNumber": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetailAndSubmitThirdParty")

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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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/storeDetailAndSubmitThirdParty') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "amount": json!({
            "currency": "",
            "value": 0
        }),
        "bank": json!({
            "bankAccountNumber": "",
            "bankCity": "",
            "bankLocationId": "",
            "bankName": "",
            "bic": "",
            "countryCode": "",
            "iban": "",
            "ownerName": "",
            "taxId": ""
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "card": json!({
            "cvc": "",
            "expiryMonth": "",
            "expiryYear": "",
            "holderName": "",
            "issueNumber": "",
            "number": "",
            "startMonth": "",
            "startYear": ""
        }),
        "dateOfBirth": "",
        "entityType": "",
        "fraudOffset": 0,
        "merchantAccount": "",
        "nationality": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "tokenService": ""
        }),
        "reference": "",
        "selectedBrand": "",
        "shopperEmail": "",
        "shopperName": json!({
            "firstName": "",
            "lastName": ""
        }),
        "shopperReference": "",
        "shopperStatement": "",
        "socialSecurityNumber": ""
    });

    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}}/storeDetailAndSubmitThirdParty \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
echo '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}' |  \
  http POST {{baseUrl}}/storeDetailAndSubmitThirdParty \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "bank": {\n    "bankAccountNumber": "",\n    "bankCity": "",\n    "bankLocationId": "",\n    "bankName": "",\n    "bic": "",\n    "countryCode": "",\n    "iban": "",\n    "ownerName": "",\n    "taxId": ""\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedBrand": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": ""\n}' \
  --output-document \
  - {{baseUrl}}/storeDetailAndSubmitThirdParty
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "amount": [
    "currency": "",
    "value": 0
  ],
  "bank": [
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "card": [
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  ],
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  ],
  "reference": "",
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": [
    "firstName": "",
    "lastName": ""
  ],
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
] as [String : Any]

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

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

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}
POST Store payout details
{{baseUrl}}/storeDetail
BODY json

{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");

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

(client/post "{{baseUrl}}/storeDetail" {:content-type :json
                                                        :form-params {:additionalData {}
                                                                      :bank {:bankAccountNumber ""
                                                                             :bankCity ""
                                                                             :bankLocationId ""
                                                                             :bankName ""
                                                                             :bic ""
                                                                             :countryCode ""
                                                                             :iban ""
                                                                             :ownerName ""
                                                                             :taxId ""}
                                                                      :billingAddress {:city ""
                                                                                       :country ""
                                                                                       :houseNumberOrName ""
                                                                                       :postalCode ""
                                                                                       :stateOrProvince ""
                                                                                       :street ""}
                                                                      :card {:cvc ""
                                                                             :expiryMonth ""
                                                                             :expiryYear ""
                                                                             :holderName ""
                                                                             :issueNumber ""
                                                                             :number ""
                                                                             :startMonth ""
                                                                             :startYear ""}
                                                                      :dateOfBirth ""
                                                                      :entityType ""
                                                                      :fraudOffset 0
                                                                      :merchantAccount ""
                                                                      :nationality ""
                                                                      :recurring {:contract ""
                                                                                  :recurringDetailName ""
                                                                                  :tokenService ""}
                                                                      :selectedBrand ""
                                                                      :shopperEmail ""
                                                                      :shopperName {:firstName ""
                                                                                    :lastName ""}
                                                                      :shopperReference ""
                                                                      :socialSecurityNumber ""}})
require "http/client"

url = "{{baseUrl}}/storeDetail"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetail"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetail");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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/storeDetail HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 936

{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/storeDetail")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/storeDetail"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/storeDetail")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/storeDetail")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  socialSecurityNumber: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/storeDetail',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    socialSecurityNumber: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/storeDetail';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"bank":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"selectedBrand":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","socialSecurityNumber":""}'
};

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}}/storeDetail',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "bank": {\n    "bankAccountNumber": "",\n    "bankCity": "",\n    "bankLocationId": "",\n    "bankName": "",\n    "bic": "",\n    "countryCode": "",\n    "iban": "",\n    "ownerName": "",\n    "taxId": ""\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "selectedBrand": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "socialSecurityNumber": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/storeDetail")
  .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/storeDetail',
  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({
  additionalData: {},
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {contract: '', recurringDetailName: '', tokenService: ''},
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {firstName: '', lastName: ''},
  shopperReference: '',
  socialSecurityNumber: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/storeDetail',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    socialSecurityNumber: ''
  },
  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}}/storeDetail');

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

req.type('json');
req.send({
  additionalData: {},
  bank: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  selectedBrand: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  socialSecurityNumber: ''
});

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}}/storeDetail',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    bank: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    selectedBrand: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    socialSecurityNumber: ''
  }
};

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

const url = '{{baseUrl}}/storeDetail';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"bank":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"selectedBrand":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","socialSecurityNumber":""}'
};

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 = @{ @"additionalData": @{  },
                              @"bank": @{ @"bankAccountNumber": @"", @"bankCity": @"", @"bankLocationId": @"", @"bankName": @"", @"bic": @"", @"countryCode": @"", @"iban": @"", @"ownerName": @"", @"taxId": @"" },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"card": @{ @"cvc": @"", @"expiryMonth": @"", @"expiryYear": @"", @"holderName": @"", @"issueNumber": @"", @"number": @"", @"startMonth": @"", @"startYear": @"" },
                              @"dateOfBirth": @"",
                              @"entityType": @"",
                              @"fraudOffset": @0,
                              @"merchantAccount": @"",
                              @"nationality": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"tokenService": @"" },
                              @"selectedBrand": @"",
                              @"shopperEmail": @"",
                              @"shopperName": @{ @"firstName": @"", @"lastName": @"" },
                              @"shopperReference": @"",
                              @"socialSecurityNumber": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/storeDetail"]
                                                       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}}/storeDetail" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/storeDetail",
  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([
    'additionalData' => [
        
    ],
    'bank' => [
        'bankAccountNumber' => '',
        'bankCity' => '',
        'bankLocationId' => '',
        'bankName' => '',
        'bic' => '',
        'countryCode' => '',
        'iban' => '',
        'ownerName' => '',
        'taxId' => ''
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'card' => [
        'cvc' => '',
        'expiryMonth' => '',
        'expiryYear' => '',
        'holderName' => '',
        'issueNumber' => '',
        'number' => '',
        'startMonth' => '',
        'startYear' => ''
    ],
    'dateOfBirth' => '',
    'entityType' => '',
    'fraudOffset' => 0,
    'merchantAccount' => '',
    'nationality' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'tokenService' => ''
    ],
    'selectedBrand' => '',
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'socialSecurityNumber' => ''
  ]),
  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}}/storeDetail', [
  'body' => '{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'bank' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'selectedBrand' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'socialSecurityNumber' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'bank' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'selectedBrand' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'socialSecurityNumber' => ''
]));
$request->setRequestUrl('{{baseUrl}}/storeDetail');
$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}}/storeDetail' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/storeDetail' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/storeDetail"

payload = {
    "additionalData": {},
    "bank": {
        "bankAccountNumber": "",
        "bankCity": "",
        "bankLocationId": "",
        "bankName": "",
        "bic": "",
        "countryCode": "",
        "iban": "",
        "ownerName": "",
        "taxId": ""
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "card": {
        "cvc": "",
        "expiryMonth": "",
        "expiryYear": "",
        "holderName": "",
        "issueNumber": "",
        "number": "",
        "startMonth": "",
        "startYear": ""
    },
    "dateOfBirth": "",
    "entityType": "",
    "fraudOffset": 0,
    "merchantAccount": "",
    "nationality": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "tokenService": ""
    },
    "selectedBrand": "",
    "shopperEmail": "",
    "shopperName": {
        "firstName": "",
        "lastName": ""
    },
    "shopperReference": "",
    "socialSecurityNumber": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/storeDetail")

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  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\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/storeDetail') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"bank\": {\n    \"bankAccountNumber\": \"\",\n    \"bankCity\": \"\",\n    \"bankLocationId\": \"\",\n    \"bankName\": \"\",\n    \"bic\": \"\",\n    \"countryCode\": \"\",\n    \"iban\": \"\",\n    \"ownerName\": \"\",\n    \"taxId\": \"\"\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"selectedBrand\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "bank": json!({
            "bankAccountNumber": "",
            "bankCity": "",
            "bankLocationId": "",
            "bankName": "",
            "bic": "",
            "countryCode": "",
            "iban": "",
            "ownerName": "",
            "taxId": ""
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "card": json!({
            "cvc": "",
            "expiryMonth": "",
            "expiryYear": "",
            "holderName": "",
            "issueNumber": "",
            "number": "",
            "startMonth": "",
            "startYear": ""
        }),
        "dateOfBirth": "",
        "entityType": "",
        "fraudOffset": 0,
        "merchantAccount": "",
        "nationality": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "tokenService": ""
        }),
        "selectedBrand": "",
        "shopperEmail": "",
        "shopperName": json!({
            "firstName": "",
            "lastName": ""
        }),
        "shopperReference": "",
        "socialSecurityNumber": ""
    });

    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}}/storeDetail \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}'
echo '{
  "additionalData": {},
  "bank": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "socialSecurityNumber": ""
}' |  \
  http POST {{baseUrl}}/storeDetail \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "bank": {\n    "bankAccountNumber": "",\n    "bankCity": "",\n    "bankLocationId": "",\n    "bankName": "",\n    "bic": "",\n    "countryCode": "",\n    "iban": "",\n    "ownerName": "",\n    "taxId": ""\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "selectedBrand": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "socialSecurityNumber": ""\n}' \
  --output-document \
  - {{baseUrl}}/storeDetail
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "bank": [
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "card": [
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  ],
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  ],
  "selectedBrand": "",
  "shopperEmail": "",
  "shopperName": [
    "firstName": "",
    "lastName": ""
  ],
  "shopperReference": "",
  "socialSecurityNumber": ""
] as [String : Any]

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

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

{
  "pspReference": "991617894326362D",
  "recurringDetailReference": "9916178936754752",
  "resultCode": "Success"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}
POST Submit a payout
{{baseUrl}}/submitThirdParty
BODY json

{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");

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

(client/post "{{baseUrl}}/submitThirdParty" {:content-type :json
                                                             :form-params {:additionalData {}
                                                                           :amount {:currency ""
                                                                                    :value 0}
                                                                           :dateOfBirth ""
                                                                           :entityType ""
                                                                           :fraudOffset 0
                                                                           :merchantAccount ""
                                                                           :nationality ""
                                                                           :recurring {:contract ""
                                                                                       :recurringDetailName ""
                                                                                       :tokenService ""}
                                                                           :reference ""
                                                                           :selectedRecurringDetailReference ""
                                                                           :shopperEmail ""
                                                                           :shopperName {:firstName ""
                                                                                         :lastName ""}
                                                                           :shopperReference ""
                                                                           :shopperStatement ""
                                                                           :socialSecurityNumber ""}})
require "http/client"

url = "{{baseUrl}}/submitThirdParty"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/submitThirdParty"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/submitThirdParty");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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/submitThirdParty HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 512

{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/submitThirdParty")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/submitThirdParty"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/submitThirdParty")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/submitThirdParty")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  amount: {
    currency: '',
    value: 0
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/submitThirdParty',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    amount: {currency: '', value: 0},
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/submitThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"amount":{"currency":"","value":0},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedRecurringDetailReference":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":""}'
};

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}}/submitThirdParty',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedRecurringDetailReference": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/submitThirdParty")
  .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/submitThirdParty',
  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({
  additionalData: {},
  amount: {currency: '', value: 0},
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {contract: '', recurringDetailName: '', tokenService: ''},
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperName: {firstName: '', lastName: ''},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/submitThirdParty',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    amount: {currency: '', value: 0},
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  },
  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}}/submitThirdParty');

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

req.type('json');
req.send({
  additionalData: {},
  amount: {
    currency: '',
    value: 0
  },
  dateOfBirth: '',
  entityType: '',
  fraudOffset: 0,
  merchantAccount: '',
  nationality: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: ''
});

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}}/submitThirdParty',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    amount: {currency: '', value: 0},
    dateOfBirth: '',
    entityType: '',
    fraudOffset: 0,
    merchantAccount: '',
    nationality: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: ''
  }
};

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

const url = '{{baseUrl}}/submitThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"amount":{"currency":"","value":0},"dateOfBirth":"","entityType":"","fraudOffset":0,"merchantAccount":"","nationality":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedRecurringDetailReference":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":""}'
};

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 = @{ @"additionalData": @{  },
                              @"amount": @{ @"currency": @"", @"value": @0 },
                              @"dateOfBirth": @"",
                              @"entityType": @"",
                              @"fraudOffset": @0,
                              @"merchantAccount": @"",
                              @"nationality": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"tokenService": @"" },
                              @"reference": @"",
                              @"selectedRecurringDetailReference": @"",
                              @"shopperEmail": @"",
                              @"shopperName": @{ @"firstName": @"", @"lastName": @"" },
                              @"shopperReference": @"",
                              @"shopperStatement": @"",
                              @"socialSecurityNumber": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/submitThirdParty"]
                                                       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}}/submitThirdParty" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/submitThirdParty",
  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([
    'additionalData' => [
        
    ],
    'amount' => [
        'currency' => '',
        'value' => 0
    ],
    'dateOfBirth' => '',
    'entityType' => '',
    'fraudOffset' => 0,
    'merchantAccount' => '',
    'nationality' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'tokenService' => ''
    ],
    'reference' => '',
    'selectedRecurringDetailReference' => '',
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'shopperStatement' => '',
    'socialSecurityNumber' => ''
  ]),
  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}}/submitThirdParty', [
  'body' => '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedRecurringDetailReference' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'dateOfBirth' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'merchantAccount' => '',
  'nationality' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedRecurringDetailReference' => '',
  'shopperEmail' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => ''
]));
$request->setRequestUrl('{{baseUrl}}/submitThirdParty');
$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}}/submitThirdParty' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/submitThirdParty' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/submitThirdParty"

payload = {
    "additionalData": {},
    "amount": {
        "currency": "",
        "value": 0
    },
    "dateOfBirth": "",
    "entityType": "",
    "fraudOffset": 0,
    "merchantAccount": "",
    "nationality": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "tokenService": ""
    },
    "reference": "",
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
        "firstName": "",
        "lastName": ""
    },
    "shopperReference": "",
    "shopperStatement": "",
    "socialSecurityNumber": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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}}/submitThirdParty")

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  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\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/submitThirdParty') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"dateOfBirth\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"merchantAccount\": \"\",\n  \"nationality\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "amount": json!({
            "currency": "",
            "value": 0
        }),
        "dateOfBirth": "",
        "entityType": "",
        "fraudOffset": 0,
        "merchantAccount": "",
        "nationality": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "tokenService": ""
        }),
        "reference": "",
        "selectedRecurringDetailReference": "",
        "shopperEmail": "",
        "shopperName": json!({
            "firstName": "",
            "lastName": ""
        }),
        "shopperReference": "",
        "shopperStatement": "",
        "socialSecurityNumber": ""
    });

    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}}/submitThirdParty \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}'
echo '{
  "additionalData": {},
  "amount": {
    "currency": "",
    "value": 0
  },
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
}' |  \
  http POST {{baseUrl}}/submitThirdParty \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "dateOfBirth": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "merchantAccount": "",\n  "nationality": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedRecurringDetailReference": "",\n  "shopperEmail": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": ""\n}' \
  --output-document \
  - {{baseUrl}}/submitThirdParty
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "amount": [
    "currency": "",
    "value": 0
  ],
  "dateOfBirth": "",
  "entityType": "",
  "fraudOffset": 0,
  "merchantAccount": "",
  "nationality": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  ],
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperName": [
    "firstName": "",
    "lastName": ""
  ],
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": ""
] as [String : Any]

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

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

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}
POST Make an instant card payout
{{baseUrl}}/payout
BODY json

{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}");

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

(client/post "{{baseUrl}}/payout" {:content-type :json
                                                   :form-params {:amount {:currency ""
                                                                          :value 0}
                                                                 :billingAddress {:city ""
                                                                                  :country ""
                                                                                  :houseNumberOrName ""
                                                                                  :postalCode ""
                                                                                  :stateOrProvince ""
                                                                                  :street ""}
                                                                 :card {:cvc ""
                                                                        :expiryMonth ""
                                                                        :expiryYear ""
                                                                        :holderName ""
                                                                        :issueNumber ""
                                                                        :number ""
                                                                        :startMonth ""
                                                                        :startYear ""}
                                                                 :fraudOffset 0
                                                                 :fundSource {:additionalData {}
                                                                              :billingAddress {}
                                                                              :card {}
                                                                              :shopperEmail ""
                                                                              :shopperName {:firstName ""
                                                                                            :lastName ""}
                                                                              :telephoneNumber ""}
                                                                 :merchantAccount ""
                                                                 :recurring {:contract ""
                                                                             :recurringDetailName ""
                                                                             :tokenService ""}
                                                                 :reference ""
                                                                 :selectedRecurringDetailReference ""
                                                                 :shopperEmail ""
                                                                 :shopperInteraction ""
                                                                 :shopperName {}
                                                                 :shopperReference ""
                                                                 :telephoneNumber ""}})
require "http/client"

url = "{{baseUrl}}/payout"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\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}}/payout"),
    Content = new StringContent("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\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}}/payout");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\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/payout HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 932

{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/payout")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/payout"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/payout")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/payout")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: {
    currency: '',
    value: 0
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  fraudOffset: 0,
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {
      firstName: '',
      lastName: ''
    },
    telephoneNumber: ''
  },
  merchantAccount: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperInteraction: '',
  shopperName: {},
  shopperReference: '',
  telephoneNumber: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/payout',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: 0},
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    fraudOffset: 0,
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      telephoneNumber: ''
    },
    merchantAccount: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperInteraction: '',
    shopperName: {},
    shopperReference: '',
    telephoneNumber: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/payout';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":0},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"fraudOffset":0,"fundSource":{"additionalData":{},"billingAddress":{},"card":{},"shopperEmail":"","shopperName":{"firstName":"","lastName":""},"telephoneNumber":""},"merchantAccount":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedRecurringDetailReference":"","shopperEmail":"","shopperInteraction":"","shopperName":{},"shopperReference":"","telephoneNumber":""}'
};

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}}/payout',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "fraudOffset": 0,\n  "fundSource": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "shopperEmail": "",\n    "shopperName": {\n      "firstName": "",\n      "lastName": ""\n    },\n    "telephoneNumber": ""\n  },\n  "merchantAccount": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedRecurringDetailReference": "",\n  "shopperEmail": "",\n  "shopperInteraction": "",\n  "shopperName": {},\n  "shopperReference": "",\n  "telephoneNumber": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/payout")
  .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/payout',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  amount: {currency: '', value: 0},
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  fraudOffset: 0,
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    telephoneNumber: ''
  },
  merchantAccount: '',
  recurring: {contract: '', recurringDetailName: '', tokenService: ''},
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperInteraction: '',
  shopperName: {},
  shopperReference: '',
  telephoneNumber: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/payout',
  headers: {'content-type': 'application/json'},
  body: {
    amount: {currency: '', value: 0},
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    fraudOffset: 0,
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      telephoneNumber: ''
    },
    merchantAccount: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperInteraction: '',
    shopperName: {},
    shopperReference: '',
    telephoneNumber: ''
  },
  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}}/payout');

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

req.type('json');
req.send({
  amount: {
    currency: '',
    value: 0
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  fraudOffset: 0,
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {
      firstName: '',
      lastName: ''
    },
    telephoneNumber: ''
  },
  merchantAccount: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    tokenService: ''
  },
  reference: '',
  selectedRecurringDetailReference: '',
  shopperEmail: '',
  shopperInteraction: '',
  shopperName: {},
  shopperReference: '',
  telephoneNumber: ''
});

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}}/payout',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: 0},
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    fraudOffset: 0,
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      telephoneNumber: ''
    },
    merchantAccount: '',
    recurring: {contract: '', recurringDetailName: '', tokenService: ''},
    reference: '',
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperInteraction: '',
    shopperName: {},
    shopperReference: '',
    telephoneNumber: ''
  }
};

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

const url = '{{baseUrl}}/payout';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":0},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"fraudOffset":0,"fundSource":{"additionalData":{},"billingAddress":{},"card":{},"shopperEmail":"","shopperName":{"firstName":"","lastName":""},"telephoneNumber":""},"merchantAccount":"","recurring":{"contract":"","recurringDetailName":"","tokenService":""},"reference":"","selectedRecurringDetailReference":"","shopperEmail":"","shopperInteraction":"","shopperName":{},"shopperReference":"","telephoneNumber":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amount": @{ @"currency": @"", @"value": @0 },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"card": @{ @"cvc": @"", @"expiryMonth": @"", @"expiryYear": @"", @"holderName": @"", @"issueNumber": @"", @"number": @"", @"startMonth": @"", @"startYear": @"" },
                              @"fraudOffset": @0,
                              @"fundSource": @{ @"additionalData": @{  }, @"billingAddress": @{  }, @"card": @{  }, @"shopperEmail": @"", @"shopperName": @{ @"firstName": @"", @"lastName": @"" }, @"telephoneNumber": @"" },
                              @"merchantAccount": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"tokenService": @"" },
                              @"reference": @"",
                              @"selectedRecurringDetailReference": @"",
                              @"shopperEmail": @"",
                              @"shopperInteraction": @"",
                              @"shopperName": @{  },
                              @"shopperReference": @"",
                              @"telephoneNumber": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/payout"]
                                                       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}}/payout" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/payout",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => [
        'currency' => '',
        'value' => 0
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'card' => [
        'cvc' => '',
        'expiryMonth' => '',
        'expiryYear' => '',
        'holderName' => '',
        'issueNumber' => '',
        'number' => '',
        'startMonth' => '',
        'startYear' => ''
    ],
    'fraudOffset' => 0,
    'fundSource' => [
        'additionalData' => [
                
        ],
        'billingAddress' => [
                
        ],
        'card' => [
                
        ],
        'shopperEmail' => '',
        'shopperName' => [
                'firstName' => '',
                'lastName' => ''
        ],
        'telephoneNumber' => ''
    ],
    'merchantAccount' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'tokenService' => ''
    ],
    'reference' => '',
    'selectedRecurringDetailReference' => '',
    'shopperEmail' => '',
    'shopperInteraction' => '',
    'shopperName' => [
        
    ],
    'shopperReference' => '',
    'telephoneNumber' => ''
  ]),
  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}}/payout', [
  'body' => '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'fraudOffset' => 0,
  'fundSource' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'telephoneNumber' => ''
  ],
  'merchantAccount' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedRecurringDetailReference' => '',
  'shopperEmail' => '',
  'shopperInteraction' => '',
  'shopperName' => [
    
  ],
  'shopperReference' => '',
  'telephoneNumber' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => [
    'currency' => '',
    'value' => 0
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'fraudOffset' => 0,
  'fundSource' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'telephoneNumber' => ''
  ],
  'merchantAccount' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'tokenService' => ''
  ],
  'reference' => '',
  'selectedRecurringDetailReference' => '',
  'shopperEmail' => '',
  'shopperInteraction' => '',
  'shopperName' => [
    
  ],
  'shopperReference' => '',
  'telephoneNumber' => ''
]));
$request->setRequestUrl('{{baseUrl}}/payout');
$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}}/payout' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/payout' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}'
import http.client

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

payload = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/payout"

payload = {
    "amount": {
        "currency": "",
        "value": 0
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "card": {
        "cvc": "",
        "expiryMonth": "",
        "expiryYear": "",
        "holderName": "",
        "issueNumber": "",
        "number": "",
        "startMonth": "",
        "startYear": ""
    },
    "fraudOffset": 0,
    "fundSource": {
        "additionalData": {},
        "billingAddress": {},
        "card": {},
        "shopperEmail": "",
        "shopperName": {
            "firstName": "",
            "lastName": ""
        },
        "telephoneNumber": ""
    },
    "merchantAccount": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "tokenService": ""
    },
    "reference": "",
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperInteraction": "",
    "shopperName": {},
    "shopperReference": "",
    "telephoneNumber": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\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}}/payout")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\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/payout') do |req|
  req.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"fraudOffset\": 0,\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"merchantAccount\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"reference\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"telephoneNumber\": \"\"\n}"
end

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

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

    let payload = json!({
        "amount": json!({
            "currency": "",
            "value": 0
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "card": json!({
            "cvc": "",
            "expiryMonth": "",
            "expiryYear": "",
            "holderName": "",
            "issueNumber": "",
            "number": "",
            "startMonth": "",
            "startYear": ""
        }),
        "fraudOffset": 0,
        "fundSource": json!({
            "additionalData": json!({}),
            "billingAddress": json!({}),
            "card": json!({}),
            "shopperEmail": "",
            "shopperName": json!({
                "firstName": "",
                "lastName": ""
            }),
            "telephoneNumber": ""
        }),
        "merchantAccount": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "tokenService": ""
        }),
        "reference": "",
        "selectedRecurringDetailReference": "",
        "shopperEmail": "",
        "shopperInteraction": "",
        "shopperName": json!({}),
        "shopperReference": "",
        "telephoneNumber": ""
    });

    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}}/payout \
  --header 'content-type: application/json' \
  --data '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}'
echo '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "fraudOffset": 0,
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "telephoneNumber": ""
  },
  "merchantAccount": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  },
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": {},
  "shopperReference": "",
  "telephoneNumber": ""
}' |  \
  http POST {{baseUrl}}/payout \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": {\n    "currency": "",\n    "value": 0\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "fraudOffset": 0,\n  "fundSource": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "shopperEmail": "",\n    "shopperName": {\n      "firstName": "",\n      "lastName": ""\n    },\n    "telephoneNumber": ""\n  },\n  "merchantAccount": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "tokenService": ""\n  },\n  "reference": "",\n  "selectedRecurringDetailReference": "",\n  "shopperEmail": "",\n  "shopperInteraction": "",\n  "shopperName": {},\n  "shopperReference": "",\n  "telephoneNumber": ""\n}' \
  --output-document \
  - {{baseUrl}}/payout
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": [
    "currency": "",
    "value": 0
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "card": [
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  ],
  "fraudOffset": 0,
  "fundSource": [
    "additionalData": [],
    "billingAddress": [],
    "card": [],
    "shopperEmail": "",
    "shopperName": [
      "firstName": "",
      "lastName": ""
    ],
    "telephoneNumber": ""
  ],
  "merchantAccount": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "tokenService": ""
  ],
  "reference": "",
  "selectedRecurringDetailReference": "",
  "shopperEmail": "",
  "shopperInteraction": "",
  "shopperName": [],
  "shopperReference": "",
  "telephoneNumber": ""
] as [String : Any]

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

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

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}
POST Cancel a payout
{{baseUrl}}/declineThirdParty
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "originalReference": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}");

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

(client/post "{{baseUrl}}/declineThirdParty" {:content-type :json
                                                              :form-params {:additionalData {}
                                                                            :merchantAccount ""
                                                                            :originalReference ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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/declineThirdParty HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

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

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

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/declineThirdParty',
  headers: {'content-type': 'application/json'},
  data: {additionalData: {}, merchantAccount: '', originalReference: ''}
};

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

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

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

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

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

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  originalReference: ''
});

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}}/declineThirdParty',
  headers: {'content-type': 'application/json'},
  data: {additionalData: {}, merchantAccount: '', originalReference: ''}
};

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

const url = '{{baseUrl}}/declineThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","originalReference":""}'
};

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 = @{ @"additionalData": @{  },
                              @"merchantAccount": @"",
                              @"originalReference": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'originalReference' => ''
]));

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

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

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/declineThirdParty"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "originalReference": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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}}/declineThirdParty")

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  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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/declineThirdParty') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "originalReference": ""
    });

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

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "originalReference": ""
] as [String : Any]

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

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

{
  "pspReference": "991617894325360J",
  "response": "[payout-decline-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}
POST Confirm a payout
{{baseUrl}}/confirmThirdParty
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "originalReference": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}");

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

(client/post "{{baseUrl}}/confirmThirdParty" {:content-type :json
                                                              :form-params {:additionalData {}
                                                                            :merchantAccount ""
                                                                            :originalReference ""}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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/confirmThirdParty HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

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

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

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/confirmThirdParty',
  headers: {'content-type': 'application/json'},
  data: {additionalData: {}, merchantAccount: '', originalReference: ''}
};

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

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

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

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

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

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  originalReference: ''
});

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}}/confirmThirdParty',
  headers: {'content-type': 'application/json'},
  data: {additionalData: {}, merchantAccount: '', originalReference: ''}
};

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

const url = '{{baseUrl}}/confirmThirdParty';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","originalReference":""}'
};

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 = @{ @"additionalData": @{  },
                              @"merchantAccount": @"",
                              @"originalReference": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'originalReference' => ''
]));

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

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

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/confirmThirdParty"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "originalReference": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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}}/confirmThirdParty")

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  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\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/confirmThirdParty') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"originalReference\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "originalReference": ""
    });

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

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "originalReference": ""
] as [String : Any]

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

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

{
  "pspReference": "991617894325358C",
  "response": "[payout-confirm-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status": 400,
  "errorCode": "702",
  "message": "Unexpected input: I",
  "errorType": "validation"
}