POST Complete a 3DS authorisation
{{baseUrl}}/authorise3d
BODY json

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");

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

(client/post "{{baseUrl}}/authorise3d" {:content-type :json
                                                        :form-params {:accountInfo {:accountAgeIndicator ""
                                                                                    :accountChangeDate ""
                                                                                    :accountChangeIndicator ""
                                                                                    :accountCreationDate ""
                                                                                    :accountType ""
                                                                                    :addCardAttemptsDay 0
                                                                                    :deliveryAddressUsageDate ""
                                                                                    :deliveryAddressUsageIndicator ""
                                                                                    :homePhone ""
                                                                                    :mobilePhone ""
                                                                                    :passwordChangeDate ""
                                                                                    :passwordChangeIndicator ""
                                                                                    :pastTransactionsDay 0
                                                                                    :pastTransactionsYear 0
                                                                                    :paymentAccountAge ""
                                                                                    :paymentAccountIndicator ""
                                                                                    :purchasesLast6Months 0
                                                                                    :suspiciousActivity false
                                                                                    :workPhone ""}
                                                                      :additionalAmount {:currency ""
                                                                                         :value 0}
                                                                      :additionalData {}
                                                                      :amount {}
                                                                      :applicationInfo {:adyenLibrary {:name ""
                                                                                                       :version ""}
                                                                                        :adyenPaymentSource {}
                                                                                        :externalPlatform {:integrator ""
                                                                                                           :name ""
                                                                                                           :version ""}
                                                                                        :merchantApplication {}
                                                                                        :merchantDevice {:os ""
                                                                                                         :osVersion ""
                                                                                                         :reference ""}
                                                                                        :shopperInteractionDevice {:locale ""
                                                                                                                   :os ""
                                                                                                                   :osVersion ""}}
                                                                      :billingAddress {:city ""
                                                                                       :country ""
                                                                                       :houseNumberOrName ""
                                                                                       :postalCode ""
                                                                                       :stateOrProvince ""
                                                                                       :street ""}
                                                                      :browserInfo {:acceptHeader ""
                                                                                    :colorDepth 0
                                                                                    :javaEnabled false
                                                                                    :javaScriptEnabled false
                                                                                    :language ""
                                                                                    :screenHeight 0
                                                                                    :screenWidth 0
                                                                                    :timeZoneOffset 0
                                                                                    :userAgent ""}
                                                                      :captureDelayHours 0
                                                                      :dateOfBirth ""
                                                                      :dccQuote {:account ""
                                                                                 :accountType ""
                                                                                 :baseAmount {}
                                                                                 :basePoints 0
                                                                                 :buy {}
                                                                                 :interbank {}
                                                                                 :reference ""
                                                                                 :sell {}
                                                                                 :signature ""
                                                                                 :source ""
                                                                                 :type ""
                                                                                 :validTill ""}
                                                                      :deliveryAddress {}
                                                                      :deliveryDate ""
                                                                      :deviceFingerprint ""
                                                                      :fraudOffset 0
                                                                      :installments {:plan ""
                                                                                     :value 0}
                                                                      :localizedShopperStatement {}
                                                                      :mcc ""
                                                                      :md ""
                                                                      :merchantAccount ""
                                                                      :merchantOrderReference ""
                                                                      :merchantRiskIndicator {:addressMatch false
                                                                                              :deliveryAddressIndicator ""
                                                                                              :deliveryEmail ""
                                                                                              :deliveryEmailAddress ""
                                                                                              :deliveryTimeframe ""
                                                                                              :giftCardAmount {}
                                                                                              :giftCardCount 0
                                                                                              :giftCardCurr ""
                                                                                              :preOrderDate ""
                                                                                              :preOrderPurchase false
                                                                                              :preOrderPurchaseInd ""
                                                                                              :reorderItems false
                                                                                              :reorderItemsInd ""
                                                                                              :shipIndicator ""}
                                                                      :metadata {}
                                                                      :orderReference ""
                                                                      :paResponse ""
                                                                      :recurring {:contract ""
                                                                                  :recurringDetailName ""
                                                                                  :recurringExpiry ""
                                                                                  :recurringFrequency ""
                                                                                  :tokenService ""}
                                                                      :recurringProcessingModel ""
                                                                      :reference ""
                                                                      :selectedBrand ""
                                                                      :selectedRecurringDetailReference ""
                                                                      :sessionId ""
                                                                      :shopperEmail ""
                                                                      :shopperIP ""
                                                                      :shopperInteraction ""
                                                                      :shopperLocale ""
                                                                      :shopperName {:firstName ""
                                                                                    :lastName ""}
                                                                      :shopperReference ""
                                                                      :shopperStatement ""
                                                                      :socialSecurityNumber ""
                                                                      :splits [{:account ""
                                                                                :amount {:currency ""
                                                                                         :value 0}
                                                                                :description ""
                                                                                :reference ""
                                                                                :type ""}]
                                                                      :store ""
                                                                      :telephoneNumber ""
                                                                      :threeDS2RequestData {:acctInfo {:chAccAgeInd ""
                                                                                                       :chAccChange ""
                                                                                                       :chAccChangeInd ""
                                                                                                       :chAccPwChange ""
                                                                                                       :chAccPwChangeInd ""
                                                                                                       :chAccString ""
                                                                                                       :nbPurchaseAccount ""
                                                                                                       :paymentAccAge ""
                                                                                                       :paymentAccInd ""
                                                                                                       :provisionAttemptsDay ""
                                                                                                       :shipAddressUsage ""
                                                                                                       :shipAddressUsageInd ""
                                                                                                       :shipNameIndicator ""
                                                                                                       :suspiciousAccActivity ""
                                                                                                       :txnActivityDay ""
                                                                                                       :txnActivityYear ""}
                                                                                            :acctType ""
                                                                                            :acquirerBIN ""
                                                                                            :acquirerMerchantID ""
                                                                                            :addrMatch ""
                                                                                            :authenticationOnly false
                                                                                            :challengeIndicator ""
                                                                                            :deviceChannel ""
                                                                                            :deviceRenderOptions {:sdkInterface ""
                                                                                                                  :sdkUiType []}
                                                                                            :homePhone {:cc ""
                                                                                                        :subscriber ""}
                                                                                            :mcc ""
                                                                                            :merchantName ""
                                                                                            :messageVersion ""
                                                                                            :mobilePhone {}
                                                                                            :notificationURL ""
                                                                                            :payTokenInd false
                                                                                            :paymentAuthenticationUseCase ""
                                                                                            :purchaseInstalData ""
                                                                                            :recurringExpiry ""
                                                                                            :recurringFrequency ""
                                                                                            :sdkAppID ""
                                                                                            :sdkEncData ""
                                                                                            :sdkEphemPubKey {:crv ""
                                                                                                             :kty ""
                                                                                                             :x ""
                                                                                                             :y ""}
                                                                                            :sdkMaxTimeout 0
                                                                                            :sdkReferenceNumber ""
                                                                                            :sdkTransID ""
                                                                                            :sdkVersion ""
                                                                                            :threeDSCompInd ""
                                                                                            :threeDSRequestorAuthenticationInd ""
                                                                                            :threeDSRequestorAuthenticationInfo {:threeDSReqAuthData ""
                                                                                                                                 :threeDSReqAuthMethod ""
                                                                                                                                 :threeDSReqAuthTimestamp ""}
                                                                                            :threeDSRequestorChallengeInd ""
                                                                                            :threeDSRequestorID ""
                                                                                            :threeDSRequestorName ""
                                                                                            :threeDSRequestorPriorAuthenticationInfo {:threeDSReqPriorAuthData ""
                                                                                                                                      :threeDSReqPriorAuthMethod ""
                                                                                                                                      :threeDSReqPriorAuthTimestamp ""
                                                                                                                                      :threeDSReqPriorRef ""}
                                                                                            :threeDSRequestorURL ""
                                                                                            :transType ""
                                                                                            :transactionType ""
                                                                                            :whiteListStatus ""
                                                                                            :workPhone {}}
                                                                      :threeDSAuthenticationOnly false
                                                                      :totalsGroup ""
                                                                      :trustedShopper false}})
require "http/client"

url = "{{baseUrl}}/authorise3d"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/authorise3d"),
    Content = new StringContent("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/authorise3d");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/authorise3d HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 5440

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/authorise3d")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/authorise3d"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/authorise3d")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/authorise3d")
  .header("content-type", "application/json")
  .body("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .asString();
const data = JSON.stringify({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mcc: '',
  md: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  paResponse: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3d',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    md: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    paResponse: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/authorise3d';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","fraudOffset":0,"installments":{"plan":"","value":0},"localizedShopperStatement":{},"mcc":"","md":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"orderReference":"","paResponse":"","recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/authorise3d',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "fraudOffset": 0,\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mcc": "",\n  "md": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "orderReference": "",\n  "paResponse": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/authorise3d")
  .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/authorise3d',
  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({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {currency: '', value: 0},
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {name: '', version: ''},
    adyenPaymentSource: {},
    externalPlatform: {integrator: '', name: '', version: ''},
    merchantApplication: {},
    merchantDevice: {os: '', osVersion: '', reference: ''},
    shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {plan: '', value: 0},
  localizedShopperStatement: {},
  mcc: '',
  md: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  paResponse: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {firstName: '', lastName: ''},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
    homePhone: {cc: '', subscriber: ''},
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3d',
  headers: {'content-type': 'application/json'},
  body: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    md: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    paResponse: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mcc: '',
  md: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  paResponse: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3d',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    md: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    paResponse: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

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

const url = '{{baseUrl}}/authorise3d';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","fraudOffset":0,"installments":{"plan":"","value":0},"localizedShopperStatement":{},"mcc":"","md":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"orderReference":"","paResponse":"","recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountInfo": @{ @"accountAgeIndicator": @"", @"accountChangeDate": @"", @"accountChangeIndicator": @"", @"accountCreationDate": @"", @"accountType": @"", @"addCardAttemptsDay": @0, @"deliveryAddressUsageDate": @"", @"deliveryAddressUsageIndicator": @"", @"homePhone": @"", @"mobilePhone": @"", @"passwordChangeDate": @"", @"passwordChangeIndicator": @"", @"pastTransactionsDay": @0, @"pastTransactionsYear": @0, @"paymentAccountAge": @"", @"paymentAccountIndicator": @"", @"purchasesLast6Months": @0, @"suspiciousActivity": @NO, @"workPhone": @"" },
                              @"additionalAmount": @{ @"currency": @"", @"value": @0 },
                              @"additionalData": @{  },
                              @"amount": @{  },
                              @"applicationInfo": @{ @"adyenLibrary": @{ @"name": @"", @"version": @"" }, @"adyenPaymentSource": @{  }, @"externalPlatform": @{ @"integrator": @"", @"name": @"", @"version": @"" }, @"merchantApplication": @{  }, @"merchantDevice": @{ @"os": @"", @"osVersion": @"", @"reference": @"" }, @"shopperInteractionDevice": @{ @"locale": @"", @"os": @"", @"osVersion": @"" } },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"browserInfo": @{ @"acceptHeader": @"", @"colorDepth": @0, @"javaEnabled": @NO, @"javaScriptEnabled": @NO, @"language": @"", @"screenHeight": @0, @"screenWidth": @0, @"timeZoneOffset": @0, @"userAgent": @"" },
                              @"captureDelayHours": @0,
                              @"dateOfBirth": @"",
                              @"dccQuote": @{ @"account": @"", @"accountType": @"", @"baseAmount": @{  }, @"basePoints": @0, @"buy": @{  }, @"interbank": @{  }, @"reference": @"", @"sell": @{  }, @"signature": @"", @"source": @"", @"type": @"", @"validTill": @"" },
                              @"deliveryAddress": @{  },
                              @"deliveryDate": @"",
                              @"deviceFingerprint": @"",
                              @"fraudOffset": @0,
                              @"installments": @{ @"plan": @"", @"value": @0 },
                              @"localizedShopperStatement": @{  },
                              @"mcc": @"",
                              @"md": @"",
                              @"merchantAccount": @"",
                              @"merchantOrderReference": @"",
                              @"merchantRiskIndicator": @{ @"addressMatch": @NO, @"deliveryAddressIndicator": @"", @"deliveryEmail": @"", @"deliveryEmailAddress": @"", @"deliveryTimeframe": @"", @"giftCardAmount": @{  }, @"giftCardCount": @0, @"giftCardCurr": @"", @"preOrderDate": @"", @"preOrderPurchase": @NO, @"preOrderPurchaseInd": @"", @"reorderItems": @NO, @"reorderItemsInd": @"", @"shipIndicator": @"" },
                              @"metadata": @{  },
                              @"orderReference": @"",
                              @"paResponse": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"tokenService": @"" },
                              @"recurringProcessingModel": @"",
                              @"reference": @"",
                              @"selectedBrand": @"",
                              @"selectedRecurringDetailReference": @"",
                              @"sessionId": @"",
                              @"shopperEmail": @"",
                              @"shopperIP": @"",
                              @"shopperInteraction": @"",
                              @"shopperLocale": @"",
                              @"shopperName": @{ @"firstName": @"", @"lastName": @"" },
                              @"shopperReference": @"",
                              @"shopperStatement": @"",
                              @"socialSecurityNumber": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"store": @"",
                              @"telephoneNumber": @"",
                              @"threeDS2RequestData": @{ @"acctInfo": @{ @"chAccAgeInd": @"", @"chAccChange": @"", @"chAccChangeInd": @"", @"chAccPwChange": @"", @"chAccPwChangeInd": @"", @"chAccString": @"", @"nbPurchaseAccount": @"", @"paymentAccAge": @"", @"paymentAccInd": @"", @"provisionAttemptsDay": @"", @"shipAddressUsage": @"", @"shipAddressUsageInd": @"", @"shipNameIndicator": @"", @"suspiciousAccActivity": @"", @"txnActivityDay": @"", @"txnActivityYear": @"" }, @"acctType": @"", @"acquirerBIN": @"", @"acquirerMerchantID": @"", @"addrMatch": @"", @"authenticationOnly": @NO, @"challengeIndicator": @"", @"deviceChannel": @"", @"deviceRenderOptions": @{ @"sdkInterface": @"", @"sdkUiType": @[  ] }, @"homePhone": @{ @"cc": @"", @"subscriber": @"" }, @"mcc": @"", @"merchantName": @"", @"messageVersion": @"", @"mobilePhone": @{  }, @"notificationURL": @"", @"payTokenInd": @NO, @"paymentAuthenticationUseCase": @"", @"purchaseInstalData": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"sdkAppID": @"", @"sdkEncData": @"", @"sdkEphemPubKey": @{ @"crv": @"", @"kty": @"", @"x": @"", @"y": @"" }, @"sdkMaxTimeout": @0, @"sdkReferenceNumber": @"", @"sdkTransID": @"", @"sdkVersion": @"", @"threeDSCompInd": @"", @"threeDSRequestorAuthenticationInd": @"", @"threeDSRequestorAuthenticationInfo": @{ @"threeDSReqAuthData": @"", @"threeDSReqAuthMethod": @"", @"threeDSReqAuthTimestamp": @"" }, @"threeDSRequestorChallengeInd": @"", @"threeDSRequestorID": @"", @"threeDSRequestorName": @"", @"threeDSRequestorPriorAuthenticationInfo": @{ @"threeDSReqPriorAuthData": @"", @"threeDSReqPriorAuthMethod": @"", @"threeDSReqPriorAuthTimestamp": @"", @"threeDSReqPriorRef": @"" }, @"threeDSRequestorURL": @"", @"transType": @"", @"transactionType": @"", @"whiteListStatus": @"", @"workPhone": @{  } },
                              @"threeDSAuthenticationOnly": @NO,
                              @"totalsGroup": @"",
                              @"trustedShopper": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/authorise3d"]
                                                       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}}/authorise3d" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/authorise3d",
  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([
    'accountInfo' => [
        'accountAgeIndicator' => '',
        'accountChangeDate' => '',
        'accountChangeIndicator' => '',
        'accountCreationDate' => '',
        'accountType' => '',
        'addCardAttemptsDay' => 0,
        'deliveryAddressUsageDate' => '',
        'deliveryAddressUsageIndicator' => '',
        'homePhone' => '',
        'mobilePhone' => '',
        'passwordChangeDate' => '',
        'passwordChangeIndicator' => '',
        'pastTransactionsDay' => 0,
        'pastTransactionsYear' => 0,
        'paymentAccountAge' => '',
        'paymentAccountIndicator' => '',
        'purchasesLast6Months' => 0,
        'suspiciousActivity' => null,
        'workPhone' => ''
    ],
    'additionalAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'additionalData' => [
        
    ],
    'amount' => [
        
    ],
    'applicationInfo' => [
        'adyenLibrary' => [
                'name' => '',
                'version' => ''
        ],
        'adyenPaymentSource' => [
                
        ],
        'externalPlatform' => [
                'integrator' => '',
                'name' => '',
                'version' => ''
        ],
        'merchantApplication' => [
                
        ],
        'merchantDevice' => [
                'os' => '',
                'osVersion' => '',
                'reference' => ''
        ],
        'shopperInteractionDevice' => [
                'locale' => '',
                'os' => '',
                'osVersion' => ''
        ]
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'browserInfo' => [
        'acceptHeader' => '',
        'colorDepth' => 0,
        'javaEnabled' => null,
        'javaScriptEnabled' => null,
        'language' => '',
        'screenHeight' => 0,
        'screenWidth' => 0,
        'timeZoneOffset' => 0,
        'userAgent' => ''
    ],
    'captureDelayHours' => 0,
    'dateOfBirth' => '',
    'dccQuote' => [
        'account' => '',
        'accountType' => '',
        'baseAmount' => [
                
        ],
        'basePoints' => 0,
        'buy' => [
                
        ],
        'interbank' => [
                
        ],
        'reference' => '',
        'sell' => [
                
        ],
        'signature' => '',
        'source' => '',
        'type' => '',
        'validTill' => ''
    ],
    'deliveryAddress' => [
        
    ],
    'deliveryDate' => '',
    'deviceFingerprint' => '',
    'fraudOffset' => 0,
    'installments' => [
        'plan' => '',
        'value' => 0
    ],
    'localizedShopperStatement' => [
        
    ],
    'mcc' => '',
    'md' => '',
    'merchantAccount' => '',
    'merchantOrderReference' => '',
    'merchantRiskIndicator' => [
        'addressMatch' => null,
        'deliveryAddressIndicator' => '',
        'deliveryEmail' => '',
        'deliveryEmailAddress' => '',
        'deliveryTimeframe' => '',
        'giftCardAmount' => [
                
        ],
        'giftCardCount' => 0,
        'giftCardCurr' => '',
        'preOrderDate' => '',
        'preOrderPurchase' => null,
        'preOrderPurchaseInd' => '',
        'reorderItems' => null,
        'reorderItemsInd' => '',
        'shipIndicator' => ''
    ],
    'metadata' => [
        
    ],
    'orderReference' => '',
    'paResponse' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'tokenService' => ''
    ],
    'recurringProcessingModel' => '',
    'reference' => '',
    'selectedBrand' => '',
    'selectedRecurringDetailReference' => '',
    'sessionId' => '',
    'shopperEmail' => '',
    'shopperIP' => '',
    'shopperInteraction' => '',
    'shopperLocale' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'shopperStatement' => '',
    'socialSecurityNumber' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'store' => '',
    'telephoneNumber' => '',
    'threeDS2RequestData' => [
        'acctInfo' => [
                'chAccAgeInd' => '',
                'chAccChange' => '',
                'chAccChangeInd' => '',
                'chAccPwChange' => '',
                'chAccPwChangeInd' => '',
                'chAccString' => '',
                'nbPurchaseAccount' => '',
                'paymentAccAge' => '',
                'paymentAccInd' => '',
                'provisionAttemptsDay' => '',
                'shipAddressUsage' => '',
                'shipAddressUsageInd' => '',
                'shipNameIndicator' => '',
                'suspiciousAccActivity' => '',
                'txnActivityDay' => '',
                'txnActivityYear' => ''
        ],
        'acctType' => '',
        'acquirerBIN' => '',
        'acquirerMerchantID' => '',
        'addrMatch' => '',
        'authenticationOnly' => null,
        'challengeIndicator' => '',
        'deviceChannel' => '',
        'deviceRenderOptions' => [
                'sdkInterface' => '',
                'sdkUiType' => [
                                
                ]
        ],
        'homePhone' => [
                'cc' => '',
                'subscriber' => ''
        ],
        'mcc' => '',
        'merchantName' => '',
        'messageVersion' => '',
        'mobilePhone' => [
                
        ],
        'notificationURL' => '',
        'payTokenInd' => null,
        'paymentAuthenticationUseCase' => '',
        'purchaseInstalData' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'sdkAppID' => '',
        'sdkEncData' => '',
        'sdkEphemPubKey' => [
                'crv' => '',
                'kty' => '',
                'x' => '',
                'y' => ''
        ],
        'sdkMaxTimeout' => 0,
        'sdkReferenceNumber' => '',
        'sdkTransID' => '',
        'sdkVersion' => '',
        'threeDSCompInd' => '',
        'threeDSRequestorAuthenticationInd' => '',
        'threeDSRequestorAuthenticationInfo' => [
                'threeDSReqAuthData' => '',
                'threeDSReqAuthMethod' => '',
                'threeDSReqAuthTimestamp' => ''
        ],
        'threeDSRequestorChallengeInd' => '',
        'threeDSRequestorID' => '',
        'threeDSRequestorName' => '',
        'threeDSRequestorPriorAuthenticationInfo' => [
                'threeDSReqPriorAuthData' => '',
                'threeDSReqPriorAuthMethod' => '',
                'threeDSReqPriorAuthTimestamp' => '',
                'threeDSReqPriorRef' => ''
        ],
        'threeDSRequestorURL' => '',
        'transType' => '',
        'transactionType' => '',
        'whiteListStatus' => '',
        'workPhone' => [
                
        ]
    ],
    'threeDSAuthenticationOnly' => null,
    'totalsGroup' => '',
    'trustedShopper' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/authorise3d', [
  'body' => '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'fraudOffset' => 0,
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mcc' => '',
  'md' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'orderReference' => '',
  'paResponse' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'fraudOffset' => 0,
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mcc' => '',
  'md' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'orderReference' => '',
  'paResponse' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));
$request->setRequestUrl('{{baseUrl}}/authorise3d');
$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}}/authorise3d' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/authorise3d' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
import http.client

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

payload = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

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

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

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

url = "{{baseUrl}}/authorise3d"

payload = {
    "accountInfo": {
        "accountAgeIndicator": "",
        "accountChangeDate": "",
        "accountChangeIndicator": "",
        "accountCreationDate": "",
        "accountType": "",
        "addCardAttemptsDay": 0,
        "deliveryAddressUsageDate": "",
        "deliveryAddressUsageIndicator": "",
        "homePhone": "",
        "mobilePhone": "",
        "passwordChangeDate": "",
        "passwordChangeIndicator": "",
        "pastTransactionsDay": 0,
        "pastTransactionsYear": 0,
        "paymentAccountAge": "",
        "paymentAccountIndicator": "",
        "purchasesLast6Months": 0,
        "suspiciousActivity": False,
        "workPhone": ""
    },
    "additionalAmount": {
        "currency": "",
        "value": 0
    },
    "additionalData": {},
    "amount": {},
    "applicationInfo": {
        "adyenLibrary": {
            "name": "",
            "version": ""
        },
        "adyenPaymentSource": {},
        "externalPlatform": {
            "integrator": "",
            "name": "",
            "version": ""
        },
        "merchantApplication": {},
        "merchantDevice": {
            "os": "",
            "osVersion": "",
            "reference": ""
        },
        "shopperInteractionDevice": {
            "locale": "",
            "os": "",
            "osVersion": ""
        }
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "browserInfo": {
        "acceptHeader": "",
        "colorDepth": 0,
        "javaEnabled": False,
        "javaScriptEnabled": False,
        "language": "",
        "screenHeight": 0,
        "screenWidth": 0,
        "timeZoneOffset": 0,
        "userAgent": ""
    },
    "captureDelayHours": 0,
    "dateOfBirth": "",
    "dccQuote": {
        "account": "",
        "accountType": "",
        "baseAmount": {},
        "basePoints": 0,
        "buy": {},
        "interbank": {},
        "reference": "",
        "sell": {},
        "signature": "",
        "source": "",
        "type": "",
        "validTill": ""
    },
    "deliveryAddress": {},
    "deliveryDate": "",
    "deviceFingerprint": "",
    "fraudOffset": 0,
    "installments": {
        "plan": "",
        "value": 0
    },
    "localizedShopperStatement": {},
    "mcc": "",
    "md": "",
    "merchantAccount": "",
    "merchantOrderReference": "",
    "merchantRiskIndicator": {
        "addressMatch": False,
        "deliveryAddressIndicator": "",
        "deliveryEmail": "",
        "deliveryEmailAddress": "",
        "deliveryTimeframe": "",
        "giftCardAmount": {},
        "giftCardCount": 0,
        "giftCardCurr": "",
        "preOrderDate": "",
        "preOrderPurchase": False,
        "preOrderPurchaseInd": "",
        "reorderItems": False,
        "reorderItemsInd": "",
        "shipIndicator": ""
    },
    "metadata": {},
    "orderReference": "",
    "paResponse": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "tokenService": ""
    },
    "recurringProcessingModel": "",
    "reference": "",
    "selectedBrand": "",
    "selectedRecurringDetailReference": "",
    "sessionId": "",
    "shopperEmail": "",
    "shopperIP": "",
    "shopperInteraction": "",
    "shopperLocale": "",
    "shopperName": {
        "firstName": "",
        "lastName": ""
    },
    "shopperReference": "",
    "shopperStatement": "",
    "socialSecurityNumber": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "store": "",
    "telephoneNumber": "",
    "threeDS2RequestData": {
        "acctInfo": {
            "chAccAgeInd": "",
            "chAccChange": "",
            "chAccChangeInd": "",
            "chAccPwChange": "",
            "chAccPwChangeInd": "",
            "chAccString": "",
            "nbPurchaseAccount": "",
            "paymentAccAge": "",
            "paymentAccInd": "",
            "provisionAttemptsDay": "",
            "shipAddressUsage": "",
            "shipAddressUsageInd": "",
            "shipNameIndicator": "",
            "suspiciousAccActivity": "",
            "txnActivityDay": "",
            "txnActivityYear": ""
        },
        "acctType": "",
        "acquirerBIN": "",
        "acquirerMerchantID": "",
        "addrMatch": "",
        "authenticationOnly": False,
        "challengeIndicator": "",
        "deviceChannel": "",
        "deviceRenderOptions": {
            "sdkInterface": "",
            "sdkUiType": []
        },
        "homePhone": {
            "cc": "",
            "subscriber": ""
        },
        "mcc": "",
        "merchantName": "",
        "messageVersion": "",
        "mobilePhone": {},
        "notificationURL": "",
        "payTokenInd": False,
        "paymentAuthenticationUseCase": "",
        "purchaseInstalData": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "sdkAppID": "",
        "sdkEncData": "",
        "sdkEphemPubKey": {
            "crv": "",
            "kty": "",
            "x": "",
            "y": ""
        },
        "sdkMaxTimeout": 0,
        "sdkReferenceNumber": "",
        "sdkTransID": "",
        "sdkVersion": "",
        "threeDSCompInd": "",
        "threeDSRequestorAuthenticationInd": "",
        "threeDSRequestorAuthenticationInfo": {
            "threeDSReqAuthData": "",
            "threeDSReqAuthMethod": "",
            "threeDSReqAuthTimestamp": ""
        },
        "threeDSRequestorChallengeInd": "",
        "threeDSRequestorID": "",
        "threeDSRequestorName": "",
        "threeDSRequestorPriorAuthenticationInfo": {
            "threeDSReqPriorAuthData": "",
            "threeDSReqPriorAuthMethod": "",
            "threeDSReqPriorAuthTimestamp": "",
            "threeDSReqPriorRef": ""
        },
        "threeDSRequestorURL": "",
        "transType": "",
        "transactionType": "",
        "whiteListStatus": "",
        "workPhone": {}
    },
    "threeDSAuthenticationOnly": False,
    "totalsGroup": "",
    "trustedShopper": False
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

encode <- "json"

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

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

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/authorise3d') do |req|
  req.body = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"md\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"paResponse\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"
end

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

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

    let payload = json!({
        "accountInfo": json!({
            "accountAgeIndicator": "",
            "accountChangeDate": "",
            "accountChangeIndicator": "",
            "accountCreationDate": "",
            "accountType": "",
            "addCardAttemptsDay": 0,
            "deliveryAddressUsageDate": "",
            "deliveryAddressUsageIndicator": "",
            "homePhone": "",
            "mobilePhone": "",
            "passwordChangeDate": "",
            "passwordChangeIndicator": "",
            "pastTransactionsDay": 0,
            "pastTransactionsYear": 0,
            "paymentAccountAge": "",
            "paymentAccountIndicator": "",
            "purchasesLast6Months": 0,
            "suspiciousActivity": false,
            "workPhone": ""
        }),
        "additionalAmount": json!({
            "currency": "",
            "value": 0
        }),
        "additionalData": json!({}),
        "amount": json!({}),
        "applicationInfo": json!({
            "adyenLibrary": json!({
                "name": "",
                "version": ""
            }),
            "adyenPaymentSource": json!({}),
            "externalPlatform": json!({
                "integrator": "",
                "name": "",
                "version": ""
            }),
            "merchantApplication": json!({}),
            "merchantDevice": json!({
                "os": "",
                "osVersion": "",
                "reference": ""
            }),
            "shopperInteractionDevice": json!({
                "locale": "",
                "os": "",
                "osVersion": ""
            })
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "browserInfo": json!({
            "acceptHeader": "",
            "colorDepth": 0,
            "javaEnabled": false,
            "javaScriptEnabled": false,
            "language": "",
            "screenHeight": 0,
            "screenWidth": 0,
            "timeZoneOffset": 0,
            "userAgent": ""
        }),
        "captureDelayHours": 0,
        "dateOfBirth": "",
        "dccQuote": json!({
            "account": "",
            "accountType": "",
            "baseAmount": json!({}),
            "basePoints": 0,
            "buy": json!({}),
            "interbank": json!({}),
            "reference": "",
            "sell": json!({}),
            "signature": "",
            "source": "",
            "type": "",
            "validTill": ""
        }),
        "deliveryAddress": json!({}),
        "deliveryDate": "",
        "deviceFingerprint": "",
        "fraudOffset": 0,
        "installments": json!({
            "plan": "",
            "value": 0
        }),
        "localizedShopperStatement": json!({}),
        "mcc": "",
        "md": "",
        "merchantAccount": "",
        "merchantOrderReference": "",
        "merchantRiskIndicator": json!({
            "addressMatch": false,
            "deliveryAddressIndicator": "",
            "deliveryEmail": "",
            "deliveryEmailAddress": "",
            "deliveryTimeframe": "",
            "giftCardAmount": json!({}),
            "giftCardCount": 0,
            "giftCardCurr": "",
            "preOrderDate": "",
            "preOrderPurchase": false,
            "preOrderPurchaseInd": "",
            "reorderItems": false,
            "reorderItemsInd": "",
            "shipIndicator": ""
        }),
        "metadata": json!({}),
        "orderReference": "",
        "paResponse": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "tokenService": ""
        }),
        "recurringProcessingModel": "",
        "reference": "",
        "selectedBrand": "",
        "selectedRecurringDetailReference": "",
        "sessionId": "",
        "shopperEmail": "",
        "shopperIP": "",
        "shopperInteraction": "",
        "shopperLocale": "",
        "shopperName": json!({
            "firstName": "",
            "lastName": ""
        }),
        "shopperReference": "",
        "shopperStatement": "",
        "socialSecurityNumber": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "store": "",
        "telephoneNumber": "",
        "threeDS2RequestData": json!({
            "acctInfo": json!({
                "chAccAgeInd": "",
                "chAccChange": "",
                "chAccChangeInd": "",
                "chAccPwChange": "",
                "chAccPwChangeInd": "",
                "chAccString": "",
                "nbPurchaseAccount": "",
                "paymentAccAge": "",
                "paymentAccInd": "",
                "provisionAttemptsDay": "",
                "shipAddressUsage": "",
                "shipAddressUsageInd": "",
                "shipNameIndicator": "",
                "suspiciousAccActivity": "",
                "txnActivityDay": "",
                "txnActivityYear": ""
            }),
            "acctType": "",
            "acquirerBIN": "",
            "acquirerMerchantID": "",
            "addrMatch": "",
            "authenticationOnly": false,
            "challengeIndicator": "",
            "deviceChannel": "",
            "deviceRenderOptions": json!({
                "sdkInterface": "",
                "sdkUiType": ()
            }),
            "homePhone": json!({
                "cc": "",
                "subscriber": ""
            }),
            "mcc": "",
            "merchantName": "",
            "messageVersion": "",
            "mobilePhone": json!({}),
            "notificationURL": "",
            "payTokenInd": false,
            "paymentAuthenticationUseCase": "",
            "purchaseInstalData": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "sdkAppID": "",
            "sdkEncData": "",
            "sdkEphemPubKey": json!({
                "crv": "",
                "kty": "",
                "x": "",
                "y": ""
            }),
            "sdkMaxTimeout": 0,
            "sdkReferenceNumber": "",
            "sdkTransID": "",
            "sdkVersion": "",
            "threeDSCompInd": "",
            "threeDSRequestorAuthenticationInd": "",
            "threeDSRequestorAuthenticationInfo": json!({
                "threeDSReqAuthData": "",
                "threeDSReqAuthMethod": "",
                "threeDSReqAuthTimestamp": ""
            }),
            "threeDSRequestorChallengeInd": "",
            "threeDSRequestorID": "",
            "threeDSRequestorName": "",
            "threeDSRequestorPriorAuthenticationInfo": json!({
                "threeDSReqPriorAuthData": "",
                "threeDSReqPriorAuthMethod": "",
                "threeDSReqPriorAuthTimestamp": "",
                "threeDSReqPriorRef": ""
            }),
            "threeDSRequestorURL": "",
            "transType": "",
            "transactionType": "",
            "whiteListStatus": "",
            "workPhone": json!({})
        }),
        "threeDSAuthenticationOnly": false,
        "totalsGroup": "",
        "trustedShopper": false
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/authorise3d \
  --header 'content-type: application/json' \
  --data '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
echo '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "paResponse": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}' |  \
  http POST {{baseUrl}}/authorise3d \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "fraudOffset": 0,\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mcc": "",\n  "md": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "orderReference": "",\n  "paResponse": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}' \
  --output-document \
  - {{baseUrl}}/authorise3d
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountInfo": [
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  ],
  "additionalAmount": [
    "currency": "",
    "value": 0
  ],
  "additionalData": [],
  "amount": [],
  "applicationInfo": [
    "adyenLibrary": [
      "name": "",
      "version": ""
    ],
    "adyenPaymentSource": [],
    "externalPlatform": [
      "integrator": "",
      "name": "",
      "version": ""
    ],
    "merchantApplication": [],
    "merchantDevice": [
      "os": "",
      "osVersion": "",
      "reference": ""
    ],
    "shopperInteractionDevice": [
      "locale": "",
      "os": "",
      "osVersion": ""
    ]
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "browserInfo": [
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  ],
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": [
    "account": "",
    "accountType": "",
    "baseAmount": [],
    "basePoints": 0,
    "buy": [],
    "interbank": [],
    "reference": "",
    "sell": [],
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  ],
  "deliveryAddress": [],
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": [
    "plan": "",
    "value": 0
  ],
  "localizedShopperStatement": [],
  "mcc": "",
  "md": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": [
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": [],
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  ],
  "metadata": [],
  "orderReference": "",
  "paResponse": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  ],
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": [
    "firstName": "",
    "lastName": ""
  ],
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": [
    "acctInfo": [
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    ],
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": [
      "sdkInterface": "",
      "sdkUiType": []
    ],
    "homePhone": [
      "cc": "",
      "subscriber": ""
    ],
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": [],
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": [
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    ],
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": [
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    ],
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": [
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    ],
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": []
  ],
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
] as [String : Any]

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Complete a 3DS2 authorisation
{{baseUrl}}/authorise3ds2
BODY json

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");

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

(client/post "{{baseUrl}}/authorise3ds2" {:content-type :json
                                                          :form-params {:accountInfo {:accountAgeIndicator ""
                                                                                      :accountChangeDate ""
                                                                                      :accountChangeIndicator ""
                                                                                      :accountCreationDate ""
                                                                                      :accountType ""
                                                                                      :addCardAttemptsDay 0
                                                                                      :deliveryAddressUsageDate ""
                                                                                      :deliveryAddressUsageIndicator ""
                                                                                      :homePhone ""
                                                                                      :mobilePhone ""
                                                                                      :passwordChangeDate ""
                                                                                      :passwordChangeIndicator ""
                                                                                      :pastTransactionsDay 0
                                                                                      :pastTransactionsYear 0
                                                                                      :paymentAccountAge ""
                                                                                      :paymentAccountIndicator ""
                                                                                      :purchasesLast6Months 0
                                                                                      :suspiciousActivity false
                                                                                      :workPhone ""}
                                                                        :additionalAmount {:currency ""
                                                                                           :value 0}
                                                                        :additionalData {}
                                                                        :amount {}
                                                                        :applicationInfo {:adyenLibrary {:name ""
                                                                                                         :version ""}
                                                                                          :adyenPaymentSource {}
                                                                                          :externalPlatform {:integrator ""
                                                                                                             :name ""
                                                                                                             :version ""}
                                                                                          :merchantApplication {}
                                                                                          :merchantDevice {:os ""
                                                                                                           :osVersion ""
                                                                                                           :reference ""}
                                                                                          :shopperInteractionDevice {:locale ""
                                                                                                                     :os ""
                                                                                                                     :osVersion ""}}
                                                                        :billingAddress {:city ""
                                                                                         :country ""
                                                                                         :houseNumberOrName ""
                                                                                         :postalCode ""
                                                                                         :stateOrProvince ""
                                                                                         :street ""}
                                                                        :browserInfo {:acceptHeader ""
                                                                                      :colorDepth 0
                                                                                      :javaEnabled false
                                                                                      :javaScriptEnabled false
                                                                                      :language ""
                                                                                      :screenHeight 0
                                                                                      :screenWidth 0
                                                                                      :timeZoneOffset 0
                                                                                      :userAgent ""}
                                                                        :captureDelayHours 0
                                                                        :dateOfBirth ""
                                                                        :dccQuote {:account ""
                                                                                   :accountType ""
                                                                                   :baseAmount {}
                                                                                   :basePoints 0
                                                                                   :buy {}
                                                                                   :interbank {}
                                                                                   :reference ""
                                                                                   :sell {}
                                                                                   :signature ""
                                                                                   :source ""
                                                                                   :type ""
                                                                                   :validTill ""}
                                                                        :deliveryAddress {}
                                                                        :deliveryDate ""
                                                                        :deviceFingerprint ""
                                                                        :fraudOffset 0
                                                                        :installments {:plan ""
                                                                                       :value 0}
                                                                        :localizedShopperStatement {}
                                                                        :mcc ""
                                                                        :merchantAccount ""
                                                                        :merchantOrderReference ""
                                                                        :merchantRiskIndicator {:addressMatch false
                                                                                                :deliveryAddressIndicator ""
                                                                                                :deliveryEmail ""
                                                                                                :deliveryEmailAddress ""
                                                                                                :deliveryTimeframe ""
                                                                                                :giftCardAmount {}
                                                                                                :giftCardCount 0
                                                                                                :giftCardCurr ""
                                                                                                :preOrderDate ""
                                                                                                :preOrderPurchase false
                                                                                                :preOrderPurchaseInd ""
                                                                                                :reorderItems false
                                                                                                :reorderItemsInd ""
                                                                                                :shipIndicator ""}
                                                                        :metadata {}
                                                                        :orderReference ""
                                                                        :recurring {:contract ""
                                                                                    :recurringDetailName ""
                                                                                    :recurringExpiry ""
                                                                                    :recurringFrequency ""
                                                                                    :tokenService ""}
                                                                        :recurringProcessingModel ""
                                                                        :reference ""
                                                                        :selectedBrand ""
                                                                        :selectedRecurringDetailReference ""
                                                                        :sessionId ""
                                                                        :shopperEmail ""
                                                                        :shopperIP ""
                                                                        :shopperInteraction ""
                                                                        :shopperLocale ""
                                                                        :shopperName {:firstName ""
                                                                                      :lastName ""}
                                                                        :shopperReference ""
                                                                        :shopperStatement ""
                                                                        :socialSecurityNumber ""
                                                                        :splits [{:account ""
                                                                                  :amount {:currency ""
                                                                                           :value 0}
                                                                                  :description ""
                                                                                  :reference ""
                                                                                  :type ""}]
                                                                        :store ""
                                                                        :telephoneNumber ""
                                                                        :threeDS2RequestData {:acctInfo {:chAccAgeInd ""
                                                                                                         :chAccChange ""
                                                                                                         :chAccChangeInd ""
                                                                                                         :chAccPwChange ""
                                                                                                         :chAccPwChangeInd ""
                                                                                                         :chAccString ""
                                                                                                         :nbPurchaseAccount ""
                                                                                                         :paymentAccAge ""
                                                                                                         :paymentAccInd ""
                                                                                                         :provisionAttemptsDay ""
                                                                                                         :shipAddressUsage ""
                                                                                                         :shipAddressUsageInd ""
                                                                                                         :shipNameIndicator ""
                                                                                                         :suspiciousAccActivity ""
                                                                                                         :txnActivityDay ""
                                                                                                         :txnActivityYear ""}
                                                                                              :acctType ""
                                                                                              :acquirerBIN ""
                                                                                              :acquirerMerchantID ""
                                                                                              :addrMatch ""
                                                                                              :authenticationOnly false
                                                                                              :challengeIndicator ""
                                                                                              :deviceChannel ""
                                                                                              :deviceRenderOptions {:sdkInterface ""
                                                                                                                    :sdkUiType []}
                                                                                              :homePhone {:cc ""
                                                                                                          :subscriber ""}
                                                                                              :mcc ""
                                                                                              :merchantName ""
                                                                                              :messageVersion ""
                                                                                              :mobilePhone {}
                                                                                              :notificationURL ""
                                                                                              :payTokenInd false
                                                                                              :paymentAuthenticationUseCase ""
                                                                                              :purchaseInstalData ""
                                                                                              :recurringExpiry ""
                                                                                              :recurringFrequency ""
                                                                                              :sdkAppID ""
                                                                                              :sdkEncData ""
                                                                                              :sdkEphemPubKey {:crv ""
                                                                                                               :kty ""
                                                                                                               :x ""
                                                                                                               :y ""}
                                                                                              :sdkMaxTimeout 0
                                                                                              :sdkReferenceNumber ""
                                                                                              :sdkTransID ""
                                                                                              :sdkVersion ""
                                                                                              :threeDSCompInd ""
                                                                                              :threeDSRequestorAuthenticationInd ""
                                                                                              :threeDSRequestorAuthenticationInfo {:threeDSReqAuthData ""
                                                                                                                                   :threeDSReqAuthMethod ""
                                                                                                                                   :threeDSReqAuthTimestamp ""}
                                                                                              :threeDSRequestorChallengeInd ""
                                                                                              :threeDSRequestorID ""
                                                                                              :threeDSRequestorName ""
                                                                                              :threeDSRequestorPriorAuthenticationInfo {:threeDSReqPriorAuthData ""
                                                                                                                                        :threeDSReqPriorAuthMethod ""
                                                                                                                                        :threeDSReqPriorAuthTimestamp ""
                                                                                                                                        :threeDSReqPriorRef ""}
                                                                                              :threeDSRequestorURL ""
                                                                                              :transType ""
                                                                                              :transactionType ""
                                                                                              :whiteListStatus ""
                                                                                              :workPhone {}}
                                                                        :threeDS2Result {:authenticationValue ""
                                                                                         :cavvAlgorithm ""
                                                                                         :challengeCancel ""
                                                                                         :challengeIndicator ""
                                                                                         :dsTransID ""
                                                                                         :eci ""
                                                                                         :exemptionIndicator ""
                                                                                         :messageVersion ""
                                                                                         :riskScore ""
                                                                                         :threeDSServerTransID ""
                                                                                         :timestamp ""
                                                                                         :transStatus ""
                                                                                         :transStatusReason ""
                                                                                         :whiteListStatus ""}
                                                                        :threeDS2Token ""
                                                                        :threeDSAuthenticationOnly false
                                                                        :totalsGroup ""
                                                                        :trustedShopper false}})
require "http/client"

url = "{{baseUrl}}/authorise3ds2"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/authorise3ds2"),
    Content = new StringContent("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/authorise3ds2");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/authorise3ds2 HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 5815

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/authorise3ds2")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/authorise3ds2"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/authorise3ds2")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/authorise3ds2")
  .header("content-type", "application/json")
  .body("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .asString();
const data = JSON.stringify({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDS2Result: {
    authenticationValue: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    challengeIndicator: '',
    dsTransID: '',
    eci: '',
    exemptionIndicator: '',
    messageVersion: '',
    riskScore: '',
    threeDSServerTransID: '',
    timestamp: '',
    transStatus: '',
    transStatusReason: '',
    whiteListStatus: ''
  },
  threeDS2Token: '',
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3ds2',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDS2Result: {
      authenticationValue: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      challengeIndicator: '',
      dsTransID: '',
      eci: '',
      exemptionIndicator: '',
      messageVersion: '',
      riskScore: '',
      threeDSServerTransID: '',
      timestamp: '',
      transStatus: '',
      transStatusReason: '',
      whiteListStatus: ''
    },
    threeDS2Token: '',
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/authorise3ds2';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","fraudOffset":0,"installments":{"plan":"","value":0},"localizedShopperStatement":{},"mcc":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"orderReference":"","recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDS2Result":{"authenticationValue":"","cavvAlgorithm":"","challengeCancel":"","challengeIndicator":"","dsTransID":"","eci":"","exemptionIndicator":"","messageVersion":"","riskScore":"","threeDSServerTransID":"","timestamp":"","transStatus":"","transStatusReason":"","whiteListStatus":""},"threeDS2Token":"","threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/authorise3ds2',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "fraudOffset": 0,\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mcc": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "orderReference": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDS2Result": {\n    "authenticationValue": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "challengeIndicator": "",\n    "dsTransID": "",\n    "eci": "",\n    "exemptionIndicator": "",\n    "messageVersion": "",\n    "riskScore": "",\n    "threeDSServerTransID": "",\n    "timestamp": "",\n    "transStatus": "",\n    "transStatusReason": "",\n    "whiteListStatus": ""\n  },\n  "threeDS2Token": "",\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/authorise3ds2")
  .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/authorise3ds2',
  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({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {currency: '', value: 0},
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {name: '', version: ''},
    adyenPaymentSource: {},
    externalPlatform: {integrator: '', name: '', version: ''},
    merchantApplication: {},
    merchantDevice: {os: '', osVersion: '', reference: ''},
    shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {plan: '', value: 0},
  localizedShopperStatement: {},
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {firstName: '', lastName: ''},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
    homePhone: {cc: '', subscriber: ''},
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDS2Result: {
    authenticationValue: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    challengeIndicator: '',
    dsTransID: '',
    eci: '',
    exemptionIndicator: '',
    messageVersion: '',
    riskScore: '',
    threeDSServerTransID: '',
    timestamp: '',
    transStatus: '',
    transStatusReason: '',
    whiteListStatus: ''
  },
  threeDS2Token: '',
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3ds2',
  headers: {'content-type': 'application/json'},
  body: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDS2Result: {
      authenticationValue: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      challengeIndicator: '',
      dsTransID: '',
      eci: '',
      exemptionIndicator: '',
      messageVersion: '',
      riskScore: '',
      threeDSServerTransID: '',
      timestamp: '',
      transStatus: '',
      transStatusReason: '',
      whiteListStatus: ''
    },
    threeDS2Token: '',
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  fraudOffset: 0,
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  orderReference: '',
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {
    firstName: '',
    lastName: ''
  },
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDS2Result: {
    authenticationValue: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    challengeIndicator: '',
    dsTransID: '',
    eci: '',
    exemptionIndicator: '',
    messageVersion: '',
    riskScore: '',
    threeDSServerTransID: '',
    timestamp: '',
    transStatus: '',
    transStatusReason: '',
    whiteListStatus: ''
  },
  threeDS2Token: '',
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise3ds2',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    fraudOffset: 0,
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    orderReference: '',
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDS2Result: {
      authenticationValue: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      challengeIndicator: '',
      dsTransID: '',
      eci: '',
      exemptionIndicator: '',
      messageVersion: '',
      riskScore: '',
      threeDSServerTransID: '',
      timestamp: '',
      transStatus: '',
      transStatusReason: '',
      whiteListStatus: ''
    },
    threeDS2Token: '',
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

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

const url = '{{baseUrl}}/authorise3ds2';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","fraudOffset":0,"installments":{"plan":"","value":0},"localizedShopperStatement":{},"mcc":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"orderReference":"","recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDS2Result":{"authenticationValue":"","cavvAlgorithm":"","challengeCancel":"","challengeIndicator":"","dsTransID":"","eci":"","exemptionIndicator":"","messageVersion":"","riskScore":"","threeDSServerTransID":"","timestamp":"","transStatus":"","transStatusReason":"","whiteListStatus":""},"threeDS2Token":"","threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountInfo": @{ @"accountAgeIndicator": @"", @"accountChangeDate": @"", @"accountChangeIndicator": @"", @"accountCreationDate": @"", @"accountType": @"", @"addCardAttemptsDay": @0, @"deliveryAddressUsageDate": @"", @"deliveryAddressUsageIndicator": @"", @"homePhone": @"", @"mobilePhone": @"", @"passwordChangeDate": @"", @"passwordChangeIndicator": @"", @"pastTransactionsDay": @0, @"pastTransactionsYear": @0, @"paymentAccountAge": @"", @"paymentAccountIndicator": @"", @"purchasesLast6Months": @0, @"suspiciousActivity": @NO, @"workPhone": @"" },
                              @"additionalAmount": @{ @"currency": @"", @"value": @0 },
                              @"additionalData": @{  },
                              @"amount": @{  },
                              @"applicationInfo": @{ @"adyenLibrary": @{ @"name": @"", @"version": @"" }, @"adyenPaymentSource": @{  }, @"externalPlatform": @{ @"integrator": @"", @"name": @"", @"version": @"" }, @"merchantApplication": @{  }, @"merchantDevice": @{ @"os": @"", @"osVersion": @"", @"reference": @"" }, @"shopperInteractionDevice": @{ @"locale": @"", @"os": @"", @"osVersion": @"" } },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"browserInfo": @{ @"acceptHeader": @"", @"colorDepth": @0, @"javaEnabled": @NO, @"javaScriptEnabled": @NO, @"language": @"", @"screenHeight": @0, @"screenWidth": @0, @"timeZoneOffset": @0, @"userAgent": @"" },
                              @"captureDelayHours": @0,
                              @"dateOfBirth": @"",
                              @"dccQuote": @{ @"account": @"", @"accountType": @"", @"baseAmount": @{  }, @"basePoints": @0, @"buy": @{  }, @"interbank": @{  }, @"reference": @"", @"sell": @{  }, @"signature": @"", @"source": @"", @"type": @"", @"validTill": @"" },
                              @"deliveryAddress": @{  },
                              @"deliveryDate": @"",
                              @"deviceFingerprint": @"",
                              @"fraudOffset": @0,
                              @"installments": @{ @"plan": @"", @"value": @0 },
                              @"localizedShopperStatement": @{  },
                              @"mcc": @"",
                              @"merchantAccount": @"",
                              @"merchantOrderReference": @"",
                              @"merchantRiskIndicator": @{ @"addressMatch": @NO, @"deliveryAddressIndicator": @"", @"deliveryEmail": @"", @"deliveryEmailAddress": @"", @"deliveryTimeframe": @"", @"giftCardAmount": @{  }, @"giftCardCount": @0, @"giftCardCurr": @"", @"preOrderDate": @"", @"preOrderPurchase": @NO, @"preOrderPurchaseInd": @"", @"reorderItems": @NO, @"reorderItemsInd": @"", @"shipIndicator": @"" },
                              @"metadata": @{  },
                              @"orderReference": @"",
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"tokenService": @"" },
                              @"recurringProcessingModel": @"",
                              @"reference": @"",
                              @"selectedBrand": @"",
                              @"selectedRecurringDetailReference": @"",
                              @"sessionId": @"",
                              @"shopperEmail": @"",
                              @"shopperIP": @"",
                              @"shopperInteraction": @"",
                              @"shopperLocale": @"",
                              @"shopperName": @{ @"firstName": @"", @"lastName": @"" },
                              @"shopperReference": @"",
                              @"shopperStatement": @"",
                              @"socialSecurityNumber": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"store": @"",
                              @"telephoneNumber": @"",
                              @"threeDS2RequestData": @{ @"acctInfo": @{ @"chAccAgeInd": @"", @"chAccChange": @"", @"chAccChangeInd": @"", @"chAccPwChange": @"", @"chAccPwChangeInd": @"", @"chAccString": @"", @"nbPurchaseAccount": @"", @"paymentAccAge": @"", @"paymentAccInd": @"", @"provisionAttemptsDay": @"", @"shipAddressUsage": @"", @"shipAddressUsageInd": @"", @"shipNameIndicator": @"", @"suspiciousAccActivity": @"", @"txnActivityDay": @"", @"txnActivityYear": @"" }, @"acctType": @"", @"acquirerBIN": @"", @"acquirerMerchantID": @"", @"addrMatch": @"", @"authenticationOnly": @NO, @"challengeIndicator": @"", @"deviceChannel": @"", @"deviceRenderOptions": @{ @"sdkInterface": @"", @"sdkUiType": @[  ] }, @"homePhone": @{ @"cc": @"", @"subscriber": @"" }, @"mcc": @"", @"merchantName": @"", @"messageVersion": @"", @"mobilePhone": @{  }, @"notificationURL": @"", @"payTokenInd": @NO, @"paymentAuthenticationUseCase": @"", @"purchaseInstalData": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"sdkAppID": @"", @"sdkEncData": @"", @"sdkEphemPubKey": @{ @"crv": @"", @"kty": @"", @"x": @"", @"y": @"" }, @"sdkMaxTimeout": @0, @"sdkReferenceNumber": @"", @"sdkTransID": @"", @"sdkVersion": @"", @"threeDSCompInd": @"", @"threeDSRequestorAuthenticationInd": @"", @"threeDSRequestorAuthenticationInfo": @{ @"threeDSReqAuthData": @"", @"threeDSReqAuthMethod": @"", @"threeDSReqAuthTimestamp": @"" }, @"threeDSRequestorChallengeInd": @"", @"threeDSRequestorID": @"", @"threeDSRequestorName": @"", @"threeDSRequestorPriorAuthenticationInfo": @{ @"threeDSReqPriorAuthData": @"", @"threeDSReqPriorAuthMethod": @"", @"threeDSReqPriorAuthTimestamp": @"", @"threeDSReqPriorRef": @"" }, @"threeDSRequestorURL": @"", @"transType": @"", @"transactionType": @"", @"whiteListStatus": @"", @"workPhone": @{  } },
                              @"threeDS2Result": @{ @"authenticationValue": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"challengeIndicator": @"", @"dsTransID": @"", @"eci": @"", @"exemptionIndicator": @"", @"messageVersion": @"", @"riskScore": @"", @"threeDSServerTransID": @"", @"timestamp": @"", @"transStatus": @"", @"transStatusReason": @"", @"whiteListStatus": @"" },
                              @"threeDS2Token": @"",
                              @"threeDSAuthenticationOnly": @NO,
                              @"totalsGroup": @"",
                              @"trustedShopper": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/authorise3ds2"]
                                                       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}}/authorise3ds2" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/authorise3ds2",
  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([
    'accountInfo' => [
        'accountAgeIndicator' => '',
        'accountChangeDate' => '',
        'accountChangeIndicator' => '',
        'accountCreationDate' => '',
        'accountType' => '',
        'addCardAttemptsDay' => 0,
        'deliveryAddressUsageDate' => '',
        'deliveryAddressUsageIndicator' => '',
        'homePhone' => '',
        'mobilePhone' => '',
        'passwordChangeDate' => '',
        'passwordChangeIndicator' => '',
        'pastTransactionsDay' => 0,
        'pastTransactionsYear' => 0,
        'paymentAccountAge' => '',
        'paymentAccountIndicator' => '',
        'purchasesLast6Months' => 0,
        'suspiciousActivity' => null,
        'workPhone' => ''
    ],
    'additionalAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'additionalData' => [
        
    ],
    'amount' => [
        
    ],
    'applicationInfo' => [
        'adyenLibrary' => [
                'name' => '',
                'version' => ''
        ],
        'adyenPaymentSource' => [
                
        ],
        'externalPlatform' => [
                'integrator' => '',
                'name' => '',
                'version' => ''
        ],
        'merchantApplication' => [
                
        ],
        'merchantDevice' => [
                'os' => '',
                'osVersion' => '',
                'reference' => ''
        ],
        'shopperInteractionDevice' => [
                'locale' => '',
                'os' => '',
                'osVersion' => ''
        ]
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'browserInfo' => [
        'acceptHeader' => '',
        'colorDepth' => 0,
        'javaEnabled' => null,
        'javaScriptEnabled' => null,
        'language' => '',
        'screenHeight' => 0,
        'screenWidth' => 0,
        'timeZoneOffset' => 0,
        'userAgent' => ''
    ],
    'captureDelayHours' => 0,
    'dateOfBirth' => '',
    'dccQuote' => [
        'account' => '',
        'accountType' => '',
        'baseAmount' => [
                
        ],
        'basePoints' => 0,
        'buy' => [
                
        ],
        'interbank' => [
                
        ],
        'reference' => '',
        'sell' => [
                
        ],
        'signature' => '',
        'source' => '',
        'type' => '',
        'validTill' => ''
    ],
    'deliveryAddress' => [
        
    ],
    'deliveryDate' => '',
    'deviceFingerprint' => '',
    'fraudOffset' => 0,
    'installments' => [
        'plan' => '',
        'value' => 0
    ],
    'localizedShopperStatement' => [
        
    ],
    'mcc' => '',
    'merchantAccount' => '',
    'merchantOrderReference' => '',
    'merchantRiskIndicator' => [
        'addressMatch' => null,
        'deliveryAddressIndicator' => '',
        'deliveryEmail' => '',
        'deliveryEmailAddress' => '',
        'deliveryTimeframe' => '',
        'giftCardAmount' => [
                
        ],
        'giftCardCount' => 0,
        'giftCardCurr' => '',
        'preOrderDate' => '',
        'preOrderPurchase' => null,
        'preOrderPurchaseInd' => '',
        'reorderItems' => null,
        'reorderItemsInd' => '',
        'shipIndicator' => ''
    ],
    'metadata' => [
        
    ],
    'orderReference' => '',
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'tokenService' => ''
    ],
    'recurringProcessingModel' => '',
    'reference' => '',
    'selectedBrand' => '',
    'selectedRecurringDetailReference' => '',
    'sessionId' => '',
    'shopperEmail' => '',
    'shopperIP' => '',
    'shopperInteraction' => '',
    'shopperLocale' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'shopperStatement' => '',
    'socialSecurityNumber' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'store' => '',
    'telephoneNumber' => '',
    'threeDS2RequestData' => [
        'acctInfo' => [
                'chAccAgeInd' => '',
                'chAccChange' => '',
                'chAccChangeInd' => '',
                'chAccPwChange' => '',
                'chAccPwChangeInd' => '',
                'chAccString' => '',
                'nbPurchaseAccount' => '',
                'paymentAccAge' => '',
                'paymentAccInd' => '',
                'provisionAttemptsDay' => '',
                'shipAddressUsage' => '',
                'shipAddressUsageInd' => '',
                'shipNameIndicator' => '',
                'suspiciousAccActivity' => '',
                'txnActivityDay' => '',
                'txnActivityYear' => ''
        ],
        'acctType' => '',
        'acquirerBIN' => '',
        'acquirerMerchantID' => '',
        'addrMatch' => '',
        'authenticationOnly' => null,
        'challengeIndicator' => '',
        'deviceChannel' => '',
        'deviceRenderOptions' => [
                'sdkInterface' => '',
                'sdkUiType' => [
                                
                ]
        ],
        'homePhone' => [
                'cc' => '',
                'subscriber' => ''
        ],
        'mcc' => '',
        'merchantName' => '',
        'messageVersion' => '',
        'mobilePhone' => [
                
        ],
        'notificationURL' => '',
        'payTokenInd' => null,
        'paymentAuthenticationUseCase' => '',
        'purchaseInstalData' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'sdkAppID' => '',
        'sdkEncData' => '',
        'sdkEphemPubKey' => [
                'crv' => '',
                'kty' => '',
                'x' => '',
                'y' => ''
        ],
        'sdkMaxTimeout' => 0,
        'sdkReferenceNumber' => '',
        'sdkTransID' => '',
        'sdkVersion' => '',
        'threeDSCompInd' => '',
        'threeDSRequestorAuthenticationInd' => '',
        'threeDSRequestorAuthenticationInfo' => [
                'threeDSReqAuthData' => '',
                'threeDSReqAuthMethod' => '',
                'threeDSReqAuthTimestamp' => ''
        ],
        'threeDSRequestorChallengeInd' => '',
        'threeDSRequestorID' => '',
        'threeDSRequestorName' => '',
        'threeDSRequestorPriorAuthenticationInfo' => [
                'threeDSReqPriorAuthData' => '',
                'threeDSReqPriorAuthMethod' => '',
                'threeDSReqPriorAuthTimestamp' => '',
                'threeDSReqPriorRef' => ''
        ],
        'threeDSRequestorURL' => '',
        'transType' => '',
        'transactionType' => '',
        'whiteListStatus' => '',
        'workPhone' => [
                
        ]
    ],
    'threeDS2Result' => [
        'authenticationValue' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'challengeIndicator' => '',
        'dsTransID' => '',
        'eci' => '',
        'exemptionIndicator' => '',
        'messageVersion' => '',
        'riskScore' => '',
        'threeDSServerTransID' => '',
        'timestamp' => '',
        'transStatus' => '',
        'transStatusReason' => '',
        'whiteListStatus' => ''
    ],
    'threeDS2Token' => '',
    'threeDSAuthenticationOnly' => null,
    'totalsGroup' => '',
    'trustedShopper' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/authorise3ds2', [
  'body' => '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'fraudOffset' => 0,
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mcc' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'orderReference' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDS2Result' => [
    'authenticationValue' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'challengeIndicator' => '',
    'dsTransID' => '',
    'eci' => '',
    'exemptionIndicator' => '',
    'messageVersion' => '',
    'riskScore' => '',
    'threeDSServerTransID' => '',
    'timestamp' => '',
    'transStatus' => '',
    'transStatusReason' => '',
    'whiteListStatus' => ''
  ],
  'threeDS2Token' => '',
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'fraudOffset' => 0,
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mcc' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'orderReference' => '',
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    'firstName' => '',
    'lastName' => ''
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDS2Result' => [
    'authenticationValue' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'challengeIndicator' => '',
    'dsTransID' => '',
    'eci' => '',
    'exemptionIndicator' => '',
    'messageVersion' => '',
    'riskScore' => '',
    'threeDSServerTransID' => '',
    'timestamp' => '',
    'transStatus' => '',
    'transStatusReason' => '',
    'whiteListStatus' => ''
  ],
  'threeDS2Token' => '',
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));
$request->setRequestUrl('{{baseUrl}}/authorise3ds2');
$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}}/authorise3ds2' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/authorise3ds2' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
import http.client

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

payload = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

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

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

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

url = "{{baseUrl}}/authorise3ds2"

payload = {
    "accountInfo": {
        "accountAgeIndicator": "",
        "accountChangeDate": "",
        "accountChangeIndicator": "",
        "accountCreationDate": "",
        "accountType": "",
        "addCardAttemptsDay": 0,
        "deliveryAddressUsageDate": "",
        "deliveryAddressUsageIndicator": "",
        "homePhone": "",
        "mobilePhone": "",
        "passwordChangeDate": "",
        "passwordChangeIndicator": "",
        "pastTransactionsDay": 0,
        "pastTransactionsYear": 0,
        "paymentAccountAge": "",
        "paymentAccountIndicator": "",
        "purchasesLast6Months": 0,
        "suspiciousActivity": False,
        "workPhone": ""
    },
    "additionalAmount": {
        "currency": "",
        "value": 0
    },
    "additionalData": {},
    "amount": {},
    "applicationInfo": {
        "adyenLibrary": {
            "name": "",
            "version": ""
        },
        "adyenPaymentSource": {},
        "externalPlatform": {
            "integrator": "",
            "name": "",
            "version": ""
        },
        "merchantApplication": {},
        "merchantDevice": {
            "os": "",
            "osVersion": "",
            "reference": ""
        },
        "shopperInteractionDevice": {
            "locale": "",
            "os": "",
            "osVersion": ""
        }
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "browserInfo": {
        "acceptHeader": "",
        "colorDepth": 0,
        "javaEnabled": False,
        "javaScriptEnabled": False,
        "language": "",
        "screenHeight": 0,
        "screenWidth": 0,
        "timeZoneOffset": 0,
        "userAgent": ""
    },
    "captureDelayHours": 0,
    "dateOfBirth": "",
    "dccQuote": {
        "account": "",
        "accountType": "",
        "baseAmount": {},
        "basePoints": 0,
        "buy": {},
        "interbank": {},
        "reference": "",
        "sell": {},
        "signature": "",
        "source": "",
        "type": "",
        "validTill": ""
    },
    "deliveryAddress": {},
    "deliveryDate": "",
    "deviceFingerprint": "",
    "fraudOffset": 0,
    "installments": {
        "plan": "",
        "value": 0
    },
    "localizedShopperStatement": {},
    "mcc": "",
    "merchantAccount": "",
    "merchantOrderReference": "",
    "merchantRiskIndicator": {
        "addressMatch": False,
        "deliveryAddressIndicator": "",
        "deliveryEmail": "",
        "deliveryEmailAddress": "",
        "deliveryTimeframe": "",
        "giftCardAmount": {},
        "giftCardCount": 0,
        "giftCardCurr": "",
        "preOrderDate": "",
        "preOrderPurchase": False,
        "preOrderPurchaseInd": "",
        "reorderItems": False,
        "reorderItemsInd": "",
        "shipIndicator": ""
    },
    "metadata": {},
    "orderReference": "",
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "tokenService": ""
    },
    "recurringProcessingModel": "",
    "reference": "",
    "selectedBrand": "",
    "selectedRecurringDetailReference": "",
    "sessionId": "",
    "shopperEmail": "",
    "shopperIP": "",
    "shopperInteraction": "",
    "shopperLocale": "",
    "shopperName": {
        "firstName": "",
        "lastName": ""
    },
    "shopperReference": "",
    "shopperStatement": "",
    "socialSecurityNumber": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "store": "",
    "telephoneNumber": "",
    "threeDS2RequestData": {
        "acctInfo": {
            "chAccAgeInd": "",
            "chAccChange": "",
            "chAccChangeInd": "",
            "chAccPwChange": "",
            "chAccPwChangeInd": "",
            "chAccString": "",
            "nbPurchaseAccount": "",
            "paymentAccAge": "",
            "paymentAccInd": "",
            "provisionAttemptsDay": "",
            "shipAddressUsage": "",
            "shipAddressUsageInd": "",
            "shipNameIndicator": "",
            "suspiciousAccActivity": "",
            "txnActivityDay": "",
            "txnActivityYear": ""
        },
        "acctType": "",
        "acquirerBIN": "",
        "acquirerMerchantID": "",
        "addrMatch": "",
        "authenticationOnly": False,
        "challengeIndicator": "",
        "deviceChannel": "",
        "deviceRenderOptions": {
            "sdkInterface": "",
            "sdkUiType": []
        },
        "homePhone": {
            "cc": "",
            "subscriber": ""
        },
        "mcc": "",
        "merchantName": "",
        "messageVersion": "",
        "mobilePhone": {},
        "notificationURL": "",
        "payTokenInd": False,
        "paymentAuthenticationUseCase": "",
        "purchaseInstalData": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "sdkAppID": "",
        "sdkEncData": "",
        "sdkEphemPubKey": {
            "crv": "",
            "kty": "",
            "x": "",
            "y": ""
        },
        "sdkMaxTimeout": 0,
        "sdkReferenceNumber": "",
        "sdkTransID": "",
        "sdkVersion": "",
        "threeDSCompInd": "",
        "threeDSRequestorAuthenticationInd": "",
        "threeDSRequestorAuthenticationInfo": {
            "threeDSReqAuthData": "",
            "threeDSReqAuthMethod": "",
            "threeDSReqAuthTimestamp": ""
        },
        "threeDSRequestorChallengeInd": "",
        "threeDSRequestorID": "",
        "threeDSRequestorName": "",
        "threeDSRequestorPriorAuthenticationInfo": {
            "threeDSReqPriorAuthData": "",
            "threeDSReqPriorAuthMethod": "",
            "threeDSReqPriorAuthTimestamp": "",
            "threeDSReqPriorRef": ""
        },
        "threeDSRequestorURL": "",
        "transType": "",
        "transactionType": "",
        "whiteListStatus": "",
        "workPhone": {}
    },
    "threeDS2Result": {
        "authenticationValue": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "challengeIndicator": "",
        "dsTransID": "",
        "eci": "",
        "exemptionIndicator": "",
        "messageVersion": "",
        "riskScore": "",
        "threeDSServerTransID": "",
        "timestamp": "",
        "transStatus": "",
        "transStatusReason": "",
        "whiteListStatus": ""
    },
    "threeDS2Token": "",
    "threeDSAuthenticationOnly": False,
    "totalsGroup": "",
    "trustedShopper": False
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

encode <- "json"

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

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

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/authorise3ds2') do |req|
  req.body = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"billingAddress\": {\n    \"city\": \"\",\n    \"country\": \"\",\n    \"houseNumberOrName\": \"\",\n    \"postalCode\": \"\",\n    \"stateOrProvince\": \"\",\n    \"street\": \"\"\n  },\n  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"fraudOffset\": 0,\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"orderReference\": \"\",\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {\n    \"firstName\": \"\",\n    \"lastName\": \"\"\n  },\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDS2Result\": {\n    \"authenticationValue\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"challengeIndicator\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"exemptionIndicator\": \"\",\n    \"messageVersion\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSServerTransID\": \"\",\n    \"timestamp\": \"\",\n    \"transStatus\": \"\",\n    \"transStatusReason\": \"\",\n    \"whiteListStatus\": \"\"\n  },\n  \"threeDS2Token\": \"\",\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"
end

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

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

    let payload = json!({
        "accountInfo": json!({
            "accountAgeIndicator": "",
            "accountChangeDate": "",
            "accountChangeIndicator": "",
            "accountCreationDate": "",
            "accountType": "",
            "addCardAttemptsDay": 0,
            "deliveryAddressUsageDate": "",
            "deliveryAddressUsageIndicator": "",
            "homePhone": "",
            "mobilePhone": "",
            "passwordChangeDate": "",
            "passwordChangeIndicator": "",
            "pastTransactionsDay": 0,
            "pastTransactionsYear": 0,
            "paymentAccountAge": "",
            "paymentAccountIndicator": "",
            "purchasesLast6Months": 0,
            "suspiciousActivity": false,
            "workPhone": ""
        }),
        "additionalAmount": json!({
            "currency": "",
            "value": 0
        }),
        "additionalData": json!({}),
        "amount": json!({}),
        "applicationInfo": json!({
            "adyenLibrary": json!({
                "name": "",
                "version": ""
            }),
            "adyenPaymentSource": json!({}),
            "externalPlatform": json!({
                "integrator": "",
                "name": "",
                "version": ""
            }),
            "merchantApplication": json!({}),
            "merchantDevice": json!({
                "os": "",
                "osVersion": "",
                "reference": ""
            }),
            "shopperInteractionDevice": json!({
                "locale": "",
                "os": "",
                "osVersion": ""
            })
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "browserInfo": json!({
            "acceptHeader": "",
            "colorDepth": 0,
            "javaEnabled": false,
            "javaScriptEnabled": false,
            "language": "",
            "screenHeight": 0,
            "screenWidth": 0,
            "timeZoneOffset": 0,
            "userAgent": ""
        }),
        "captureDelayHours": 0,
        "dateOfBirth": "",
        "dccQuote": json!({
            "account": "",
            "accountType": "",
            "baseAmount": json!({}),
            "basePoints": 0,
            "buy": json!({}),
            "interbank": json!({}),
            "reference": "",
            "sell": json!({}),
            "signature": "",
            "source": "",
            "type": "",
            "validTill": ""
        }),
        "deliveryAddress": json!({}),
        "deliveryDate": "",
        "deviceFingerprint": "",
        "fraudOffset": 0,
        "installments": json!({
            "plan": "",
            "value": 0
        }),
        "localizedShopperStatement": json!({}),
        "mcc": "",
        "merchantAccount": "",
        "merchantOrderReference": "",
        "merchantRiskIndicator": json!({
            "addressMatch": false,
            "deliveryAddressIndicator": "",
            "deliveryEmail": "",
            "deliveryEmailAddress": "",
            "deliveryTimeframe": "",
            "giftCardAmount": json!({}),
            "giftCardCount": 0,
            "giftCardCurr": "",
            "preOrderDate": "",
            "preOrderPurchase": false,
            "preOrderPurchaseInd": "",
            "reorderItems": false,
            "reorderItemsInd": "",
            "shipIndicator": ""
        }),
        "metadata": json!({}),
        "orderReference": "",
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "tokenService": ""
        }),
        "recurringProcessingModel": "",
        "reference": "",
        "selectedBrand": "",
        "selectedRecurringDetailReference": "",
        "sessionId": "",
        "shopperEmail": "",
        "shopperIP": "",
        "shopperInteraction": "",
        "shopperLocale": "",
        "shopperName": json!({
            "firstName": "",
            "lastName": ""
        }),
        "shopperReference": "",
        "shopperStatement": "",
        "socialSecurityNumber": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "store": "",
        "telephoneNumber": "",
        "threeDS2RequestData": json!({
            "acctInfo": json!({
                "chAccAgeInd": "",
                "chAccChange": "",
                "chAccChangeInd": "",
                "chAccPwChange": "",
                "chAccPwChangeInd": "",
                "chAccString": "",
                "nbPurchaseAccount": "",
                "paymentAccAge": "",
                "paymentAccInd": "",
                "provisionAttemptsDay": "",
                "shipAddressUsage": "",
                "shipAddressUsageInd": "",
                "shipNameIndicator": "",
                "suspiciousAccActivity": "",
                "txnActivityDay": "",
                "txnActivityYear": ""
            }),
            "acctType": "",
            "acquirerBIN": "",
            "acquirerMerchantID": "",
            "addrMatch": "",
            "authenticationOnly": false,
            "challengeIndicator": "",
            "deviceChannel": "",
            "deviceRenderOptions": json!({
                "sdkInterface": "",
                "sdkUiType": ()
            }),
            "homePhone": json!({
                "cc": "",
                "subscriber": ""
            }),
            "mcc": "",
            "merchantName": "",
            "messageVersion": "",
            "mobilePhone": json!({}),
            "notificationURL": "",
            "payTokenInd": false,
            "paymentAuthenticationUseCase": "",
            "purchaseInstalData": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "sdkAppID": "",
            "sdkEncData": "",
            "sdkEphemPubKey": json!({
                "crv": "",
                "kty": "",
                "x": "",
                "y": ""
            }),
            "sdkMaxTimeout": 0,
            "sdkReferenceNumber": "",
            "sdkTransID": "",
            "sdkVersion": "",
            "threeDSCompInd": "",
            "threeDSRequestorAuthenticationInd": "",
            "threeDSRequestorAuthenticationInfo": json!({
                "threeDSReqAuthData": "",
                "threeDSReqAuthMethod": "",
                "threeDSReqAuthTimestamp": ""
            }),
            "threeDSRequestorChallengeInd": "",
            "threeDSRequestorID": "",
            "threeDSRequestorName": "",
            "threeDSRequestorPriorAuthenticationInfo": json!({
                "threeDSReqPriorAuthData": "",
                "threeDSReqPriorAuthMethod": "",
                "threeDSReqPriorAuthTimestamp": "",
                "threeDSReqPriorRef": ""
            }),
            "threeDSRequestorURL": "",
            "transType": "",
            "transactionType": "",
            "whiteListStatus": "",
            "workPhone": json!({})
        }),
        "threeDS2Result": json!({
            "authenticationValue": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "challengeIndicator": "",
            "dsTransID": "",
            "eci": "",
            "exemptionIndicator": "",
            "messageVersion": "",
            "riskScore": "",
            "threeDSServerTransID": "",
            "timestamp": "",
            "transStatus": "",
            "transStatusReason": "",
            "whiteListStatus": ""
        }),
        "threeDS2Token": "",
        "threeDSAuthenticationOnly": false,
        "totalsGroup": "",
        "trustedShopper": false
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/authorise3ds2 \
  --header 'content-type: application/json' \
  --data '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
echo '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "orderReference": "",
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {
    "firstName": "",
    "lastName": ""
  },
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDS2Result": {
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  },
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}' |  \
  http POST {{baseUrl}}/authorise3ds2 \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "billingAddress": {\n    "city": "",\n    "country": "",\n    "houseNumberOrName": "",\n    "postalCode": "",\n    "stateOrProvince": "",\n    "street": ""\n  },\n  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "fraudOffset": 0,\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mcc": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "orderReference": "",\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {\n    "firstName": "",\n    "lastName": ""\n  },\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDS2Result": {\n    "authenticationValue": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "challengeIndicator": "",\n    "dsTransID": "",\n    "eci": "",\n    "exemptionIndicator": "",\n    "messageVersion": "",\n    "riskScore": "",\n    "threeDSServerTransID": "",\n    "timestamp": "",\n    "transStatus": "",\n    "transStatusReason": "",\n    "whiteListStatus": ""\n  },\n  "threeDS2Token": "",\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}' \
  --output-document \
  - {{baseUrl}}/authorise3ds2
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountInfo": [
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  ],
  "additionalAmount": [
    "currency": "",
    "value": 0
  ],
  "additionalData": [],
  "amount": [],
  "applicationInfo": [
    "adyenLibrary": [
      "name": "",
      "version": ""
    ],
    "adyenPaymentSource": [],
    "externalPlatform": [
      "integrator": "",
      "name": "",
      "version": ""
    ],
    "merchantApplication": [],
    "merchantDevice": [
      "os": "",
      "osVersion": "",
      "reference": ""
    ],
    "shopperInteractionDevice": [
      "locale": "",
      "os": "",
      "osVersion": ""
    ]
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "browserInfo": [
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  ],
  "captureDelayHours": 0,
  "dateOfBirth": "",
  "dccQuote": [
    "account": "",
    "accountType": "",
    "baseAmount": [],
    "basePoints": 0,
    "buy": [],
    "interbank": [],
    "reference": "",
    "sell": [],
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  ],
  "deliveryAddress": [],
  "deliveryDate": "",
  "deviceFingerprint": "",
  "fraudOffset": 0,
  "installments": [
    "plan": "",
    "value": 0
  ],
  "localizedShopperStatement": [],
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": [
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": [],
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  ],
  "metadata": [],
  "orderReference": "",
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  ],
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": [
    "firstName": "",
    "lastName": ""
  ],
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": [
    "acctInfo": [
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    ],
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": [
      "sdkInterface": "",
      "sdkUiType": []
    ],
    "homePhone": [
      "cc": "",
      "subscriber": ""
    ],
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": [],
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": [
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    ],
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": [
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    ],
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": [
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    ],
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": []
  ],
  "threeDS2Result": [
    "authenticationValue": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "challengeIndicator": "",
    "dsTransID": "",
    "eci": "",
    "exemptionIndicator": "",
    "messageVersion": "",
    "riskScore": "",
    "threeDSServerTransID": "",
    "timestamp": "",
    "transStatus": "",
    "transStatusReason": "",
    "whiteListStatus": ""
  ],
  "threeDS2Token": "",
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
] as [String : Any]

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Create an authorisation
{{baseUrl}}/authorise
BODY json

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");

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

(client/post "{{baseUrl}}/authorise" {:content-type :json
                                                      :form-params {:accountInfo {:accountAgeIndicator ""
                                                                                  :accountChangeDate ""
                                                                                  :accountChangeIndicator ""
                                                                                  :accountCreationDate ""
                                                                                  :accountType ""
                                                                                  :addCardAttemptsDay 0
                                                                                  :deliveryAddressUsageDate ""
                                                                                  :deliveryAddressUsageIndicator ""
                                                                                  :homePhone ""
                                                                                  :mobilePhone ""
                                                                                  :passwordChangeDate ""
                                                                                  :passwordChangeIndicator ""
                                                                                  :pastTransactionsDay 0
                                                                                  :pastTransactionsYear 0
                                                                                  :paymentAccountAge ""
                                                                                  :paymentAccountIndicator ""
                                                                                  :purchasesLast6Months 0
                                                                                  :suspiciousActivity false
                                                                                  :workPhone ""}
                                                                    :additionalAmount {:currency ""
                                                                                       :value 0}
                                                                    :additionalData {}
                                                                    :amount {}
                                                                    :applicationInfo {:adyenLibrary {:name ""
                                                                                                     :version ""}
                                                                                      :adyenPaymentSource {}
                                                                                      :externalPlatform {:integrator ""
                                                                                                         :name ""
                                                                                                         :version ""}
                                                                                      :merchantApplication {}
                                                                                      :merchantDevice {:os ""
                                                                                                       :osVersion ""
                                                                                                       :reference ""}
                                                                                      :shopperInteractionDevice {:locale ""
                                                                                                                 :os ""
                                                                                                                 :osVersion ""}}
                                                                    :bankAccount {:bankAccountNumber ""
                                                                                  :bankCity ""
                                                                                  :bankLocationId ""
                                                                                  :bankName ""
                                                                                  :bic ""
                                                                                  :countryCode ""
                                                                                  :iban ""
                                                                                  :ownerName ""
                                                                                  :taxId ""}
                                                                    :billingAddress {:city ""
                                                                                     :country ""
                                                                                     :houseNumberOrName ""
                                                                                     :postalCode ""
                                                                                     :stateOrProvince ""
                                                                                     :street ""}
                                                                    :browserInfo {:acceptHeader ""
                                                                                  :colorDepth 0
                                                                                  :javaEnabled false
                                                                                  :javaScriptEnabled false
                                                                                  :language ""
                                                                                  :screenHeight 0
                                                                                  :screenWidth 0
                                                                                  :timeZoneOffset 0
                                                                                  :userAgent ""}
                                                                    :captureDelayHours 0
                                                                    :card {:cvc ""
                                                                           :expiryMonth ""
                                                                           :expiryYear ""
                                                                           :holderName ""
                                                                           :issueNumber ""
                                                                           :number ""
                                                                           :startMonth ""
                                                                           :startYear ""}
                                                                    :dateOfBirth ""
                                                                    :dccQuote {:account ""
                                                                               :accountType ""
                                                                               :baseAmount {}
                                                                               :basePoints 0
                                                                               :buy {}
                                                                               :interbank {}
                                                                               :reference ""
                                                                               :sell {}
                                                                               :signature ""
                                                                               :source ""
                                                                               :type ""
                                                                               :validTill ""}
                                                                    :deliveryAddress {}
                                                                    :deliveryDate ""
                                                                    :deviceFingerprint ""
                                                                    :entityType ""
                                                                    :fraudOffset 0
                                                                    :fundDestination {:additionalData {}
                                                                                      :billingAddress {}
                                                                                      :card {}
                                                                                      :selectedRecurringDetailReference ""
                                                                                      :shopperEmail ""
                                                                                      :shopperName {:firstName ""
                                                                                                    :lastName ""}
                                                                                      :shopperReference ""
                                                                                      :subMerchant {:city ""
                                                                                                    :country ""
                                                                                                    :mcc ""
                                                                                                    :name ""
                                                                                                    :taxId ""}
                                                                                      :telephoneNumber ""}
                                                                    :fundSource {:additionalData {}
                                                                                 :billingAddress {}
                                                                                 :card {}
                                                                                 :shopperEmail ""
                                                                                 :shopperName {}
                                                                                 :telephoneNumber ""}
                                                                    :fundingSource ""
                                                                    :installments {:plan ""
                                                                                   :value 0}
                                                                    :localizedShopperStatement {}
                                                                    :mandate {:amount ""
                                                                              :amountRule ""
                                                                              :billingAttemptsRule ""
                                                                              :billingDay ""
                                                                              :endsAt ""
                                                                              :frequency ""
                                                                              :remarks ""
                                                                              :startsAt ""}
                                                                    :mcc ""
                                                                    :merchantAccount ""
                                                                    :merchantOrderReference ""
                                                                    :merchantRiskIndicator {:addressMatch false
                                                                                            :deliveryAddressIndicator ""
                                                                                            :deliveryEmail ""
                                                                                            :deliveryEmailAddress ""
                                                                                            :deliveryTimeframe ""
                                                                                            :giftCardAmount {}
                                                                                            :giftCardCount 0
                                                                                            :giftCardCurr ""
                                                                                            :preOrderDate ""
                                                                                            :preOrderPurchase false
                                                                                            :preOrderPurchaseInd ""
                                                                                            :reorderItems false
                                                                                            :reorderItemsInd ""
                                                                                            :shipIndicator ""}
                                                                    :metadata {}
                                                                    :mpiData {:authenticationResponse ""
                                                                              :cavv ""
                                                                              :cavvAlgorithm ""
                                                                              :challengeCancel ""
                                                                              :directoryResponse ""
                                                                              :dsTransID ""
                                                                              :eci ""
                                                                              :riskScore ""
                                                                              :threeDSVersion ""
                                                                              :tokenAuthenticationVerificationValue ""
                                                                              :transStatusReason ""
                                                                              :xid ""}
                                                                    :nationality ""
                                                                    :orderReference ""
                                                                    :platformChargebackLogic {:behavior ""
                                                                                              :costAllocationAccount ""
                                                                                              :targetAccount ""}
                                                                    :recurring {:contract ""
                                                                                :recurringDetailName ""
                                                                                :recurringExpiry ""
                                                                                :recurringFrequency ""
                                                                                :tokenService ""}
                                                                    :recurringProcessingModel ""
                                                                    :reference ""
                                                                    :selectedBrand ""
                                                                    :selectedRecurringDetailReference ""
                                                                    :sessionId ""
                                                                    :shopperEmail ""
                                                                    :shopperIP ""
                                                                    :shopperInteraction ""
                                                                    :shopperLocale ""
                                                                    :shopperName {}
                                                                    :shopperReference ""
                                                                    :shopperStatement ""
                                                                    :socialSecurityNumber ""
                                                                    :splits [{:account ""
                                                                              :amount {:currency ""
                                                                                       :value 0}
                                                                              :description ""
                                                                              :reference ""
                                                                              :type ""}]
                                                                    :store ""
                                                                    :telephoneNumber ""
                                                                    :threeDS2RequestData {:acctInfo {:chAccAgeInd ""
                                                                                                     :chAccChange ""
                                                                                                     :chAccChangeInd ""
                                                                                                     :chAccPwChange ""
                                                                                                     :chAccPwChangeInd ""
                                                                                                     :chAccString ""
                                                                                                     :nbPurchaseAccount ""
                                                                                                     :paymentAccAge ""
                                                                                                     :paymentAccInd ""
                                                                                                     :provisionAttemptsDay ""
                                                                                                     :shipAddressUsage ""
                                                                                                     :shipAddressUsageInd ""
                                                                                                     :shipNameIndicator ""
                                                                                                     :suspiciousAccActivity ""
                                                                                                     :txnActivityDay ""
                                                                                                     :txnActivityYear ""}
                                                                                          :acctType ""
                                                                                          :acquirerBIN ""
                                                                                          :acquirerMerchantID ""
                                                                                          :addrMatch ""
                                                                                          :authenticationOnly false
                                                                                          :challengeIndicator ""
                                                                                          :deviceChannel ""
                                                                                          :deviceRenderOptions {:sdkInterface ""
                                                                                                                :sdkUiType []}
                                                                                          :homePhone {:cc ""
                                                                                                      :subscriber ""}
                                                                                          :mcc ""
                                                                                          :merchantName ""
                                                                                          :messageVersion ""
                                                                                          :mobilePhone {}
                                                                                          :notificationURL ""
                                                                                          :payTokenInd false
                                                                                          :paymentAuthenticationUseCase ""
                                                                                          :purchaseInstalData ""
                                                                                          :recurringExpiry ""
                                                                                          :recurringFrequency ""
                                                                                          :sdkAppID ""
                                                                                          :sdkEncData ""
                                                                                          :sdkEphemPubKey {:crv ""
                                                                                                           :kty ""
                                                                                                           :x ""
                                                                                                           :y ""}
                                                                                          :sdkMaxTimeout 0
                                                                                          :sdkReferenceNumber ""
                                                                                          :sdkTransID ""
                                                                                          :sdkVersion ""
                                                                                          :threeDSCompInd ""
                                                                                          :threeDSRequestorAuthenticationInd ""
                                                                                          :threeDSRequestorAuthenticationInfo {:threeDSReqAuthData ""
                                                                                                                               :threeDSReqAuthMethod ""
                                                                                                                               :threeDSReqAuthTimestamp ""}
                                                                                          :threeDSRequestorChallengeInd ""
                                                                                          :threeDSRequestorID ""
                                                                                          :threeDSRequestorName ""
                                                                                          :threeDSRequestorPriorAuthenticationInfo {:threeDSReqPriorAuthData ""
                                                                                                                                    :threeDSReqPriorAuthMethod ""
                                                                                                                                    :threeDSReqPriorAuthTimestamp ""
                                                                                                                                    :threeDSReqPriorRef ""}
                                                                                          :threeDSRequestorURL ""
                                                                                          :transType ""
                                                                                          :transactionType ""
                                                                                          :whiteListStatus ""
                                                                                          :workPhone {}}
                                                                    :threeDSAuthenticationOnly false
                                                                    :totalsGroup ""
                                                                    :trustedShopper false}})
require "http/client"

url = "{{baseUrl}}/authorise"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/authorise"),
    Content = new StringContent("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/authorise");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/authorise HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 7023

{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/authorise")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/authorise"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/authorise")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/authorise")
  .header("content-type", "application/json")
  .body("{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
  .asString();
const data = JSON.stringify({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  bankAccount: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  entityType: '',
  fraudOffset: 0,
  fundDestination: {
    additionalData: {},
    billingAddress: {},
    card: {},
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {
      firstName: '',
      lastName: ''
    },
    shopperReference: '',
    subMerchant: {
      city: '',
      country: '',
      mcc: '',
      name: '',
      taxId: ''
    },
    telephoneNumber: ''
  },
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {},
    telephoneNumber: ''
  },
  fundingSource: '',
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mandate: {
    amount: '',
    amountRule: '',
    billingAttemptsRule: '',
    billingDay: '',
    endsAt: '',
    frequency: '',
    remarks: '',
    startsAt: ''
  },
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  nationality: '',
  orderReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    bankAccount: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    entityType: '',
    fraudOffset: 0,
    fundDestination: {
      additionalData: {},
      billingAddress: {},
      card: {},
      selectedRecurringDetailReference: '',
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      shopperReference: '',
      subMerchant: {city: '', country: '', mcc: '', name: '', taxId: ''},
      telephoneNumber: ''
    },
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {},
      telephoneNumber: ''
    },
    fundingSource: '',
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mandate: {
      amount: '',
      amountRule: '',
      billingAttemptsRule: '',
      billingDay: '',
      endsAt: '',
      frequency: '',
      remarks: '',
      startsAt: ''
    },
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    nationality: '',
    orderReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/authorise';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"bankAccount":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","entityType":"","fraudOffset":0,"fundDestination":{"additionalData":{},"billingAddress":{},"card":{},"selectedRecurringDetailReference":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","subMerchant":{"city":"","country":"","mcc":"","name":"","taxId":""},"telephoneNumber":""},"fundSource":{"additionalData":{},"billingAddress":{},"card":{},"shopperEmail":"","shopperName":{},"telephoneNumber":""},"fundingSource":"","installments":{"plan":"","value":0},"localizedShopperStatement":{},"mandate":{"amount":"","amountRule":"","billingAttemptsRule":"","billingDay":"","endsAt":"","frequency":"","remarks":"","startsAt":""},"mcc":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"nationality":"","orderReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/authorise',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "bankAccount": {\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  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "fundDestination": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "selectedRecurringDetailReference": "",\n    "shopperEmail": "",\n    "shopperName": {\n      "firstName": "",\n      "lastName": ""\n    },\n    "shopperReference": "",\n    "subMerchant": {\n      "city": "",\n      "country": "",\n      "mcc": "",\n      "name": "",\n      "taxId": ""\n    },\n    "telephoneNumber": ""\n  },\n  "fundSource": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "shopperEmail": "",\n    "shopperName": {},\n    "telephoneNumber": ""\n  },\n  "fundingSource": "",\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mandate": {\n    "amount": "",\n    "amountRule": "",\n    "billingAttemptsRule": "",\n    "billingDay": "",\n    "endsAt": "",\n    "frequency": "",\n    "remarks": "",\n    "startsAt": ""\n  },\n  "mcc": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "nationality": "",\n  "orderReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {},\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/authorise")
  .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/authorise',
  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({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {currency: '', value: 0},
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {name: '', version: ''},
    adyenPaymentSource: {},
    externalPlatform: {integrator: '', name: '', version: ''},
    merchantApplication: {},
    merchantDevice: {os: '', osVersion: '', reference: ''},
    shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
  },
  bankAccount: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  entityType: '',
  fraudOffset: 0,
  fundDestination: {
    additionalData: {},
    billingAddress: {},
    card: {},
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {firstName: '', lastName: ''},
    shopperReference: '',
    subMerchant: {city: '', country: '', mcc: '', name: '', taxId: ''},
    telephoneNumber: ''
  },
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {},
    telephoneNumber: ''
  },
  fundingSource: '',
  installments: {plan: '', value: 0},
  localizedShopperStatement: {},
  mandate: {
    amount: '',
    amountRule: '',
    billingAttemptsRule: '',
    billingDay: '',
    endsAt: '',
    frequency: '',
    remarks: '',
    startsAt: ''
  },
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  nationality: '',
  orderReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
    homePhone: {cc: '', subscriber: ''},
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise',
  headers: {'content-type': 'application/json'},
  body: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    bankAccount: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    entityType: '',
    fraudOffset: 0,
    fundDestination: {
      additionalData: {},
      billingAddress: {},
      card: {},
      selectedRecurringDetailReference: '',
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      shopperReference: '',
      subMerchant: {city: '', country: '', mcc: '', name: '', taxId: ''},
      telephoneNumber: ''
    },
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {},
      telephoneNumber: ''
    },
    fundingSource: '',
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mandate: {
      amount: '',
      amountRule: '',
      billingAttemptsRule: '',
      billingDay: '',
      endsAt: '',
      frequency: '',
      remarks: '',
      startsAt: ''
    },
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    nationality: '',
    orderReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  accountInfo: {
    accountAgeIndicator: '',
    accountChangeDate: '',
    accountChangeIndicator: '',
    accountCreationDate: '',
    accountType: '',
    addCardAttemptsDay: 0,
    deliveryAddressUsageDate: '',
    deliveryAddressUsageIndicator: '',
    homePhone: '',
    mobilePhone: '',
    passwordChangeDate: '',
    passwordChangeIndicator: '',
    pastTransactionsDay: 0,
    pastTransactionsYear: 0,
    paymentAccountAge: '',
    paymentAccountIndicator: '',
    purchasesLast6Months: 0,
    suspiciousActivity: false,
    workPhone: ''
  },
  additionalAmount: {
    currency: '',
    value: 0
  },
  additionalData: {},
  amount: {},
  applicationInfo: {
    adyenLibrary: {
      name: '',
      version: ''
    },
    adyenPaymentSource: {},
    externalPlatform: {
      integrator: '',
      name: '',
      version: ''
    },
    merchantApplication: {},
    merchantDevice: {
      os: '',
      osVersion: '',
      reference: ''
    },
    shopperInteractionDevice: {
      locale: '',
      os: '',
      osVersion: ''
    }
  },
  bankAccount: {
    bankAccountNumber: '',
    bankCity: '',
    bankLocationId: '',
    bankName: '',
    bic: '',
    countryCode: '',
    iban: '',
    ownerName: '',
    taxId: ''
  },
  billingAddress: {
    city: '',
    country: '',
    houseNumberOrName: '',
    postalCode: '',
    stateOrProvince: '',
    street: ''
  },
  browserInfo: {
    acceptHeader: '',
    colorDepth: 0,
    javaEnabled: false,
    javaScriptEnabled: false,
    language: '',
    screenHeight: 0,
    screenWidth: 0,
    timeZoneOffset: 0,
    userAgent: ''
  },
  captureDelayHours: 0,
  card: {
    cvc: '',
    expiryMonth: '',
    expiryYear: '',
    holderName: '',
    issueNumber: '',
    number: '',
    startMonth: '',
    startYear: ''
  },
  dateOfBirth: '',
  dccQuote: {
    account: '',
    accountType: '',
    baseAmount: {},
    basePoints: 0,
    buy: {},
    interbank: {},
    reference: '',
    sell: {},
    signature: '',
    source: '',
    type: '',
    validTill: ''
  },
  deliveryAddress: {},
  deliveryDate: '',
  deviceFingerprint: '',
  entityType: '',
  fraudOffset: 0,
  fundDestination: {
    additionalData: {},
    billingAddress: {},
    card: {},
    selectedRecurringDetailReference: '',
    shopperEmail: '',
    shopperName: {
      firstName: '',
      lastName: ''
    },
    shopperReference: '',
    subMerchant: {
      city: '',
      country: '',
      mcc: '',
      name: '',
      taxId: ''
    },
    telephoneNumber: ''
  },
  fundSource: {
    additionalData: {},
    billingAddress: {},
    card: {},
    shopperEmail: '',
    shopperName: {},
    telephoneNumber: ''
  },
  fundingSource: '',
  installments: {
    plan: '',
    value: 0
  },
  localizedShopperStatement: {},
  mandate: {
    amount: '',
    amountRule: '',
    billingAttemptsRule: '',
    billingDay: '',
    endsAt: '',
    frequency: '',
    remarks: '',
    startsAt: ''
  },
  mcc: '',
  merchantAccount: '',
  merchantOrderReference: '',
  merchantRiskIndicator: {
    addressMatch: false,
    deliveryAddressIndicator: '',
    deliveryEmail: '',
    deliveryEmailAddress: '',
    deliveryTimeframe: '',
    giftCardAmount: {},
    giftCardCount: 0,
    giftCardCurr: '',
    preOrderDate: '',
    preOrderPurchase: false,
    preOrderPurchaseInd: '',
    reorderItems: false,
    reorderItemsInd: '',
    shipIndicator: ''
  },
  metadata: {},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  nationality: '',
  orderReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  recurring: {
    contract: '',
    recurringDetailName: '',
    recurringExpiry: '',
    recurringFrequency: '',
    tokenService: ''
  },
  recurringProcessingModel: '',
  reference: '',
  selectedBrand: '',
  selectedRecurringDetailReference: '',
  sessionId: '',
  shopperEmail: '',
  shopperIP: '',
  shopperInteraction: '',
  shopperLocale: '',
  shopperName: {},
  shopperReference: '',
  shopperStatement: '',
  socialSecurityNumber: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  store: '',
  telephoneNumber: '',
  threeDS2RequestData: {
    acctInfo: {
      chAccAgeInd: '',
      chAccChange: '',
      chAccChangeInd: '',
      chAccPwChange: '',
      chAccPwChangeInd: '',
      chAccString: '',
      nbPurchaseAccount: '',
      paymentAccAge: '',
      paymentAccInd: '',
      provisionAttemptsDay: '',
      shipAddressUsage: '',
      shipAddressUsageInd: '',
      shipNameIndicator: '',
      suspiciousAccActivity: '',
      txnActivityDay: '',
      txnActivityYear: ''
    },
    acctType: '',
    acquirerBIN: '',
    acquirerMerchantID: '',
    addrMatch: '',
    authenticationOnly: false,
    challengeIndicator: '',
    deviceChannel: '',
    deviceRenderOptions: {
      sdkInterface: '',
      sdkUiType: []
    },
    homePhone: {
      cc: '',
      subscriber: ''
    },
    mcc: '',
    merchantName: '',
    messageVersion: '',
    mobilePhone: {},
    notificationURL: '',
    payTokenInd: false,
    paymentAuthenticationUseCase: '',
    purchaseInstalData: '',
    recurringExpiry: '',
    recurringFrequency: '',
    sdkAppID: '',
    sdkEncData: '',
    sdkEphemPubKey: {
      crv: '',
      kty: '',
      x: '',
      y: ''
    },
    sdkMaxTimeout: 0,
    sdkReferenceNumber: '',
    sdkTransID: '',
    sdkVersion: '',
    threeDSCompInd: '',
    threeDSRequestorAuthenticationInd: '',
    threeDSRequestorAuthenticationInfo: {
      threeDSReqAuthData: '',
      threeDSReqAuthMethod: '',
      threeDSReqAuthTimestamp: ''
    },
    threeDSRequestorChallengeInd: '',
    threeDSRequestorID: '',
    threeDSRequestorName: '',
    threeDSRequestorPriorAuthenticationInfo: {
      threeDSReqPriorAuthData: '',
      threeDSReqPriorAuthMethod: '',
      threeDSReqPriorAuthTimestamp: '',
      threeDSReqPriorRef: ''
    },
    threeDSRequestorURL: '',
    transType: '',
    transactionType: '',
    whiteListStatus: '',
    workPhone: {}
  },
  threeDSAuthenticationOnly: false,
  totalsGroup: '',
  trustedShopper: false
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/authorise',
  headers: {'content-type': 'application/json'},
  data: {
    accountInfo: {
      accountAgeIndicator: '',
      accountChangeDate: '',
      accountChangeIndicator: '',
      accountCreationDate: '',
      accountType: '',
      addCardAttemptsDay: 0,
      deliveryAddressUsageDate: '',
      deliveryAddressUsageIndicator: '',
      homePhone: '',
      mobilePhone: '',
      passwordChangeDate: '',
      passwordChangeIndicator: '',
      pastTransactionsDay: 0,
      pastTransactionsYear: 0,
      paymentAccountAge: '',
      paymentAccountIndicator: '',
      purchasesLast6Months: 0,
      suspiciousActivity: false,
      workPhone: ''
    },
    additionalAmount: {currency: '', value: 0},
    additionalData: {},
    amount: {},
    applicationInfo: {
      adyenLibrary: {name: '', version: ''},
      adyenPaymentSource: {},
      externalPlatform: {integrator: '', name: '', version: ''},
      merchantApplication: {},
      merchantDevice: {os: '', osVersion: '', reference: ''},
      shopperInteractionDevice: {locale: '', os: '', osVersion: ''}
    },
    bankAccount: {
      bankAccountNumber: '',
      bankCity: '',
      bankLocationId: '',
      bankName: '',
      bic: '',
      countryCode: '',
      iban: '',
      ownerName: '',
      taxId: ''
    },
    billingAddress: {
      city: '',
      country: '',
      houseNumberOrName: '',
      postalCode: '',
      stateOrProvince: '',
      street: ''
    },
    browserInfo: {
      acceptHeader: '',
      colorDepth: 0,
      javaEnabled: false,
      javaScriptEnabled: false,
      language: '',
      screenHeight: 0,
      screenWidth: 0,
      timeZoneOffset: 0,
      userAgent: ''
    },
    captureDelayHours: 0,
    card: {
      cvc: '',
      expiryMonth: '',
      expiryYear: '',
      holderName: '',
      issueNumber: '',
      number: '',
      startMonth: '',
      startYear: ''
    },
    dateOfBirth: '',
    dccQuote: {
      account: '',
      accountType: '',
      baseAmount: {},
      basePoints: 0,
      buy: {},
      interbank: {},
      reference: '',
      sell: {},
      signature: '',
      source: '',
      type: '',
      validTill: ''
    },
    deliveryAddress: {},
    deliveryDate: '',
    deviceFingerprint: '',
    entityType: '',
    fraudOffset: 0,
    fundDestination: {
      additionalData: {},
      billingAddress: {},
      card: {},
      selectedRecurringDetailReference: '',
      shopperEmail: '',
      shopperName: {firstName: '', lastName: ''},
      shopperReference: '',
      subMerchant: {city: '', country: '', mcc: '', name: '', taxId: ''},
      telephoneNumber: ''
    },
    fundSource: {
      additionalData: {},
      billingAddress: {},
      card: {},
      shopperEmail: '',
      shopperName: {},
      telephoneNumber: ''
    },
    fundingSource: '',
    installments: {plan: '', value: 0},
    localizedShopperStatement: {},
    mandate: {
      amount: '',
      amountRule: '',
      billingAttemptsRule: '',
      billingDay: '',
      endsAt: '',
      frequency: '',
      remarks: '',
      startsAt: ''
    },
    mcc: '',
    merchantAccount: '',
    merchantOrderReference: '',
    merchantRiskIndicator: {
      addressMatch: false,
      deliveryAddressIndicator: '',
      deliveryEmail: '',
      deliveryEmailAddress: '',
      deliveryTimeframe: '',
      giftCardAmount: {},
      giftCardCount: 0,
      giftCardCurr: '',
      preOrderDate: '',
      preOrderPurchase: false,
      preOrderPurchaseInd: '',
      reorderItems: false,
      reorderItemsInd: '',
      shipIndicator: ''
    },
    metadata: {},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    nationality: '',
    orderReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    recurring: {
      contract: '',
      recurringDetailName: '',
      recurringExpiry: '',
      recurringFrequency: '',
      tokenService: ''
    },
    recurringProcessingModel: '',
    reference: '',
    selectedBrand: '',
    selectedRecurringDetailReference: '',
    sessionId: '',
    shopperEmail: '',
    shopperIP: '',
    shopperInteraction: '',
    shopperLocale: '',
    shopperName: {},
    shopperReference: '',
    shopperStatement: '',
    socialSecurityNumber: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    store: '',
    telephoneNumber: '',
    threeDS2RequestData: {
      acctInfo: {
        chAccAgeInd: '',
        chAccChange: '',
        chAccChangeInd: '',
        chAccPwChange: '',
        chAccPwChangeInd: '',
        chAccString: '',
        nbPurchaseAccount: '',
        paymentAccAge: '',
        paymentAccInd: '',
        provisionAttemptsDay: '',
        shipAddressUsage: '',
        shipAddressUsageInd: '',
        shipNameIndicator: '',
        suspiciousAccActivity: '',
        txnActivityDay: '',
        txnActivityYear: ''
      },
      acctType: '',
      acquirerBIN: '',
      acquirerMerchantID: '',
      addrMatch: '',
      authenticationOnly: false,
      challengeIndicator: '',
      deviceChannel: '',
      deviceRenderOptions: {sdkInterface: '', sdkUiType: []},
      homePhone: {cc: '', subscriber: ''},
      mcc: '',
      merchantName: '',
      messageVersion: '',
      mobilePhone: {},
      notificationURL: '',
      payTokenInd: false,
      paymentAuthenticationUseCase: '',
      purchaseInstalData: '',
      recurringExpiry: '',
      recurringFrequency: '',
      sdkAppID: '',
      sdkEncData: '',
      sdkEphemPubKey: {crv: '', kty: '', x: '', y: ''},
      sdkMaxTimeout: 0,
      sdkReferenceNumber: '',
      sdkTransID: '',
      sdkVersion: '',
      threeDSCompInd: '',
      threeDSRequestorAuthenticationInd: '',
      threeDSRequestorAuthenticationInfo: {threeDSReqAuthData: '', threeDSReqAuthMethod: '', threeDSReqAuthTimestamp: ''},
      threeDSRequestorChallengeInd: '',
      threeDSRequestorID: '',
      threeDSRequestorName: '',
      threeDSRequestorPriorAuthenticationInfo: {
        threeDSReqPriorAuthData: '',
        threeDSReqPriorAuthMethod: '',
        threeDSReqPriorAuthTimestamp: '',
        threeDSReqPriorRef: ''
      },
      threeDSRequestorURL: '',
      transType: '',
      transactionType: '',
      whiteListStatus: '',
      workPhone: {}
    },
    threeDSAuthenticationOnly: false,
    totalsGroup: '',
    trustedShopper: false
  }
};

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

const url = '{{baseUrl}}/authorise';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountInfo":{"accountAgeIndicator":"","accountChangeDate":"","accountChangeIndicator":"","accountCreationDate":"","accountType":"","addCardAttemptsDay":0,"deliveryAddressUsageDate":"","deliveryAddressUsageIndicator":"","homePhone":"","mobilePhone":"","passwordChangeDate":"","passwordChangeIndicator":"","pastTransactionsDay":0,"pastTransactionsYear":0,"paymentAccountAge":"","paymentAccountIndicator":"","purchasesLast6Months":0,"suspiciousActivity":false,"workPhone":""},"additionalAmount":{"currency":"","value":0},"additionalData":{},"amount":{},"applicationInfo":{"adyenLibrary":{"name":"","version":""},"adyenPaymentSource":{},"externalPlatform":{"integrator":"","name":"","version":""},"merchantApplication":{},"merchantDevice":{"os":"","osVersion":"","reference":""},"shopperInteractionDevice":{"locale":"","os":"","osVersion":""}},"bankAccount":{"bankAccountNumber":"","bankCity":"","bankLocationId":"","bankName":"","bic":"","countryCode":"","iban":"","ownerName":"","taxId":""},"billingAddress":{"city":"","country":"","houseNumberOrName":"","postalCode":"","stateOrProvince":"","street":""},"browserInfo":{"acceptHeader":"","colorDepth":0,"javaEnabled":false,"javaScriptEnabled":false,"language":"","screenHeight":0,"screenWidth":0,"timeZoneOffset":0,"userAgent":""},"captureDelayHours":0,"card":{"cvc":"","expiryMonth":"","expiryYear":"","holderName":"","issueNumber":"","number":"","startMonth":"","startYear":""},"dateOfBirth":"","dccQuote":{"account":"","accountType":"","baseAmount":{},"basePoints":0,"buy":{},"interbank":{},"reference":"","sell":{},"signature":"","source":"","type":"","validTill":""},"deliveryAddress":{},"deliveryDate":"","deviceFingerprint":"","entityType":"","fraudOffset":0,"fundDestination":{"additionalData":{},"billingAddress":{},"card":{},"selectedRecurringDetailReference":"","shopperEmail":"","shopperName":{"firstName":"","lastName":""},"shopperReference":"","subMerchant":{"city":"","country":"","mcc":"","name":"","taxId":""},"telephoneNumber":""},"fundSource":{"additionalData":{},"billingAddress":{},"card":{},"shopperEmail":"","shopperName":{},"telephoneNumber":""},"fundingSource":"","installments":{"plan":"","value":0},"localizedShopperStatement":{},"mandate":{"amount":"","amountRule":"","billingAttemptsRule":"","billingDay":"","endsAt":"","frequency":"","remarks":"","startsAt":""},"mcc":"","merchantAccount":"","merchantOrderReference":"","merchantRiskIndicator":{"addressMatch":false,"deliveryAddressIndicator":"","deliveryEmail":"","deliveryEmailAddress":"","deliveryTimeframe":"","giftCardAmount":{},"giftCardCount":0,"giftCardCurr":"","preOrderDate":"","preOrderPurchase":false,"preOrderPurchaseInd":"","reorderItems":false,"reorderItemsInd":"","shipIndicator":""},"metadata":{},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"nationality":"","orderReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"recurring":{"contract":"","recurringDetailName":"","recurringExpiry":"","recurringFrequency":"","tokenService":""},"recurringProcessingModel":"","reference":"","selectedBrand":"","selectedRecurringDetailReference":"","sessionId":"","shopperEmail":"","shopperIP":"","shopperInteraction":"","shopperLocale":"","shopperName":{},"shopperReference":"","shopperStatement":"","socialSecurityNumber":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"store":"","telephoneNumber":"","threeDS2RequestData":{"acctInfo":{"chAccAgeInd":"","chAccChange":"","chAccChangeInd":"","chAccPwChange":"","chAccPwChangeInd":"","chAccString":"","nbPurchaseAccount":"","paymentAccAge":"","paymentAccInd":"","provisionAttemptsDay":"","shipAddressUsage":"","shipAddressUsageInd":"","shipNameIndicator":"","suspiciousAccActivity":"","txnActivityDay":"","txnActivityYear":""},"acctType":"","acquirerBIN":"","acquirerMerchantID":"","addrMatch":"","authenticationOnly":false,"challengeIndicator":"","deviceChannel":"","deviceRenderOptions":{"sdkInterface":"","sdkUiType":[]},"homePhone":{"cc":"","subscriber":""},"mcc":"","merchantName":"","messageVersion":"","mobilePhone":{},"notificationURL":"","payTokenInd":false,"paymentAuthenticationUseCase":"","purchaseInstalData":"","recurringExpiry":"","recurringFrequency":"","sdkAppID":"","sdkEncData":"","sdkEphemPubKey":{"crv":"","kty":"","x":"","y":""},"sdkMaxTimeout":0,"sdkReferenceNumber":"","sdkTransID":"","sdkVersion":"","threeDSCompInd":"","threeDSRequestorAuthenticationInd":"","threeDSRequestorAuthenticationInfo":{"threeDSReqAuthData":"","threeDSReqAuthMethod":"","threeDSReqAuthTimestamp":""},"threeDSRequestorChallengeInd":"","threeDSRequestorID":"","threeDSRequestorName":"","threeDSRequestorPriorAuthenticationInfo":{"threeDSReqPriorAuthData":"","threeDSReqPriorAuthMethod":"","threeDSReqPriorAuthTimestamp":"","threeDSReqPriorRef":""},"threeDSRequestorURL":"","transType":"","transactionType":"","whiteListStatus":"","workPhone":{}},"threeDSAuthenticationOnly":false,"totalsGroup":"","trustedShopper":false}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountInfo": @{ @"accountAgeIndicator": @"", @"accountChangeDate": @"", @"accountChangeIndicator": @"", @"accountCreationDate": @"", @"accountType": @"", @"addCardAttemptsDay": @0, @"deliveryAddressUsageDate": @"", @"deliveryAddressUsageIndicator": @"", @"homePhone": @"", @"mobilePhone": @"", @"passwordChangeDate": @"", @"passwordChangeIndicator": @"", @"pastTransactionsDay": @0, @"pastTransactionsYear": @0, @"paymentAccountAge": @"", @"paymentAccountIndicator": @"", @"purchasesLast6Months": @0, @"suspiciousActivity": @NO, @"workPhone": @"" },
                              @"additionalAmount": @{ @"currency": @"", @"value": @0 },
                              @"additionalData": @{  },
                              @"amount": @{  },
                              @"applicationInfo": @{ @"adyenLibrary": @{ @"name": @"", @"version": @"" }, @"adyenPaymentSource": @{  }, @"externalPlatform": @{ @"integrator": @"", @"name": @"", @"version": @"" }, @"merchantApplication": @{  }, @"merchantDevice": @{ @"os": @"", @"osVersion": @"", @"reference": @"" }, @"shopperInteractionDevice": @{ @"locale": @"", @"os": @"", @"osVersion": @"" } },
                              @"bankAccount": @{ @"bankAccountNumber": @"", @"bankCity": @"", @"bankLocationId": @"", @"bankName": @"", @"bic": @"", @"countryCode": @"", @"iban": @"", @"ownerName": @"", @"taxId": @"" },
                              @"billingAddress": @{ @"city": @"", @"country": @"", @"houseNumberOrName": @"", @"postalCode": @"", @"stateOrProvince": @"", @"street": @"" },
                              @"browserInfo": @{ @"acceptHeader": @"", @"colorDepth": @0, @"javaEnabled": @NO, @"javaScriptEnabled": @NO, @"language": @"", @"screenHeight": @0, @"screenWidth": @0, @"timeZoneOffset": @0, @"userAgent": @"" },
                              @"captureDelayHours": @0,
                              @"card": @{ @"cvc": @"", @"expiryMonth": @"", @"expiryYear": @"", @"holderName": @"", @"issueNumber": @"", @"number": @"", @"startMonth": @"", @"startYear": @"" },
                              @"dateOfBirth": @"",
                              @"dccQuote": @{ @"account": @"", @"accountType": @"", @"baseAmount": @{  }, @"basePoints": @0, @"buy": @{  }, @"interbank": @{  }, @"reference": @"", @"sell": @{  }, @"signature": @"", @"source": @"", @"type": @"", @"validTill": @"" },
                              @"deliveryAddress": @{  },
                              @"deliveryDate": @"",
                              @"deviceFingerprint": @"",
                              @"entityType": @"",
                              @"fraudOffset": @0,
                              @"fundDestination": @{ @"additionalData": @{  }, @"billingAddress": @{  }, @"card": @{  }, @"selectedRecurringDetailReference": @"", @"shopperEmail": @"", @"shopperName": @{ @"firstName": @"", @"lastName": @"" }, @"shopperReference": @"", @"subMerchant": @{ @"city": @"", @"country": @"", @"mcc": @"", @"name": @"", @"taxId": @"" }, @"telephoneNumber": @"" },
                              @"fundSource": @{ @"additionalData": @{  }, @"billingAddress": @{  }, @"card": @{  }, @"shopperEmail": @"", @"shopperName": @{  }, @"telephoneNumber": @"" },
                              @"fundingSource": @"",
                              @"installments": @{ @"plan": @"", @"value": @0 },
                              @"localizedShopperStatement": @{  },
                              @"mandate": @{ @"amount": @"", @"amountRule": @"", @"billingAttemptsRule": @"", @"billingDay": @"", @"endsAt": @"", @"frequency": @"", @"remarks": @"", @"startsAt": @"" },
                              @"mcc": @"",
                              @"merchantAccount": @"",
                              @"merchantOrderReference": @"",
                              @"merchantRiskIndicator": @{ @"addressMatch": @NO, @"deliveryAddressIndicator": @"", @"deliveryEmail": @"", @"deliveryEmailAddress": @"", @"deliveryTimeframe": @"", @"giftCardAmount": @{  }, @"giftCardCount": @0, @"giftCardCurr": @"", @"preOrderDate": @"", @"preOrderPurchase": @NO, @"preOrderPurchaseInd": @"", @"reorderItems": @NO, @"reorderItemsInd": @"", @"shipIndicator": @"" },
                              @"metadata": @{  },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"nationality": @"",
                              @"orderReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"recurring": @{ @"contract": @"", @"recurringDetailName": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"tokenService": @"" },
                              @"recurringProcessingModel": @"",
                              @"reference": @"",
                              @"selectedBrand": @"",
                              @"selectedRecurringDetailReference": @"",
                              @"sessionId": @"",
                              @"shopperEmail": @"",
                              @"shopperIP": @"",
                              @"shopperInteraction": @"",
                              @"shopperLocale": @"",
                              @"shopperName": @{  },
                              @"shopperReference": @"",
                              @"shopperStatement": @"",
                              @"socialSecurityNumber": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"store": @"",
                              @"telephoneNumber": @"",
                              @"threeDS2RequestData": @{ @"acctInfo": @{ @"chAccAgeInd": @"", @"chAccChange": @"", @"chAccChangeInd": @"", @"chAccPwChange": @"", @"chAccPwChangeInd": @"", @"chAccString": @"", @"nbPurchaseAccount": @"", @"paymentAccAge": @"", @"paymentAccInd": @"", @"provisionAttemptsDay": @"", @"shipAddressUsage": @"", @"shipAddressUsageInd": @"", @"shipNameIndicator": @"", @"suspiciousAccActivity": @"", @"txnActivityDay": @"", @"txnActivityYear": @"" }, @"acctType": @"", @"acquirerBIN": @"", @"acquirerMerchantID": @"", @"addrMatch": @"", @"authenticationOnly": @NO, @"challengeIndicator": @"", @"deviceChannel": @"", @"deviceRenderOptions": @{ @"sdkInterface": @"", @"sdkUiType": @[  ] }, @"homePhone": @{ @"cc": @"", @"subscriber": @"" }, @"mcc": @"", @"merchantName": @"", @"messageVersion": @"", @"mobilePhone": @{  }, @"notificationURL": @"", @"payTokenInd": @NO, @"paymentAuthenticationUseCase": @"", @"purchaseInstalData": @"", @"recurringExpiry": @"", @"recurringFrequency": @"", @"sdkAppID": @"", @"sdkEncData": @"", @"sdkEphemPubKey": @{ @"crv": @"", @"kty": @"", @"x": @"", @"y": @"" }, @"sdkMaxTimeout": @0, @"sdkReferenceNumber": @"", @"sdkTransID": @"", @"sdkVersion": @"", @"threeDSCompInd": @"", @"threeDSRequestorAuthenticationInd": @"", @"threeDSRequestorAuthenticationInfo": @{ @"threeDSReqAuthData": @"", @"threeDSReqAuthMethod": @"", @"threeDSReqAuthTimestamp": @"" }, @"threeDSRequestorChallengeInd": @"", @"threeDSRequestorID": @"", @"threeDSRequestorName": @"", @"threeDSRequestorPriorAuthenticationInfo": @{ @"threeDSReqPriorAuthData": @"", @"threeDSReqPriorAuthMethod": @"", @"threeDSReqPriorAuthTimestamp": @"", @"threeDSReqPriorRef": @"" }, @"threeDSRequestorURL": @"", @"transType": @"", @"transactionType": @"", @"whiteListStatus": @"", @"workPhone": @{  } },
                              @"threeDSAuthenticationOnly": @NO,
                              @"totalsGroup": @"",
                              @"trustedShopper": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/authorise"]
                                                       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}}/authorise" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/authorise",
  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([
    'accountInfo' => [
        'accountAgeIndicator' => '',
        'accountChangeDate' => '',
        'accountChangeIndicator' => '',
        'accountCreationDate' => '',
        'accountType' => '',
        'addCardAttemptsDay' => 0,
        'deliveryAddressUsageDate' => '',
        'deliveryAddressUsageIndicator' => '',
        'homePhone' => '',
        'mobilePhone' => '',
        'passwordChangeDate' => '',
        'passwordChangeIndicator' => '',
        'pastTransactionsDay' => 0,
        'pastTransactionsYear' => 0,
        'paymentAccountAge' => '',
        'paymentAccountIndicator' => '',
        'purchasesLast6Months' => 0,
        'suspiciousActivity' => null,
        'workPhone' => ''
    ],
    'additionalAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'additionalData' => [
        
    ],
    'amount' => [
        
    ],
    'applicationInfo' => [
        'adyenLibrary' => [
                'name' => '',
                'version' => ''
        ],
        'adyenPaymentSource' => [
                
        ],
        'externalPlatform' => [
                'integrator' => '',
                'name' => '',
                'version' => ''
        ],
        'merchantApplication' => [
                
        ],
        'merchantDevice' => [
                'os' => '',
                'osVersion' => '',
                'reference' => ''
        ],
        'shopperInteractionDevice' => [
                'locale' => '',
                'os' => '',
                'osVersion' => ''
        ]
    ],
    'bankAccount' => [
        'bankAccountNumber' => '',
        'bankCity' => '',
        'bankLocationId' => '',
        'bankName' => '',
        'bic' => '',
        'countryCode' => '',
        'iban' => '',
        'ownerName' => '',
        'taxId' => ''
    ],
    'billingAddress' => [
        'city' => '',
        'country' => '',
        'houseNumberOrName' => '',
        'postalCode' => '',
        'stateOrProvince' => '',
        'street' => ''
    ],
    'browserInfo' => [
        'acceptHeader' => '',
        'colorDepth' => 0,
        'javaEnabled' => null,
        'javaScriptEnabled' => null,
        'language' => '',
        'screenHeight' => 0,
        'screenWidth' => 0,
        'timeZoneOffset' => 0,
        'userAgent' => ''
    ],
    'captureDelayHours' => 0,
    'card' => [
        'cvc' => '',
        'expiryMonth' => '',
        'expiryYear' => '',
        'holderName' => '',
        'issueNumber' => '',
        'number' => '',
        'startMonth' => '',
        'startYear' => ''
    ],
    'dateOfBirth' => '',
    'dccQuote' => [
        'account' => '',
        'accountType' => '',
        'baseAmount' => [
                
        ],
        'basePoints' => 0,
        'buy' => [
                
        ],
        'interbank' => [
                
        ],
        'reference' => '',
        'sell' => [
                
        ],
        'signature' => '',
        'source' => '',
        'type' => '',
        'validTill' => ''
    ],
    'deliveryAddress' => [
        
    ],
    'deliveryDate' => '',
    'deviceFingerprint' => '',
    'entityType' => '',
    'fraudOffset' => 0,
    'fundDestination' => [
        'additionalData' => [
                
        ],
        'billingAddress' => [
                
        ],
        'card' => [
                
        ],
        'selectedRecurringDetailReference' => '',
        'shopperEmail' => '',
        'shopperName' => [
                'firstName' => '',
                'lastName' => ''
        ],
        'shopperReference' => '',
        'subMerchant' => [
                'city' => '',
                'country' => '',
                'mcc' => '',
                'name' => '',
                'taxId' => ''
        ],
        'telephoneNumber' => ''
    ],
    'fundSource' => [
        'additionalData' => [
                
        ],
        'billingAddress' => [
                
        ],
        'card' => [
                
        ],
        'shopperEmail' => '',
        'shopperName' => [
                
        ],
        'telephoneNumber' => ''
    ],
    'fundingSource' => '',
    'installments' => [
        'plan' => '',
        'value' => 0
    ],
    'localizedShopperStatement' => [
        
    ],
    'mandate' => [
        'amount' => '',
        'amountRule' => '',
        'billingAttemptsRule' => '',
        'billingDay' => '',
        'endsAt' => '',
        'frequency' => '',
        'remarks' => '',
        'startsAt' => ''
    ],
    'mcc' => '',
    'merchantAccount' => '',
    'merchantOrderReference' => '',
    'merchantRiskIndicator' => [
        'addressMatch' => null,
        'deliveryAddressIndicator' => '',
        'deliveryEmail' => '',
        'deliveryEmailAddress' => '',
        'deliveryTimeframe' => '',
        'giftCardAmount' => [
                
        ],
        'giftCardCount' => 0,
        'giftCardCurr' => '',
        'preOrderDate' => '',
        'preOrderPurchase' => null,
        'preOrderPurchaseInd' => '',
        'reorderItems' => null,
        'reorderItemsInd' => '',
        'shipIndicator' => ''
    ],
    'metadata' => [
        
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'nationality' => '',
    'orderReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'recurring' => [
        'contract' => '',
        'recurringDetailName' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'tokenService' => ''
    ],
    'recurringProcessingModel' => '',
    'reference' => '',
    'selectedBrand' => '',
    'selectedRecurringDetailReference' => '',
    'sessionId' => '',
    'shopperEmail' => '',
    'shopperIP' => '',
    'shopperInteraction' => '',
    'shopperLocale' => '',
    'shopperName' => [
        
    ],
    'shopperReference' => '',
    'shopperStatement' => '',
    'socialSecurityNumber' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'store' => '',
    'telephoneNumber' => '',
    'threeDS2RequestData' => [
        'acctInfo' => [
                'chAccAgeInd' => '',
                'chAccChange' => '',
                'chAccChangeInd' => '',
                'chAccPwChange' => '',
                'chAccPwChangeInd' => '',
                'chAccString' => '',
                'nbPurchaseAccount' => '',
                'paymentAccAge' => '',
                'paymentAccInd' => '',
                'provisionAttemptsDay' => '',
                'shipAddressUsage' => '',
                'shipAddressUsageInd' => '',
                'shipNameIndicator' => '',
                'suspiciousAccActivity' => '',
                'txnActivityDay' => '',
                'txnActivityYear' => ''
        ],
        'acctType' => '',
        'acquirerBIN' => '',
        'acquirerMerchantID' => '',
        'addrMatch' => '',
        'authenticationOnly' => null,
        'challengeIndicator' => '',
        'deviceChannel' => '',
        'deviceRenderOptions' => [
                'sdkInterface' => '',
                'sdkUiType' => [
                                
                ]
        ],
        'homePhone' => [
                'cc' => '',
                'subscriber' => ''
        ],
        'mcc' => '',
        'merchantName' => '',
        'messageVersion' => '',
        'mobilePhone' => [
                
        ],
        'notificationURL' => '',
        'payTokenInd' => null,
        'paymentAuthenticationUseCase' => '',
        'purchaseInstalData' => '',
        'recurringExpiry' => '',
        'recurringFrequency' => '',
        'sdkAppID' => '',
        'sdkEncData' => '',
        'sdkEphemPubKey' => [
                'crv' => '',
                'kty' => '',
                'x' => '',
                'y' => ''
        ],
        'sdkMaxTimeout' => 0,
        'sdkReferenceNumber' => '',
        'sdkTransID' => '',
        'sdkVersion' => '',
        'threeDSCompInd' => '',
        'threeDSRequestorAuthenticationInd' => '',
        'threeDSRequestorAuthenticationInfo' => [
                'threeDSReqAuthData' => '',
                'threeDSReqAuthMethod' => '',
                'threeDSReqAuthTimestamp' => ''
        ],
        'threeDSRequestorChallengeInd' => '',
        'threeDSRequestorID' => '',
        'threeDSRequestorName' => '',
        'threeDSRequestorPriorAuthenticationInfo' => [
                'threeDSReqPriorAuthData' => '',
                'threeDSReqPriorAuthMethod' => '',
                'threeDSReqPriorAuthTimestamp' => '',
                'threeDSReqPriorRef' => ''
        ],
        'threeDSRequestorURL' => '',
        'transType' => '',
        'transactionType' => '',
        'whiteListStatus' => '',
        'workPhone' => [
                
        ]
    ],
    'threeDSAuthenticationOnly' => null,
    'totalsGroup' => '',
    'trustedShopper' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/authorise', [
  'body' => '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'bankAccount' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'fundDestination' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'selectedRecurringDetailReference' => '',
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'subMerchant' => [
        'city' => '',
        'country' => '',
        'mcc' => '',
        'name' => '',
        'taxId' => ''
    ],
    'telephoneNumber' => ''
  ],
  'fundSource' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'shopperEmail' => '',
    'shopperName' => [
        
    ],
    'telephoneNumber' => ''
  ],
  'fundingSource' => '',
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mandate' => [
    'amount' => '',
    'amountRule' => '',
    'billingAttemptsRule' => '',
    'billingDay' => '',
    'endsAt' => '',
    'frequency' => '',
    'remarks' => '',
    'startsAt' => ''
  ],
  'mcc' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'nationality' => '',
  'orderReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountInfo' => [
    'accountAgeIndicator' => '',
    'accountChangeDate' => '',
    'accountChangeIndicator' => '',
    'accountCreationDate' => '',
    'accountType' => '',
    'addCardAttemptsDay' => 0,
    'deliveryAddressUsageDate' => '',
    'deliveryAddressUsageIndicator' => '',
    'homePhone' => '',
    'mobilePhone' => '',
    'passwordChangeDate' => '',
    'passwordChangeIndicator' => '',
    'pastTransactionsDay' => 0,
    'pastTransactionsYear' => 0,
    'paymentAccountAge' => '',
    'paymentAccountIndicator' => '',
    'purchasesLast6Months' => 0,
    'suspiciousActivity' => null,
    'workPhone' => ''
  ],
  'additionalAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'additionalData' => [
    
  ],
  'amount' => [
    
  ],
  'applicationInfo' => [
    'adyenLibrary' => [
        'name' => '',
        'version' => ''
    ],
    'adyenPaymentSource' => [
        
    ],
    'externalPlatform' => [
        'integrator' => '',
        'name' => '',
        'version' => ''
    ],
    'merchantApplication' => [
        
    ],
    'merchantDevice' => [
        'os' => '',
        'osVersion' => '',
        'reference' => ''
    ],
    'shopperInteractionDevice' => [
        'locale' => '',
        'os' => '',
        'osVersion' => ''
    ]
  ],
  'bankAccount' => [
    'bankAccountNumber' => '',
    'bankCity' => '',
    'bankLocationId' => '',
    'bankName' => '',
    'bic' => '',
    'countryCode' => '',
    'iban' => '',
    'ownerName' => '',
    'taxId' => ''
  ],
  'billingAddress' => [
    'city' => '',
    'country' => '',
    'houseNumberOrName' => '',
    'postalCode' => '',
    'stateOrProvince' => '',
    'street' => ''
  ],
  'browserInfo' => [
    'acceptHeader' => '',
    'colorDepth' => 0,
    'javaEnabled' => null,
    'javaScriptEnabled' => null,
    'language' => '',
    'screenHeight' => 0,
    'screenWidth' => 0,
    'timeZoneOffset' => 0,
    'userAgent' => ''
  ],
  'captureDelayHours' => 0,
  'card' => [
    'cvc' => '',
    'expiryMonth' => '',
    'expiryYear' => '',
    'holderName' => '',
    'issueNumber' => '',
    'number' => '',
    'startMonth' => '',
    'startYear' => ''
  ],
  'dateOfBirth' => '',
  'dccQuote' => [
    'account' => '',
    'accountType' => '',
    'baseAmount' => [
        
    ],
    'basePoints' => 0,
    'buy' => [
        
    ],
    'interbank' => [
        
    ],
    'reference' => '',
    'sell' => [
        
    ],
    'signature' => '',
    'source' => '',
    'type' => '',
    'validTill' => ''
  ],
  'deliveryAddress' => [
    
  ],
  'deliveryDate' => '',
  'deviceFingerprint' => '',
  'entityType' => '',
  'fraudOffset' => 0,
  'fundDestination' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'selectedRecurringDetailReference' => '',
    'shopperEmail' => '',
    'shopperName' => [
        'firstName' => '',
        'lastName' => ''
    ],
    'shopperReference' => '',
    'subMerchant' => [
        'city' => '',
        'country' => '',
        'mcc' => '',
        'name' => '',
        'taxId' => ''
    ],
    'telephoneNumber' => ''
  ],
  'fundSource' => [
    'additionalData' => [
        
    ],
    'billingAddress' => [
        
    ],
    'card' => [
        
    ],
    'shopperEmail' => '',
    'shopperName' => [
        
    ],
    'telephoneNumber' => ''
  ],
  'fundingSource' => '',
  'installments' => [
    'plan' => '',
    'value' => 0
  ],
  'localizedShopperStatement' => [
    
  ],
  'mandate' => [
    'amount' => '',
    'amountRule' => '',
    'billingAttemptsRule' => '',
    'billingDay' => '',
    'endsAt' => '',
    'frequency' => '',
    'remarks' => '',
    'startsAt' => ''
  ],
  'mcc' => '',
  'merchantAccount' => '',
  'merchantOrderReference' => '',
  'merchantRiskIndicator' => [
    'addressMatch' => null,
    'deliveryAddressIndicator' => '',
    'deliveryEmail' => '',
    'deliveryEmailAddress' => '',
    'deliveryTimeframe' => '',
    'giftCardAmount' => [
        
    ],
    'giftCardCount' => 0,
    'giftCardCurr' => '',
    'preOrderDate' => '',
    'preOrderPurchase' => null,
    'preOrderPurchaseInd' => '',
    'reorderItems' => null,
    'reorderItemsInd' => '',
    'shipIndicator' => ''
  ],
  'metadata' => [
    
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'nationality' => '',
  'orderReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'recurring' => [
    'contract' => '',
    'recurringDetailName' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'tokenService' => ''
  ],
  'recurringProcessingModel' => '',
  'reference' => '',
  'selectedBrand' => '',
  'selectedRecurringDetailReference' => '',
  'sessionId' => '',
  'shopperEmail' => '',
  'shopperIP' => '',
  'shopperInteraction' => '',
  'shopperLocale' => '',
  'shopperName' => [
    
  ],
  'shopperReference' => '',
  'shopperStatement' => '',
  'socialSecurityNumber' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'store' => '',
  'telephoneNumber' => '',
  'threeDS2RequestData' => [
    'acctInfo' => [
        'chAccAgeInd' => '',
        'chAccChange' => '',
        'chAccChangeInd' => '',
        'chAccPwChange' => '',
        'chAccPwChangeInd' => '',
        'chAccString' => '',
        'nbPurchaseAccount' => '',
        'paymentAccAge' => '',
        'paymentAccInd' => '',
        'provisionAttemptsDay' => '',
        'shipAddressUsage' => '',
        'shipAddressUsageInd' => '',
        'shipNameIndicator' => '',
        'suspiciousAccActivity' => '',
        'txnActivityDay' => '',
        'txnActivityYear' => ''
    ],
    'acctType' => '',
    'acquirerBIN' => '',
    'acquirerMerchantID' => '',
    'addrMatch' => '',
    'authenticationOnly' => null,
    'challengeIndicator' => '',
    'deviceChannel' => '',
    'deviceRenderOptions' => [
        'sdkInterface' => '',
        'sdkUiType' => [
                
        ]
    ],
    'homePhone' => [
        'cc' => '',
        'subscriber' => ''
    ],
    'mcc' => '',
    'merchantName' => '',
    'messageVersion' => '',
    'mobilePhone' => [
        
    ],
    'notificationURL' => '',
    'payTokenInd' => null,
    'paymentAuthenticationUseCase' => '',
    'purchaseInstalData' => '',
    'recurringExpiry' => '',
    'recurringFrequency' => '',
    'sdkAppID' => '',
    'sdkEncData' => '',
    'sdkEphemPubKey' => [
        'crv' => '',
        'kty' => '',
        'x' => '',
        'y' => ''
    ],
    'sdkMaxTimeout' => 0,
    'sdkReferenceNumber' => '',
    'sdkTransID' => '',
    'sdkVersion' => '',
    'threeDSCompInd' => '',
    'threeDSRequestorAuthenticationInd' => '',
    'threeDSRequestorAuthenticationInfo' => [
        'threeDSReqAuthData' => '',
        'threeDSReqAuthMethod' => '',
        'threeDSReqAuthTimestamp' => ''
    ],
    'threeDSRequestorChallengeInd' => '',
    'threeDSRequestorID' => '',
    'threeDSRequestorName' => '',
    'threeDSRequestorPriorAuthenticationInfo' => [
        'threeDSReqPriorAuthData' => '',
        'threeDSReqPriorAuthMethod' => '',
        'threeDSReqPriorAuthTimestamp' => '',
        'threeDSReqPriorRef' => ''
    ],
    'threeDSRequestorURL' => '',
    'transType' => '',
    'transactionType' => '',
    'whiteListStatus' => '',
    'workPhone' => [
        
    ]
  ],
  'threeDSAuthenticationOnly' => null,
  'totalsGroup' => '',
  'trustedShopper' => null
]));
$request->setRequestUrl('{{baseUrl}}/authorise');
$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}}/authorise' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/authorise' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
import http.client

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

payload = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

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

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

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

url = "{{baseUrl}}/authorise"

payload = {
    "accountInfo": {
        "accountAgeIndicator": "",
        "accountChangeDate": "",
        "accountChangeIndicator": "",
        "accountCreationDate": "",
        "accountType": "",
        "addCardAttemptsDay": 0,
        "deliveryAddressUsageDate": "",
        "deliveryAddressUsageIndicator": "",
        "homePhone": "",
        "mobilePhone": "",
        "passwordChangeDate": "",
        "passwordChangeIndicator": "",
        "pastTransactionsDay": 0,
        "pastTransactionsYear": 0,
        "paymentAccountAge": "",
        "paymentAccountIndicator": "",
        "purchasesLast6Months": 0,
        "suspiciousActivity": False,
        "workPhone": ""
    },
    "additionalAmount": {
        "currency": "",
        "value": 0
    },
    "additionalData": {},
    "amount": {},
    "applicationInfo": {
        "adyenLibrary": {
            "name": "",
            "version": ""
        },
        "adyenPaymentSource": {},
        "externalPlatform": {
            "integrator": "",
            "name": "",
            "version": ""
        },
        "merchantApplication": {},
        "merchantDevice": {
            "os": "",
            "osVersion": "",
            "reference": ""
        },
        "shopperInteractionDevice": {
            "locale": "",
            "os": "",
            "osVersion": ""
        }
    },
    "bankAccount": {
        "bankAccountNumber": "",
        "bankCity": "",
        "bankLocationId": "",
        "bankName": "",
        "bic": "",
        "countryCode": "",
        "iban": "",
        "ownerName": "",
        "taxId": ""
    },
    "billingAddress": {
        "city": "",
        "country": "",
        "houseNumberOrName": "",
        "postalCode": "",
        "stateOrProvince": "",
        "street": ""
    },
    "browserInfo": {
        "acceptHeader": "",
        "colorDepth": 0,
        "javaEnabled": False,
        "javaScriptEnabled": False,
        "language": "",
        "screenHeight": 0,
        "screenWidth": 0,
        "timeZoneOffset": 0,
        "userAgent": ""
    },
    "captureDelayHours": 0,
    "card": {
        "cvc": "",
        "expiryMonth": "",
        "expiryYear": "",
        "holderName": "",
        "issueNumber": "",
        "number": "",
        "startMonth": "",
        "startYear": ""
    },
    "dateOfBirth": "",
    "dccQuote": {
        "account": "",
        "accountType": "",
        "baseAmount": {},
        "basePoints": 0,
        "buy": {},
        "interbank": {},
        "reference": "",
        "sell": {},
        "signature": "",
        "source": "",
        "type": "",
        "validTill": ""
    },
    "deliveryAddress": {},
    "deliveryDate": "",
    "deviceFingerprint": "",
    "entityType": "",
    "fraudOffset": 0,
    "fundDestination": {
        "additionalData": {},
        "billingAddress": {},
        "card": {},
        "selectedRecurringDetailReference": "",
        "shopperEmail": "",
        "shopperName": {
            "firstName": "",
            "lastName": ""
        },
        "shopperReference": "",
        "subMerchant": {
            "city": "",
            "country": "",
            "mcc": "",
            "name": "",
            "taxId": ""
        },
        "telephoneNumber": ""
    },
    "fundSource": {
        "additionalData": {},
        "billingAddress": {},
        "card": {},
        "shopperEmail": "",
        "shopperName": {},
        "telephoneNumber": ""
    },
    "fundingSource": "",
    "installments": {
        "plan": "",
        "value": 0
    },
    "localizedShopperStatement": {},
    "mandate": {
        "amount": "",
        "amountRule": "",
        "billingAttemptsRule": "",
        "billingDay": "",
        "endsAt": "",
        "frequency": "",
        "remarks": "",
        "startsAt": ""
    },
    "mcc": "",
    "merchantAccount": "",
    "merchantOrderReference": "",
    "merchantRiskIndicator": {
        "addressMatch": False,
        "deliveryAddressIndicator": "",
        "deliveryEmail": "",
        "deliveryEmailAddress": "",
        "deliveryTimeframe": "",
        "giftCardAmount": {},
        "giftCardCount": 0,
        "giftCardCurr": "",
        "preOrderDate": "",
        "preOrderPurchase": False,
        "preOrderPurchaseInd": "",
        "reorderItems": False,
        "reorderItemsInd": "",
        "shipIndicator": ""
    },
    "metadata": {},
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "nationality": "",
    "orderReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "recurring": {
        "contract": "",
        "recurringDetailName": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "tokenService": ""
    },
    "recurringProcessingModel": "",
    "reference": "",
    "selectedBrand": "",
    "selectedRecurringDetailReference": "",
    "sessionId": "",
    "shopperEmail": "",
    "shopperIP": "",
    "shopperInteraction": "",
    "shopperLocale": "",
    "shopperName": {},
    "shopperReference": "",
    "shopperStatement": "",
    "socialSecurityNumber": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "store": "",
    "telephoneNumber": "",
    "threeDS2RequestData": {
        "acctInfo": {
            "chAccAgeInd": "",
            "chAccChange": "",
            "chAccChangeInd": "",
            "chAccPwChange": "",
            "chAccPwChangeInd": "",
            "chAccString": "",
            "nbPurchaseAccount": "",
            "paymentAccAge": "",
            "paymentAccInd": "",
            "provisionAttemptsDay": "",
            "shipAddressUsage": "",
            "shipAddressUsageInd": "",
            "shipNameIndicator": "",
            "suspiciousAccActivity": "",
            "txnActivityDay": "",
            "txnActivityYear": ""
        },
        "acctType": "",
        "acquirerBIN": "",
        "acquirerMerchantID": "",
        "addrMatch": "",
        "authenticationOnly": False,
        "challengeIndicator": "",
        "deviceChannel": "",
        "deviceRenderOptions": {
            "sdkInterface": "",
            "sdkUiType": []
        },
        "homePhone": {
            "cc": "",
            "subscriber": ""
        },
        "mcc": "",
        "merchantName": "",
        "messageVersion": "",
        "mobilePhone": {},
        "notificationURL": "",
        "payTokenInd": False,
        "paymentAuthenticationUseCase": "",
        "purchaseInstalData": "",
        "recurringExpiry": "",
        "recurringFrequency": "",
        "sdkAppID": "",
        "sdkEncData": "",
        "sdkEphemPubKey": {
            "crv": "",
            "kty": "",
            "x": "",
            "y": ""
        },
        "sdkMaxTimeout": 0,
        "sdkReferenceNumber": "",
        "sdkTransID": "",
        "sdkVersion": "",
        "threeDSCompInd": "",
        "threeDSRequestorAuthenticationInd": "",
        "threeDSRequestorAuthenticationInfo": {
            "threeDSReqAuthData": "",
            "threeDSReqAuthMethod": "",
            "threeDSReqAuthTimestamp": ""
        },
        "threeDSRequestorChallengeInd": "",
        "threeDSRequestorID": "",
        "threeDSRequestorName": "",
        "threeDSRequestorPriorAuthenticationInfo": {
            "threeDSReqPriorAuthData": "",
            "threeDSReqPriorAuthMethod": "",
            "threeDSReqPriorAuthTimestamp": "",
            "threeDSReqPriorRef": ""
        },
        "threeDSRequestorURL": "",
        "transType": "",
        "transactionType": "",
        "whiteListStatus": "",
        "workPhone": {}
    },
    "threeDSAuthenticationOnly": False,
    "totalsGroup": "",
    "trustedShopper": False
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

encode <- "json"

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

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

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

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  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/authorise') do |req|
  req.body = "{\n  \"accountInfo\": {\n    \"accountAgeIndicator\": \"\",\n    \"accountChangeDate\": \"\",\n    \"accountChangeIndicator\": \"\",\n    \"accountCreationDate\": \"\",\n    \"accountType\": \"\",\n    \"addCardAttemptsDay\": 0,\n    \"deliveryAddressUsageDate\": \"\",\n    \"deliveryAddressUsageIndicator\": \"\",\n    \"homePhone\": \"\",\n    \"mobilePhone\": \"\",\n    \"passwordChangeDate\": \"\",\n    \"passwordChangeIndicator\": \"\",\n    \"pastTransactionsDay\": 0,\n    \"pastTransactionsYear\": 0,\n    \"paymentAccountAge\": \"\",\n    \"paymentAccountIndicator\": \"\",\n    \"purchasesLast6Months\": 0,\n    \"suspiciousActivity\": false,\n    \"workPhone\": \"\"\n  },\n  \"additionalAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"additionalData\": {},\n  \"amount\": {},\n  \"applicationInfo\": {\n    \"adyenLibrary\": {\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"adyenPaymentSource\": {},\n    \"externalPlatform\": {\n      \"integrator\": \"\",\n      \"name\": \"\",\n      \"version\": \"\"\n    },\n    \"merchantApplication\": {},\n    \"merchantDevice\": {\n      \"os\": \"\",\n      \"osVersion\": \"\",\n      \"reference\": \"\"\n    },\n    \"shopperInteractionDevice\": {\n      \"locale\": \"\",\n      \"os\": \"\",\n      \"osVersion\": \"\"\n    }\n  },\n  \"bankAccount\": {\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  \"browserInfo\": {\n    \"acceptHeader\": \"\",\n    \"colorDepth\": 0,\n    \"javaEnabled\": false,\n    \"javaScriptEnabled\": false,\n    \"language\": \"\",\n    \"screenHeight\": 0,\n    \"screenWidth\": 0,\n    \"timeZoneOffset\": 0,\n    \"userAgent\": \"\"\n  },\n  \"captureDelayHours\": 0,\n  \"card\": {\n    \"cvc\": \"\",\n    \"expiryMonth\": \"\",\n    \"expiryYear\": \"\",\n    \"holderName\": \"\",\n    \"issueNumber\": \"\",\n    \"number\": \"\",\n    \"startMonth\": \"\",\n    \"startYear\": \"\"\n  },\n  \"dateOfBirth\": \"\",\n  \"dccQuote\": {\n    \"account\": \"\",\n    \"accountType\": \"\",\n    \"baseAmount\": {},\n    \"basePoints\": 0,\n    \"buy\": {},\n    \"interbank\": {},\n    \"reference\": \"\",\n    \"sell\": {},\n    \"signature\": \"\",\n    \"source\": \"\",\n    \"type\": \"\",\n    \"validTill\": \"\"\n  },\n  \"deliveryAddress\": {},\n  \"deliveryDate\": \"\",\n  \"deviceFingerprint\": \"\",\n  \"entityType\": \"\",\n  \"fraudOffset\": 0,\n  \"fundDestination\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"selectedRecurringDetailReference\": \"\",\n    \"shopperEmail\": \"\",\n    \"shopperName\": {\n      \"firstName\": \"\",\n      \"lastName\": \"\"\n    },\n    \"shopperReference\": \"\",\n    \"subMerchant\": {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"mcc\": \"\",\n      \"name\": \"\",\n      \"taxId\": \"\"\n    },\n    \"telephoneNumber\": \"\"\n  },\n  \"fundSource\": {\n    \"additionalData\": {},\n    \"billingAddress\": {},\n    \"card\": {},\n    \"shopperEmail\": \"\",\n    \"shopperName\": {},\n    \"telephoneNumber\": \"\"\n  },\n  \"fundingSource\": \"\",\n  \"installments\": {\n    \"plan\": \"\",\n    \"value\": 0\n  },\n  \"localizedShopperStatement\": {},\n  \"mandate\": {\n    \"amount\": \"\",\n    \"amountRule\": \"\",\n    \"billingAttemptsRule\": \"\",\n    \"billingDay\": \"\",\n    \"endsAt\": \"\",\n    \"frequency\": \"\",\n    \"remarks\": \"\",\n    \"startsAt\": \"\"\n  },\n  \"mcc\": \"\",\n  \"merchantAccount\": \"\",\n  \"merchantOrderReference\": \"\",\n  \"merchantRiskIndicator\": {\n    \"addressMatch\": false,\n    \"deliveryAddressIndicator\": \"\",\n    \"deliveryEmail\": \"\",\n    \"deliveryEmailAddress\": \"\",\n    \"deliveryTimeframe\": \"\",\n    \"giftCardAmount\": {},\n    \"giftCardCount\": 0,\n    \"giftCardCurr\": \"\",\n    \"preOrderDate\": \"\",\n    \"preOrderPurchase\": false,\n    \"preOrderPurchaseInd\": \"\",\n    \"reorderItems\": false,\n    \"reorderItemsInd\": \"\",\n    \"shipIndicator\": \"\"\n  },\n  \"metadata\": {},\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"nationality\": \"\",\n  \"orderReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"recurring\": {\n    \"contract\": \"\",\n    \"recurringDetailName\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"tokenService\": \"\"\n  },\n  \"recurringProcessingModel\": \"\",\n  \"reference\": \"\",\n  \"selectedBrand\": \"\",\n  \"selectedRecurringDetailReference\": \"\",\n  \"sessionId\": \"\",\n  \"shopperEmail\": \"\",\n  \"shopperIP\": \"\",\n  \"shopperInteraction\": \"\",\n  \"shopperLocale\": \"\",\n  \"shopperName\": {},\n  \"shopperReference\": \"\",\n  \"shopperStatement\": \"\",\n  \"socialSecurityNumber\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"store\": \"\",\n  \"telephoneNumber\": \"\",\n  \"threeDS2RequestData\": {\n    \"acctInfo\": {\n      \"chAccAgeInd\": \"\",\n      \"chAccChange\": \"\",\n      \"chAccChangeInd\": \"\",\n      \"chAccPwChange\": \"\",\n      \"chAccPwChangeInd\": \"\",\n      \"chAccString\": \"\",\n      \"nbPurchaseAccount\": \"\",\n      \"paymentAccAge\": \"\",\n      \"paymentAccInd\": \"\",\n      \"provisionAttemptsDay\": \"\",\n      \"shipAddressUsage\": \"\",\n      \"shipAddressUsageInd\": \"\",\n      \"shipNameIndicator\": \"\",\n      \"suspiciousAccActivity\": \"\",\n      \"txnActivityDay\": \"\",\n      \"txnActivityYear\": \"\"\n    },\n    \"acctType\": \"\",\n    \"acquirerBIN\": \"\",\n    \"acquirerMerchantID\": \"\",\n    \"addrMatch\": \"\",\n    \"authenticationOnly\": false,\n    \"challengeIndicator\": \"\",\n    \"deviceChannel\": \"\",\n    \"deviceRenderOptions\": {\n      \"sdkInterface\": \"\",\n      \"sdkUiType\": []\n    },\n    \"homePhone\": {\n      \"cc\": \"\",\n      \"subscriber\": \"\"\n    },\n    \"mcc\": \"\",\n    \"merchantName\": \"\",\n    \"messageVersion\": \"\",\n    \"mobilePhone\": {},\n    \"notificationURL\": \"\",\n    \"payTokenInd\": false,\n    \"paymentAuthenticationUseCase\": \"\",\n    \"purchaseInstalData\": \"\",\n    \"recurringExpiry\": \"\",\n    \"recurringFrequency\": \"\",\n    \"sdkAppID\": \"\",\n    \"sdkEncData\": \"\",\n    \"sdkEphemPubKey\": {\n      \"crv\": \"\",\n      \"kty\": \"\",\n      \"x\": \"\",\n      \"y\": \"\"\n    },\n    \"sdkMaxTimeout\": 0,\n    \"sdkReferenceNumber\": \"\",\n    \"sdkTransID\": \"\",\n    \"sdkVersion\": \"\",\n    \"threeDSCompInd\": \"\",\n    \"threeDSRequestorAuthenticationInd\": \"\",\n    \"threeDSRequestorAuthenticationInfo\": {\n      \"threeDSReqAuthData\": \"\",\n      \"threeDSReqAuthMethod\": \"\",\n      \"threeDSReqAuthTimestamp\": \"\"\n    },\n    \"threeDSRequestorChallengeInd\": \"\",\n    \"threeDSRequestorID\": \"\",\n    \"threeDSRequestorName\": \"\",\n    \"threeDSRequestorPriorAuthenticationInfo\": {\n      \"threeDSReqPriorAuthData\": \"\",\n      \"threeDSReqPriorAuthMethod\": \"\",\n      \"threeDSReqPriorAuthTimestamp\": \"\",\n      \"threeDSReqPriorRef\": \"\"\n    },\n    \"threeDSRequestorURL\": \"\",\n    \"transType\": \"\",\n    \"transactionType\": \"\",\n    \"whiteListStatus\": \"\",\n    \"workPhone\": {}\n  },\n  \"threeDSAuthenticationOnly\": false,\n  \"totalsGroup\": \"\",\n  \"trustedShopper\": false\n}"
end

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

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

    let payload = json!({
        "accountInfo": json!({
            "accountAgeIndicator": "",
            "accountChangeDate": "",
            "accountChangeIndicator": "",
            "accountCreationDate": "",
            "accountType": "",
            "addCardAttemptsDay": 0,
            "deliveryAddressUsageDate": "",
            "deliveryAddressUsageIndicator": "",
            "homePhone": "",
            "mobilePhone": "",
            "passwordChangeDate": "",
            "passwordChangeIndicator": "",
            "pastTransactionsDay": 0,
            "pastTransactionsYear": 0,
            "paymentAccountAge": "",
            "paymentAccountIndicator": "",
            "purchasesLast6Months": 0,
            "suspiciousActivity": false,
            "workPhone": ""
        }),
        "additionalAmount": json!({
            "currency": "",
            "value": 0
        }),
        "additionalData": json!({}),
        "amount": json!({}),
        "applicationInfo": json!({
            "adyenLibrary": json!({
                "name": "",
                "version": ""
            }),
            "adyenPaymentSource": json!({}),
            "externalPlatform": json!({
                "integrator": "",
                "name": "",
                "version": ""
            }),
            "merchantApplication": json!({}),
            "merchantDevice": json!({
                "os": "",
                "osVersion": "",
                "reference": ""
            }),
            "shopperInteractionDevice": json!({
                "locale": "",
                "os": "",
                "osVersion": ""
            })
        }),
        "bankAccount": json!({
            "bankAccountNumber": "",
            "bankCity": "",
            "bankLocationId": "",
            "bankName": "",
            "bic": "",
            "countryCode": "",
            "iban": "",
            "ownerName": "",
            "taxId": ""
        }),
        "billingAddress": json!({
            "city": "",
            "country": "",
            "houseNumberOrName": "",
            "postalCode": "",
            "stateOrProvince": "",
            "street": ""
        }),
        "browserInfo": json!({
            "acceptHeader": "",
            "colorDepth": 0,
            "javaEnabled": false,
            "javaScriptEnabled": false,
            "language": "",
            "screenHeight": 0,
            "screenWidth": 0,
            "timeZoneOffset": 0,
            "userAgent": ""
        }),
        "captureDelayHours": 0,
        "card": json!({
            "cvc": "",
            "expiryMonth": "",
            "expiryYear": "",
            "holderName": "",
            "issueNumber": "",
            "number": "",
            "startMonth": "",
            "startYear": ""
        }),
        "dateOfBirth": "",
        "dccQuote": json!({
            "account": "",
            "accountType": "",
            "baseAmount": json!({}),
            "basePoints": 0,
            "buy": json!({}),
            "interbank": json!({}),
            "reference": "",
            "sell": json!({}),
            "signature": "",
            "source": "",
            "type": "",
            "validTill": ""
        }),
        "deliveryAddress": json!({}),
        "deliveryDate": "",
        "deviceFingerprint": "",
        "entityType": "",
        "fraudOffset": 0,
        "fundDestination": json!({
            "additionalData": json!({}),
            "billingAddress": json!({}),
            "card": json!({}),
            "selectedRecurringDetailReference": "",
            "shopperEmail": "",
            "shopperName": json!({
                "firstName": "",
                "lastName": ""
            }),
            "shopperReference": "",
            "subMerchant": json!({
                "city": "",
                "country": "",
                "mcc": "",
                "name": "",
                "taxId": ""
            }),
            "telephoneNumber": ""
        }),
        "fundSource": json!({
            "additionalData": json!({}),
            "billingAddress": json!({}),
            "card": json!({}),
            "shopperEmail": "",
            "shopperName": json!({}),
            "telephoneNumber": ""
        }),
        "fundingSource": "",
        "installments": json!({
            "plan": "",
            "value": 0
        }),
        "localizedShopperStatement": json!({}),
        "mandate": json!({
            "amount": "",
            "amountRule": "",
            "billingAttemptsRule": "",
            "billingDay": "",
            "endsAt": "",
            "frequency": "",
            "remarks": "",
            "startsAt": ""
        }),
        "mcc": "",
        "merchantAccount": "",
        "merchantOrderReference": "",
        "merchantRiskIndicator": json!({
            "addressMatch": false,
            "deliveryAddressIndicator": "",
            "deliveryEmail": "",
            "deliveryEmailAddress": "",
            "deliveryTimeframe": "",
            "giftCardAmount": json!({}),
            "giftCardCount": 0,
            "giftCardCurr": "",
            "preOrderDate": "",
            "preOrderPurchase": false,
            "preOrderPurchaseInd": "",
            "reorderItems": false,
            "reorderItemsInd": "",
            "shipIndicator": ""
        }),
        "metadata": json!({}),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "nationality": "",
        "orderReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "recurring": json!({
            "contract": "",
            "recurringDetailName": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "tokenService": ""
        }),
        "recurringProcessingModel": "",
        "reference": "",
        "selectedBrand": "",
        "selectedRecurringDetailReference": "",
        "sessionId": "",
        "shopperEmail": "",
        "shopperIP": "",
        "shopperInteraction": "",
        "shopperLocale": "",
        "shopperName": json!({}),
        "shopperReference": "",
        "shopperStatement": "",
        "socialSecurityNumber": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "store": "",
        "telephoneNumber": "",
        "threeDS2RequestData": json!({
            "acctInfo": json!({
                "chAccAgeInd": "",
                "chAccChange": "",
                "chAccChangeInd": "",
                "chAccPwChange": "",
                "chAccPwChangeInd": "",
                "chAccString": "",
                "nbPurchaseAccount": "",
                "paymentAccAge": "",
                "paymentAccInd": "",
                "provisionAttemptsDay": "",
                "shipAddressUsage": "",
                "shipAddressUsageInd": "",
                "shipNameIndicator": "",
                "suspiciousAccActivity": "",
                "txnActivityDay": "",
                "txnActivityYear": ""
            }),
            "acctType": "",
            "acquirerBIN": "",
            "acquirerMerchantID": "",
            "addrMatch": "",
            "authenticationOnly": false,
            "challengeIndicator": "",
            "deviceChannel": "",
            "deviceRenderOptions": json!({
                "sdkInterface": "",
                "sdkUiType": ()
            }),
            "homePhone": json!({
                "cc": "",
                "subscriber": ""
            }),
            "mcc": "",
            "merchantName": "",
            "messageVersion": "",
            "mobilePhone": json!({}),
            "notificationURL": "",
            "payTokenInd": false,
            "paymentAuthenticationUseCase": "",
            "purchaseInstalData": "",
            "recurringExpiry": "",
            "recurringFrequency": "",
            "sdkAppID": "",
            "sdkEncData": "",
            "sdkEphemPubKey": json!({
                "crv": "",
                "kty": "",
                "x": "",
                "y": ""
            }),
            "sdkMaxTimeout": 0,
            "sdkReferenceNumber": "",
            "sdkTransID": "",
            "sdkVersion": "",
            "threeDSCompInd": "",
            "threeDSRequestorAuthenticationInd": "",
            "threeDSRequestorAuthenticationInfo": json!({
                "threeDSReqAuthData": "",
                "threeDSReqAuthMethod": "",
                "threeDSReqAuthTimestamp": ""
            }),
            "threeDSRequestorChallengeInd": "",
            "threeDSRequestorID": "",
            "threeDSRequestorName": "",
            "threeDSRequestorPriorAuthenticationInfo": json!({
                "threeDSReqPriorAuthData": "",
                "threeDSReqPriorAuthMethod": "",
                "threeDSReqPriorAuthTimestamp": "",
                "threeDSReqPriorRef": ""
            }),
            "threeDSRequestorURL": "",
            "transType": "",
            "transactionType": "",
            "whiteListStatus": "",
            "workPhone": json!({})
        }),
        "threeDSAuthenticationOnly": false,
        "totalsGroup": "",
        "trustedShopper": false
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/authorise \
  --header 'content-type: application/json' \
  --data '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}'
echo '{
  "accountInfo": {
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  },
  "additionalAmount": {
    "currency": "",
    "value": 0
  },
  "additionalData": {},
  "amount": {},
  "applicationInfo": {
    "adyenLibrary": {
      "name": "",
      "version": ""
    },
    "adyenPaymentSource": {},
    "externalPlatform": {
      "integrator": "",
      "name": "",
      "version": ""
    },
    "merchantApplication": {},
    "merchantDevice": {
      "os": "",
      "osVersion": "",
      "reference": ""
    },
    "shopperInteractionDevice": {
      "locale": "",
      "os": "",
      "osVersion": ""
    }
  },
  "bankAccount": {
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  },
  "billingAddress": {
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  },
  "browserInfo": {
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  },
  "captureDelayHours": 0,
  "card": {
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  },
  "dateOfBirth": "",
  "dccQuote": {
    "account": "",
    "accountType": "",
    "baseAmount": {},
    "basePoints": 0,
    "buy": {},
    "interbank": {},
    "reference": "",
    "sell": {},
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  },
  "deliveryAddress": {},
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": {
      "firstName": "",
      "lastName": ""
    },
    "shopperReference": "",
    "subMerchant": {
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    },
    "telephoneNumber": ""
  },
  "fundSource": {
    "additionalData": {},
    "billingAddress": {},
    "card": {},
    "shopperEmail": "",
    "shopperName": {},
    "telephoneNumber": ""
  },
  "fundingSource": "",
  "installments": {
    "plan": "",
    "value": 0
  },
  "localizedShopperStatement": {},
  "mandate": {
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  },
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": {
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": {},
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  },
  "metadata": {},
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "recurring": {
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  },
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": {},
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": {
    "acctInfo": {
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    },
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": {
      "sdkInterface": "",
      "sdkUiType": []
    },
    "homePhone": {
      "cc": "",
      "subscriber": ""
    },
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": {},
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": {
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    },
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": {
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    },
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": {
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    },
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": {}
  },
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
}' |  \
  http POST {{baseUrl}}/authorise \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountInfo": {\n    "accountAgeIndicator": "",\n    "accountChangeDate": "",\n    "accountChangeIndicator": "",\n    "accountCreationDate": "",\n    "accountType": "",\n    "addCardAttemptsDay": 0,\n    "deliveryAddressUsageDate": "",\n    "deliveryAddressUsageIndicator": "",\n    "homePhone": "",\n    "mobilePhone": "",\n    "passwordChangeDate": "",\n    "passwordChangeIndicator": "",\n    "pastTransactionsDay": 0,\n    "pastTransactionsYear": 0,\n    "paymentAccountAge": "",\n    "paymentAccountIndicator": "",\n    "purchasesLast6Months": 0,\n    "suspiciousActivity": false,\n    "workPhone": ""\n  },\n  "additionalAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "additionalData": {},\n  "amount": {},\n  "applicationInfo": {\n    "adyenLibrary": {\n      "name": "",\n      "version": ""\n    },\n    "adyenPaymentSource": {},\n    "externalPlatform": {\n      "integrator": "",\n      "name": "",\n      "version": ""\n    },\n    "merchantApplication": {},\n    "merchantDevice": {\n      "os": "",\n      "osVersion": "",\n      "reference": ""\n    },\n    "shopperInteractionDevice": {\n      "locale": "",\n      "os": "",\n      "osVersion": ""\n    }\n  },\n  "bankAccount": {\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  "browserInfo": {\n    "acceptHeader": "",\n    "colorDepth": 0,\n    "javaEnabled": false,\n    "javaScriptEnabled": false,\n    "language": "",\n    "screenHeight": 0,\n    "screenWidth": 0,\n    "timeZoneOffset": 0,\n    "userAgent": ""\n  },\n  "captureDelayHours": 0,\n  "card": {\n    "cvc": "",\n    "expiryMonth": "",\n    "expiryYear": "",\n    "holderName": "",\n    "issueNumber": "",\n    "number": "",\n    "startMonth": "",\n    "startYear": ""\n  },\n  "dateOfBirth": "",\n  "dccQuote": {\n    "account": "",\n    "accountType": "",\n    "baseAmount": {},\n    "basePoints": 0,\n    "buy": {},\n    "interbank": {},\n    "reference": "",\n    "sell": {},\n    "signature": "",\n    "source": "",\n    "type": "",\n    "validTill": ""\n  },\n  "deliveryAddress": {},\n  "deliveryDate": "",\n  "deviceFingerprint": "",\n  "entityType": "",\n  "fraudOffset": 0,\n  "fundDestination": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "selectedRecurringDetailReference": "",\n    "shopperEmail": "",\n    "shopperName": {\n      "firstName": "",\n      "lastName": ""\n    },\n    "shopperReference": "",\n    "subMerchant": {\n      "city": "",\n      "country": "",\n      "mcc": "",\n      "name": "",\n      "taxId": ""\n    },\n    "telephoneNumber": ""\n  },\n  "fundSource": {\n    "additionalData": {},\n    "billingAddress": {},\n    "card": {},\n    "shopperEmail": "",\n    "shopperName": {},\n    "telephoneNumber": ""\n  },\n  "fundingSource": "",\n  "installments": {\n    "plan": "",\n    "value": 0\n  },\n  "localizedShopperStatement": {},\n  "mandate": {\n    "amount": "",\n    "amountRule": "",\n    "billingAttemptsRule": "",\n    "billingDay": "",\n    "endsAt": "",\n    "frequency": "",\n    "remarks": "",\n    "startsAt": ""\n  },\n  "mcc": "",\n  "merchantAccount": "",\n  "merchantOrderReference": "",\n  "merchantRiskIndicator": {\n    "addressMatch": false,\n    "deliveryAddressIndicator": "",\n    "deliveryEmail": "",\n    "deliveryEmailAddress": "",\n    "deliveryTimeframe": "",\n    "giftCardAmount": {},\n    "giftCardCount": 0,\n    "giftCardCurr": "",\n    "preOrderDate": "",\n    "preOrderPurchase": false,\n    "preOrderPurchaseInd": "",\n    "reorderItems": false,\n    "reorderItemsInd": "",\n    "shipIndicator": ""\n  },\n  "metadata": {},\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "nationality": "",\n  "orderReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "recurring": {\n    "contract": "",\n    "recurringDetailName": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "tokenService": ""\n  },\n  "recurringProcessingModel": "",\n  "reference": "",\n  "selectedBrand": "",\n  "selectedRecurringDetailReference": "",\n  "sessionId": "",\n  "shopperEmail": "",\n  "shopperIP": "",\n  "shopperInteraction": "",\n  "shopperLocale": "",\n  "shopperName": {},\n  "shopperReference": "",\n  "shopperStatement": "",\n  "socialSecurityNumber": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "store": "",\n  "telephoneNumber": "",\n  "threeDS2RequestData": {\n    "acctInfo": {\n      "chAccAgeInd": "",\n      "chAccChange": "",\n      "chAccChangeInd": "",\n      "chAccPwChange": "",\n      "chAccPwChangeInd": "",\n      "chAccString": "",\n      "nbPurchaseAccount": "",\n      "paymentAccAge": "",\n      "paymentAccInd": "",\n      "provisionAttemptsDay": "",\n      "shipAddressUsage": "",\n      "shipAddressUsageInd": "",\n      "shipNameIndicator": "",\n      "suspiciousAccActivity": "",\n      "txnActivityDay": "",\n      "txnActivityYear": ""\n    },\n    "acctType": "",\n    "acquirerBIN": "",\n    "acquirerMerchantID": "",\n    "addrMatch": "",\n    "authenticationOnly": false,\n    "challengeIndicator": "",\n    "deviceChannel": "",\n    "deviceRenderOptions": {\n      "sdkInterface": "",\n      "sdkUiType": []\n    },\n    "homePhone": {\n      "cc": "",\n      "subscriber": ""\n    },\n    "mcc": "",\n    "merchantName": "",\n    "messageVersion": "",\n    "mobilePhone": {},\n    "notificationURL": "",\n    "payTokenInd": false,\n    "paymentAuthenticationUseCase": "",\n    "purchaseInstalData": "",\n    "recurringExpiry": "",\n    "recurringFrequency": "",\n    "sdkAppID": "",\n    "sdkEncData": "",\n    "sdkEphemPubKey": {\n      "crv": "",\n      "kty": "",\n      "x": "",\n      "y": ""\n    },\n    "sdkMaxTimeout": 0,\n    "sdkReferenceNumber": "",\n    "sdkTransID": "",\n    "sdkVersion": "",\n    "threeDSCompInd": "",\n    "threeDSRequestorAuthenticationInd": "",\n    "threeDSRequestorAuthenticationInfo": {\n      "threeDSReqAuthData": "",\n      "threeDSReqAuthMethod": "",\n      "threeDSReqAuthTimestamp": ""\n    },\n    "threeDSRequestorChallengeInd": "",\n    "threeDSRequestorID": "",\n    "threeDSRequestorName": "",\n    "threeDSRequestorPriorAuthenticationInfo": {\n      "threeDSReqPriorAuthData": "",\n      "threeDSReqPriorAuthMethod": "",\n      "threeDSReqPriorAuthTimestamp": "",\n      "threeDSReqPriorRef": ""\n    },\n    "threeDSRequestorURL": "",\n    "transType": "",\n    "transactionType": "",\n    "whiteListStatus": "",\n    "workPhone": {}\n  },\n  "threeDSAuthenticationOnly": false,\n  "totalsGroup": "",\n  "trustedShopper": false\n}' \
  --output-document \
  - {{baseUrl}}/authorise
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountInfo": [
    "accountAgeIndicator": "",
    "accountChangeDate": "",
    "accountChangeIndicator": "",
    "accountCreationDate": "",
    "accountType": "",
    "addCardAttemptsDay": 0,
    "deliveryAddressUsageDate": "",
    "deliveryAddressUsageIndicator": "",
    "homePhone": "",
    "mobilePhone": "",
    "passwordChangeDate": "",
    "passwordChangeIndicator": "",
    "pastTransactionsDay": 0,
    "pastTransactionsYear": 0,
    "paymentAccountAge": "",
    "paymentAccountIndicator": "",
    "purchasesLast6Months": 0,
    "suspiciousActivity": false,
    "workPhone": ""
  ],
  "additionalAmount": [
    "currency": "",
    "value": 0
  ],
  "additionalData": [],
  "amount": [],
  "applicationInfo": [
    "adyenLibrary": [
      "name": "",
      "version": ""
    ],
    "adyenPaymentSource": [],
    "externalPlatform": [
      "integrator": "",
      "name": "",
      "version": ""
    ],
    "merchantApplication": [],
    "merchantDevice": [
      "os": "",
      "osVersion": "",
      "reference": ""
    ],
    "shopperInteractionDevice": [
      "locale": "",
      "os": "",
      "osVersion": ""
    ]
  ],
  "bankAccount": [
    "bankAccountNumber": "",
    "bankCity": "",
    "bankLocationId": "",
    "bankName": "",
    "bic": "",
    "countryCode": "",
    "iban": "",
    "ownerName": "",
    "taxId": ""
  ],
  "billingAddress": [
    "city": "",
    "country": "",
    "houseNumberOrName": "",
    "postalCode": "",
    "stateOrProvince": "",
    "street": ""
  ],
  "browserInfo": [
    "acceptHeader": "",
    "colorDepth": 0,
    "javaEnabled": false,
    "javaScriptEnabled": false,
    "language": "",
    "screenHeight": 0,
    "screenWidth": 0,
    "timeZoneOffset": 0,
    "userAgent": ""
  ],
  "captureDelayHours": 0,
  "card": [
    "cvc": "",
    "expiryMonth": "",
    "expiryYear": "",
    "holderName": "",
    "issueNumber": "",
    "number": "",
    "startMonth": "",
    "startYear": ""
  ],
  "dateOfBirth": "",
  "dccQuote": [
    "account": "",
    "accountType": "",
    "baseAmount": [],
    "basePoints": 0,
    "buy": [],
    "interbank": [],
    "reference": "",
    "sell": [],
    "signature": "",
    "source": "",
    "type": "",
    "validTill": ""
  ],
  "deliveryAddress": [],
  "deliveryDate": "",
  "deviceFingerprint": "",
  "entityType": "",
  "fraudOffset": 0,
  "fundDestination": [
    "additionalData": [],
    "billingAddress": [],
    "card": [],
    "selectedRecurringDetailReference": "",
    "shopperEmail": "",
    "shopperName": [
      "firstName": "",
      "lastName": ""
    ],
    "shopperReference": "",
    "subMerchant": [
      "city": "",
      "country": "",
      "mcc": "",
      "name": "",
      "taxId": ""
    ],
    "telephoneNumber": ""
  ],
  "fundSource": [
    "additionalData": [],
    "billingAddress": [],
    "card": [],
    "shopperEmail": "",
    "shopperName": [],
    "telephoneNumber": ""
  ],
  "fundingSource": "",
  "installments": [
    "plan": "",
    "value": 0
  ],
  "localizedShopperStatement": [],
  "mandate": [
    "amount": "",
    "amountRule": "",
    "billingAttemptsRule": "",
    "billingDay": "",
    "endsAt": "",
    "frequency": "",
    "remarks": "",
    "startsAt": ""
  ],
  "mcc": "",
  "merchantAccount": "",
  "merchantOrderReference": "",
  "merchantRiskIndicator": [
    "addressMatch": false,
    "deliveryAddressIndicator": "",
    "deliveryEmail": "",
    "deliveryEmailAddress": "",
    "deliveryTimeframe": "",
    "giftCardAmount": [],
    "giftCardCount": 0,
    "giftCardCurr": "",
    "preOrderDate": "",
    "preOrderPurchase": false,
    "preOrderPurchaseInd": "",
    "reorderItems": false,
    "reorderItemsInd": "",
    "shipIndicator": ""
  ],
  "metadata": [],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "nationality": "",
  "orderReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "recurring": [
    "contract": "",
    "recurringDetailName": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "tokenService": ""
  ],
  "recurringProcessingModel": "",
  "reference": "",
  "selectedBrand": "",
  "selectedRecurringDetailReference": "",
  "sessionId": "",
  "shopperEmail": "",
  "shopperIP": "",
  "shopperInteraction": "",
  "shopperLocale": "",
  "shopperName": [],
  "shopperReference": "",
  "shopperStatement": "",
  "socialSecurityNumber": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "store": "",
  "telephoneNumber": "",
  "threeDS2RequestData": [
    "acctInfo": [
      "chAccAgeInd": "",
      "chAccChange": "",
      "chAccChangeInd": "",
      "chAccPwChange": "",
      "chAccPwChangeInd": "",
      "chAccString": "",
      "nbPurchaseAccount": "",
      "paymentAccAge": "",
      "paymentAccInd": "",
      "provisionAttemptsDay": "",
      "shipAddressUsage": "",
      "shipAddressUsageInd": "",
      "shipNameIndicator": "",
      "suspiciousAccActivity": "",
      "txnActivityDay": "",
      "txnActivityYear": ""
    ],
    "acctType": "",
    "acquirerBIN": "",
    "acquirerMerchantID": "",
    "addrMatch": "",
    "authenticationOnly": false,
    "challengeIndicator": "",
    "deviceChannel": "",
    "deviceRenderOptions": [
      "sdkInterface": "",
      "sdkUiType": []
    ],
    "homePhone": [
      "cc": "",
      "subscriber": ""
    ],
    "mcc": "",
    "merchantName": "",
    "messageVersion": "",
    "mobilePhone": [],
    "notificationURL": "",
    "payTokenInd": false,
    "paymentAuthenticationUseCase": "",
    "purchaseInstalData": "",
    "recurringExpiry": "",
    "recurringFrequency": "",
    "sdkAppID": "",
    "sdkEncData": "",
    "sdkEphemPubKey": [
      "crv": "",
      "kty": "",
      "x": "",
      "y": ""
    ],
    "sdkMaxTimeout": 0,
    "sdkReferenceNumber": "",
    "sdkTransID": "",
    "sdkVersion": "",
    "threeDSCompInd": "",
    "threeDSRequestorAuthenticationInd": "",
    "threeDSRequestorAuthenticationInfo": [
      "threeDSReqAuthData": "",
      "threeDSReqAuthMethod": "",
      "threeDSReqAuthTimestamp": ""
    ],
    "threeDSRequestorChallengeInd": "",
    "threeDSRequestorID": "",
    "threeDSRequestorName": "",
    "threeDSRequestorPriorAuthenticationInfo": [
      "threeDSReqPriorAuthData": "",
      "threeDSReqPriorAuthMethod": "",
      "threeDSReqPriorAuthTimestamp": "",
      "threeDSReqPriorRef": ""
    ],
    "threeDSRequestorURL": "",
    "transType": "",
    "transactionType": "",
    "whiteListStatus": "",
    "workPhone": []
  ],
  "threeDSAuthenticationOnly": false,
  "totalsGroup": "",
  "trustedShopper": false
] as [String : Any]

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Get the 3DS authentication result
{{baseUrl}}/getAuthenticationResult
BODY json

{
  "merchantAccount": "",
  "pspReference": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

(client/post "{{baseUrl}}/getAuthenticationResult" {:content-type :json
                                                                    :form-params {:merchantAccount ""
                                                                                  :pspReference ""}})
require "http/client"

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

payload = "{\n  \"merchantAccount\": \"\",\n  \"pspReference\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/getAuthenticationResult"

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

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

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

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

payload <- "{\n  \"merchantAccount\": \"\",\n  \"pspReference\": \"\"\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}}/getAuthenticationResult")

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

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

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

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

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

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

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Get the 3DS2 authentication result
{{baseUrl}}/retrieve3ds2Result
BODY json

{
  "merchantAccount": "",
  "pspReference": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

(client/post "{{baseUrl}}/retrieve3ds2Result" {:content-type :json
                                                               :form-params {:merchantAccount ""
                                                                             :pspReference ""}})
require "http/client"

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

payload = "{\n  \"merchantAccount\": \"\",\n  \"pspReference\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/retrieve3ds2Result"

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

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

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

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

payload <- "{\n  \"merchantAccount\": \"\",\n  \"pspReference\": \"\"\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}}/retrieve3ds2Result")

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

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

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

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

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

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

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Cancel an authorisation using your reference
{{baseUrl}}/technicalCancel
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/technicalCancel" {:content-type :json
                                                            :form-params {:additionalData {}
                                                                          :merchantAccount ""
                                                                          :modificationAmount {:currency ""
                                                                                               :value 0}
                                                                          :mpiData {:authenticationResponse ""
                                                                                    :cavv ""
                                                                                    :cavvAlgorithm ""
                                                                                    :challengeCancel ""
                                                                                    :directoryResponse ""
                                                                                    :dsTransID ""
                                                                                    :eci ""
                                                                                    :riskScore ""
                                                                                    :threeDSVersion ""
                                                                                    :tokenAuthenticationVerificationValue ""
                                                                                    :transStatusReason ""
                                                                                    :xid ""}
                                                                          :originalMerchantReference ""
                                                                          :platformChargebackLogic {:behavior ""
                                                                                                    :costAllocationAccount ""
                                                                                                    :targetAccount ""}
                                                                          :reference ""
                                                                          :splits [{:account ""
                                                                                    :amount {:currency ""
                                                                                             :value 0}
                                                                                    :description ""
                                                                                    :reference ""
                                                                                    :type ""}]
                                                                          :tenderReference ""
                                                                          :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/technicalCancel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/technicalCancel"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/technicalCancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/technicalCancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 847

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/technicalCancel")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/technicalCancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/technicalCancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/technicalCancel")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/technicalCancel',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/technicalCancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/technicalCancel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/technicalCancel")
  .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/technicalCancel',
  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: '',
  modificationAmount: {currency: '', value: 0},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/technicalCancel',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/technicalCancel');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/technicalCancel',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/technicalCancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/technicalCancel"]
                                                       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}}/technicalCancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/technicalCancel",
  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' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/technicalCancel', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/technicalCancel');
$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}}/technicalCancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/technicalCancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/technicalCancel"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/technicalCancel")

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/technicalCancel') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/technicalCancel \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/technicalCancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/technicalCancel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/technicalCancel")! 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": "881617892361436J",
  "response": "[technical-cancel-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Cancel an authorisation
{{baseUrl}}/cancel
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/cancel" {:content-type :json
                                                   :form-params {:additionalData {}
                                                                 :merchantAccount ""
                                                                 :mpiData {:authenticationResponse ""
                                                                           :cavv ""
                                                                           :cavvAlgorithm ""
                                                                           :challengeCancel ""
                                                                           :directoryResponse ""
                                                                           :dsTransID ""
                                                                           :eci ""
                                                                           :riskScore ""
                                                                           :threeDSVersion ""
                                                                           :tokenAuthenticationVerificationValue ""
                                                                           :transStatusReason ""
                                                                           :xid ""}
                                                                 :originalMerchantReference ""
                                                                 :originalReference ""
                                                                 :platformChargebackLogic {:behavior ""
                                                                                           :costAllocationAccount ""
                                                                                           :targetAccount ""}
                                                                 :reference ""
                                                                 :splits [{:account ""
                                                                           :amount {:currency ""
                                                                                    :value 0}
                                                                           :description ""
                                                                           :reference ""
                                                                           :type ""}]
                                                                 :tenderReference ""
                                                                 :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/cancel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancel"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/cancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 808

{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/cancel")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/cancel")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cancel',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/cancel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cancel")
  .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/cancel',
  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: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cancel',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/cancel');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/cancel',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cancel"]
                                                       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}}/cancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cancel",
  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' => '',
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/cancel', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/cancel');
$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}}/cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/cancel"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancel")

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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/cancel') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/cancel \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/cancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/cancel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Cancel an in-person refund
{{baseUrl}}/voidPendingRefund
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/voidPendingRefund" {:content-type :json
                                                              :form-params {:additionalData {}
                                                                            :merchantAccount ""
                                                                            :modificationAmount {:currency ""
                                                                                                 :value 0}
                                                                            :mpiData {:authenticationResponse ""
                                                                                      :cavv ""
                                                                                      :cavvAlgorithm ""
                                                                                      :challengeCancel ""
                                                                                      :directoryResponse ""
                                                                                      :dsTransID ""
                                                                                      :eci ""
                                                                                      :riskScore ""
                                                                                      :threeDSVersion ""
                                                                                      :tokenAuthenticationVerificationValue ""
                                                                                      :transStatusReason ""
                                                                                      :xid ""}
                                                                            :originalMerchantReference ""
                                                                            :originalReference ""
                                                                            :platformChargebackLogic {:behavior ""
                                                                                                      :costAllocationAccount ""
                                                                                                      :targetAccount ""}
                                                                            :reference ""
                                                                            :splits [{:account ""
                                                                                      :amount {:currency ""
                                                                                               :value 0}
                                                                                      :description ""
                                                                                      :reference ""
                                                                                      :type ""}]
                                                                            :tenderReference ""
                                                                            :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/voidPendingRefund"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/voidPendingRefund"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/voidPendingRefund");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/voidPendingRefund HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 874

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/voidPendingRefund")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/voidPendingRefund"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/voidPendingRefund")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/voidPendingRefund")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/voidPendingRefund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/voidPendingRefund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/voidPendingRefund',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/voidPendingRefund")
  .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/voidPendingRefund',
  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: '',
  modificationAmount: {currency: '', value: 0},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/voidPendingRefund',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/voidPendingRefund');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/voidPendingRefund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/voidPendingRefund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/voidPendingRefund"]
                                                       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}}/voidPendingRefund" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/voidPendingRefund",
  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' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/voidPendingRefund', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/voidPendingRefund');
$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}}/voidPendingRefund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/voidPendingRefund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/voidPendingRefund"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/voidPendingRefund")

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/voidPendingRefund') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/voidPendingRefund \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/voidPendingRefund \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/voidPendingRefund
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/voidPendingRefund")! 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": "861617892360062F",
  "response": "[voidPendingRefund-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "pspReference": "881617892360409G",
  "response": "[voidPendingRefund-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Cancel or refund a payment
{{baseUrl}}/cancelOrRefund
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/cancelOrRefund" {:content-type :json
                                                           :form-params {:additionalData {}
                                                                         :merchantAccount ""
                                                                         :mpiData {:authenticationResponse ""
                                                                                   :cavv ""
                                                                                   :cavvAlgorithm ""
                                                                                   :challengeCancel ""
                                                                                   :directoryResponse ""
                                                                                   :dsTransID ""
                                                                                   :eci ""
                                                                                   :riskScore ""
                                                                                   :threeDSVersion ""
                                                                                   :tokenAuthenticationVerificationValue ""
                                                                                   :transStatusReason ""
                                                                                   :xid ""}
                                                                         :originalMerchantReference ""
                                                                         :originalReference ""
                                                                         :platformChargebackLogic {:behavior ""
                                                                                                   :costAllocationAccount ""
                                                                                                   :targetAccount ""}
                                                                         :reference ""
                                                                         :tenderReference ""
                                                                         :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/cancelOrRefund"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancelOrRefund"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancelOrRefund");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/cancelOrRefund HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 621

{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/cancelOrRefund")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cancelOrRefund"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cancelOrRefund")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/cancelOrRefund")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cancelOrRefund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cancelOrRefund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","tenderReference":"","uniqueTerminalId":""}'
};

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}}/cancelOrRefund',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cancelOrRefund")
  .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/cancelOrRefund',
  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: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cancelOrRefund',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/cancelOrRefund');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/cancelOrRefund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/cancelOrRefund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cancelOrRefund"]
                                                       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}}/cancelOrRefund" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cancelOrRefund",
  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' => '',
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/cancelOrRefund', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/cancelOrRefund');
$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}}/cancelOrRefund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cancelOrRefund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/cancelOrRefund"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/cancelOrRefund")

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  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/cancelOrRefund') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/cancelOrRefund \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/cancelOrRefund \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/cancelOrRefund
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/cancelOrRefund")! 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": "851617892359708H",
  "response": "[cancelOrRefund-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Capture an authorisation
{{baseUrl}}/capture
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/capture" {:content-type :json
                                                    :form-params {:additionalData {}
                                                                  :merchantAccount ""
                                                                  :modificationAmount {:currency ""
                                                                                       :value 0}
                                                                  :mpiData {:authenticationResponse ""
                                                                            :cavv ""
                                                                            :cavvAlgorithm ""
                                                                            :challengeCancel ""
                                                                            :directoryResponse ""
                                                                            :dsTransID ""
                                                                            :eci ""
                                                                            :riskScore ""
                                                                            :threeDSVersion ""
                                                                            :tokenAuthenticationVerificationValue ""
                                                                            :transStatusReason ""
                                                                            :xid ""}
                                                                  :originalMerchantReference ""
                                                                  :originalReference ""
                                                                  :platformChargebackLogic {:behavior ""
                                                                                            :costAllocationAccount ""
                                                                                            :targetAccount ""}
                                                                  :reference ""
                                                                  :splits [{:account ""
                                                                            :amount {:currency ""
                                                                                     :value 0}
                                                                            :description ""
                                                                            :reference ""
                                                                            :type ""}]
                                                                  :tenderReference ""
                                                                  :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/capture"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/capture"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/capture");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/capture HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 874

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/capture")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/capture"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/capture")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/capture")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/capture',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/capture';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/capture',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/capture")
  .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/capture',
  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: '',
  modificationAmount: {currency: '', value: 0},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/capture',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/capture');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/capture',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/capture';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/capture"]
                                                       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}}/capture" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/capture",
  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' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/capture', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/capture');
$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}}/capture' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/capture' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/capture"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/capture")

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/capture') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/capture \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/capture \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/capture
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/capture")! 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": "861617892359057J",
  "response": "[capture-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Change the authorised amount
{{baseUrl}}/adjustAuthorisation
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/adjustAuthorisation" {:content-type :json
                                                                :form-params {:additionalData {}
                                                                              :merchantAccount ""
                                                                              :modificationAmount {:currency ""
                                                                                                   :value 0}
                                                                              :mpiData {:authenticationResponse ""
                                                                                        :cavv ""
                                                                                        :cavvAlgorithm ""
                                                                                        :challengeCancel ""
                                                                                        :directoryResponse ""
                                                                                        :dsTransID ""
                                                                                        :eci ""
                                                                                        :riskScore ""
                                                                                        :threeDSVersion ""
                                                                                        :tokenAuthenticationVerificationValue ""
                                                                                        :transStatusReason ""
                                                                                        :xid ""}
                                                                              :originalMerchantReference ""
                                                                              :originalReference ""
                                                                              :platformChargebackLogic {:behavior ""
                                                                                                        :costAllocationAccount ""
                                                                                                        :targetAccount ""}
                                                                              :reference ""
                                                                              :splits [{:account ""
                                                                                        :amount {:currency ""
                                                                                                 :value 0}
                                                                                        :description ""
                                                                                        :reference ""
                                                                                        :type ""}]
                                                                              :tenderReference ""
                                                                              :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/adjustAuthorisation"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/adjustAuthorisation"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/adjustAuthorisation");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/adjustAuthorisation HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 874

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/adjustAuthorisation")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adjustAuthorisation"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/adjustAuthorisation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/adjustAuthorisation")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adjustAuthorisation',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adjustAuthorisation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/adjustAuthorisation',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/adjustAuthorisation")
  .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/adjustAuthorisation',
  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: '',
  modificationAmount: {currency: '', value: 0},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adjustAuthorisation',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/adjustAuthorisation');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/adjustAuthorisation',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/adjustAuthorisation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adjustAuthorisation"]
                                                       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}}/adjustAuthorisation" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adjustAuthorisation",
  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' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/adjustAuthorisation', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/adjustAuthorisation');
$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}}/adjustAuthorisation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adjustAuthorisation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/adjustAuthorisation"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/adjustAuthorisation")

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/adjustAuthorisation') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/adjustAuthorisation \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/adjustAuthorisation \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/adjustAuthorisation
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adjustAuthorisation")! 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": "851617892360718D",
  "response": "[adjustAuthorisation-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Create a donation
{{baseUrl}}/donate
BODY json

{
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}");

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

(client/post "{{baseUrl}}/donate" {:content-type :json
                                                   :form-params {:donationAccount ""
                                                                 :merchantAccount ""
                                                                 :modificationAmount {:currency ""
                                                                                      :value 0}
                                                                 :originalReference ""
                                                                 :platformChargebackLogic {:behavior ""
                                                                                           :costAllocationAccount ""
                                                                                           :targetAccount ""}
                                                                 :reference ""}})
require "http/client"

url = "{{baseUrl}}/donate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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}}/donate"),
    Content = new StringContent("{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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}}/donate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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/donate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 277

{
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/donate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/donate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/donate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/donate")
  .header("content-type", "application/json")
  .body("{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  donationAccount: '',
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/donate',
  headers: {'content-type': 'application/json'},
  data: {
    donationAccount: '',
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/donate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"donationAccount":"","merchantAccount":"","modificationAmount":{"currency":"","value":0},"originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":""}'
};

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}}/donate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "donationAccount": "",\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/donate")
  .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/donate',
  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({
  donationAccount: '',
  merchantAccount: '',
  modificationAmount: {currency: '', value: 0},
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/donate',
  headers: {'content-type': 'application/json'},
  body: {
    donationAccount: '',
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: ''
  },
  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}}/donate');

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

req.type('json');
req.send({
  donationAccount: '',
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: ''
});

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}}/donate',
  headers: {'content-type': 'application/json'},
  data: {
    donationAccount: '',
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: ''
  }
};

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

const url = '{{baseUrl}}/donate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"donationAccount":"","merchantAccount":"","modificationAmount":{"currency":"","value":0},"originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":""}'
};

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 = @{ @"donationAccount": @"",
                              @"merchantAccount": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/donate"]
                                                       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}}/donate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/donate",
  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([
    'donationAccount' => '',
    'merchantAccount' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => ''
  ]),
  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}}/donate', [
  'body' => '{
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'donationAccount' => '',
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => ''
]));

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

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

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

payload = "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/donate"

payload = {
    "donationAccount": "",
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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}}/donate")

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  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\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/donate') do |req|
  req.body = "{\n  \"donationAccount\": \"\",\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\"\n}"
end

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

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

    let payload = json!({
        "donationAccount": "",
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": ""
    });

    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}}/donate \
  --header 'content-type: application/json' \
  --data '{
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": ""
}'
echo '{
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": ""
}' |  \
  http POST {{baseUrl}}/donate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "donationAccount": "",\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": ""\n}' \
  --output-document \
  - {{baseUrl}}/donate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "donationAccount": "",
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": ""
] as [String : Any]

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

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

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}
POST Refund a captured payment
{{baseUrl}}/refund
BODY json

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");

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

(client/post "{{baseUrl}}/refund" {:content-type :json
                                                   :form-params {:additionalData {}
                                                                 :merchantAccount ""
                                                                 :modificationAmount {:currency ""
                                                                                      :value 0}
                                                                 :mpiData {:authenticationResponse ""
                                                                           :cavv ""
                                                                           :cavvAlgorithm ""
                                                                           :challengeCancel ""
                                                                           :directoryResponse ""
                                                                           :dsTransID ""
                                                                           :eci ""
                                                                           :riskScore ""
                                                                           :threeDSVersion ""
                                                                           :tokenAuthenticationVerificationValue ""
                                                                           :transStatusReason ""
                                                                           :xid ""}
                                                                 :originalMerchantReference ""
                                                                 :originalReference ""
                                                                 :platformChargebackLogic {:behavior ""
                                                                                           :costAllocationAccount ""
                                                                                           :targetAccount ""}
                                                                 :reference ""
                                                                 :splits [{:account ""
                                                                           :amount {:currency ""
                                                                                    :value 0}
                                                                           :description ""
                                                                           :reference ""
                                                                           :type ""}]
                                                                 :tenderReference ""
                                                                 :uniqueTerminalId ""}})
require "http/client"

url = "{{baseUrl}}/refund"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/refund"),
    Content = new StringContent("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/refund");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/refund HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 874

{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/refund")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/refund"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/refund")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/refund")
  .header("content-type", "application/json")
  .body("{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/refund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/refund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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}}/refund',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/refund")
  .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/refund',
  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: '',
  modificationAmount: {currency: '', value: 0},
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
  reference: '',
  splits: [
    {
      account: '',
      amount: {currency: '', value: 0},
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/refund',
  headers: {'content-type': 'application/json'},
  body: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  },
  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}}/refund');

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

req.type('json');
req.send({
  additionalData: {},
  merchantAccount: '',
  modificationAmount: {
    currency: '',
    value: 0
  },
  mpiData: {
    authenticationResponse: '',
    cavv: '',
    cavvAlgorithm: '',
    challengeCancel: '',
    directoryResponse: '',
    dsTransID: '',
    eci: '',
    riskScore: '',
    threeDSVersion: '',
    tokenAuthenticationVerificationValue: '',
    transStatusReason: '',
    xid: ''
  },
  originalMerchantReference: '',
  originalReference: '',
  platformChargebackLogic: {
    behavior: '',
    costAllocationAccount: '',
    targetAccount: ''
  },
  reference: '',
  splits: [
    {
      account: '',
      amount: {
        currency: '',
        value: 0
      },
      description: '',
      reference: '',
      type: ''
    }
  ],
  tenderReference: '',
  uniqueTerminalId: ''
});

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}}/refund',
  headers: {'content-type': 'application/json'},
  data: {
    additionalData: {},
    merchantAccount: '',
    modificationAmount: {currency: '', value: 0},
    mpiData: {
      authenticationResponse: '',
      cavv: '',
      cavvAlgorithm: '',
      challengeCancel: '',
      directoryResponse: '',
      dsTransID: '',
      eci: '',
      riskScore: '',
      threeDSVersion: '',
      tokenAuthenticationVerificationValue: '',
      transStatusReason: '',
      xid: ''
    },
    originalMerchantReference: '',
    originalReference: '',
    platformChargebackLogic: {behavior: '', costAllocationAccount: '', targetAccount: ''},
    reference: '',
    splits: [
      {
        account: '',
        amount: {currency: '', value: 0},
        description: '',
        reference: '',
        type: ''
      }
    ],
    tenderReference: '',
    uniqueTerminalId: ''
  }
};

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

const url = '{{baseUrl}}/refund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalData":{},"merchantAccount":"","modificationAmount":{"currency":"","value":0},"mpiData":{"authenticationResponse":"","cavv":"","cavvAlgorithm":"","challengeCancel":"","directoryResponse":"","dsTransID":"","eci":"","riskScore":"","threeDSVersion":"","tokenAuthenticationVerificationValue":"","transStatusReason":"","xid":""},"originalMerchantReference":"","originalReference":"","platformChargebackLogic":{"behavior":"","costAllocationAccount":"","targetAccount":""},"reference":"","splits":[{"account":"","amount":{"currency":"","value":0},"description":"","reference":"","type":""}],"tenderReference":"","uniqueTerminalId":""}'
};

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": @"",
                              @"modificationAmount": @{ @"currency": @"", @"value": @0 },
                              @"mpiData": @{ @"authenticationResponse": @"", @"cavv": @"", @"cavvAlgorithm": @"", @"challengeCancel": @"", @"directoryResponse": @"", @"dsTransID": @"", @"eci": @"", @"riskScore": @"", @"threeDSVersion": @"", @"tokenAuthenticationVerificationValue": @"", @"transStatusReason": @"", @"xid": @"" },
                              @"originalMerchantReference": @"",
                              @"originalReference": @"",
                              @"platformChargebackLogic": @{ @"behavior": @"", @"costAllocationAccount": @"", @"targetAccount": @"" },
                              @"reference": @"",
                              @"splits": @[ @{ @"account": @"", @"amount": @{ @"currency": @"", @"value": @0 }, @"description": @"", @"reference": @"", @"type": @"" } ],
                              @"tenderReference": @"",
                              @"uniqueTerminalId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/refund"]
                                                       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}}/refund" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/refund",
  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' => '',
    'modificationAmount' => [
        'currency' => '',
        'value' => 0
    ],
    'mpiData' => [
        'authenticationResponse' => '',
        'cavv' => '',
        'cavvAlgorithm' => '',
        'challengeCancel' => '',
        'directoryResponse' => '',
        'dsTransID' => '',
        'eci' => '',
        'riskScore' => '',
        'threeDSVersion' => '',
        'tokenAuthenticationVerificationValue' => '',
        'transStatusReason' => '',
        'xid' => ''
    ],
    'originalMerchantReference' => '',
    'originalReference' => '',
    'platformChargebackLogic' => [
        'behavior' => '',
        'costAllocationAccount' => '',
        'targetAccount' => ''
    ],
    'reference' => '',
    'splits' => [
        [
                'account' => '',
                'amount' => [
                                'currency' => '',
                                'value' => 0
                ],
                'description' => '',
                'reference' => '',
                'type' => ''
        ]
    ],
    'tenderReference' => '',
    'uniqueTerminalId' => ''
  ]),
  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}}/refund', [
  'body' => '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalData' => [
    
  ],
  'merchantAccount' => '',
  'modificationAmount' => [
    'currency' => '',
    'value' => 0
  ],
  'mpiData' => [
    'authenticationResponse' => '',
    'cavv' => '',
    'cavvAlgorithm' => '',
    'challengeCancel' => '',
    'directoryResponse' => '',
    'dsTransID' => '',
    'eci' => '',
    'riskScore' => '',
    'threeDSVersion' => '',
    'tokenAuthenticationVerificationValue' => '',
    'transStatusReason' => '',
    'xid' => ''
  ],
  'originalMerchantReference' => '',
  'originalReference' => '',
  'platformChargebackLogic' => [
    'behavior' => '',
    'costAllocationAccount' => '',
    'targetAccount' => ''
  ],
  'reference' => '',
  'splits' => [
    [
        'account' => '',
        'amount' => [
                'currency' => '',
                'value' => 0
        ],
        'description' => '',
        'reference' => '',
        'type' => ''
    ]
  ],
  'tenderReference' => '',
  'uniqueTerminalId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/refund');
$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}}/refund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/refund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
import http.client

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

payload = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/refund"

payload = {
    "additionalData": {},
    "merchantAccount": "",
    "modificationAmount": {
        "currency": "",
        "value": 0
    },
    "mpiData": {
        "authenticationResponse": "",
        "cavv": "",
        "cavvAlgorithm": "",
        "challengeCancel": "",
        "directoryResponse": "",
        "dsTransID": "",
        "eci": "",
        "riskScore": "",
        "threeDSVersion": "",
        "tokenAuthenticationVerificationValue": "",
        "transStatusReason": "",
        "xid": ""
    },
    "originalMerchantReference": "",
    "originalReference": "",
    "platformChargebackLogic": {
        "behavior": "",
        "costAllocationAccount": "",
        "targetAccount": ""
    },
    "reference": "",
    "splits": [
        {
            "account": "",
            "amount": {
                "currency": "",
                "value": 0
            },
            "description": "",
            "reference": "",
            "type": ""
        }
    ],
    "tenderReference": "",
    "uniqueTerminalId": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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}}/refund")

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  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\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/refund') do |req|
  req.body = "{\n  \"additionalData\": {},\n  \"merchantAccount\": \"\",\n  \"modificationAmount\": {\n    \"currency\": \"\",\n    \"value\": 0\n  },\n  \"mpiData\": {\n    \"authenticationResponse\": \"\",\n    \"cavv\": \"\",\n    \"cavvAlgorithm\": \"\",\n    \"challengeCancel\": \"\",\n    \"directoryResponse\": \"\",\n    \"dsTransID\": \"\",\n    \"eci\": \"\",\n    \"riskScore\": \"\",\n    \"threeDSVersion\": \"\",\n    \"tokenAuthenticationVerificationValue\": \"\",\n    \"transStatusReason\": \"\",\n    \"xid\": \"\"\n  },\n  \"originalMerchantReference\": \"\",\n  \"originalReference\": \"\",\n  \"platformChargebackLogic\": {\n    \"behavior\": \"\",\n    \"costAllocationAccount\": \"\",\n    \"targetAccount\": \"\"\n  },\n  \"reference\": \"\",\n  \"splits\": [\n    {\n      \"account\": \"\",\n      \"amount\": {\n        \"currency\": \"\",\n        \"value\": 0\n      },\n      \"description\": \"\",\n      \"reference\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"tenderReference\": \"\",\n  \"uniqueTerminalId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalData": json!({}),
        "merchantAccount": "",
        "modificationAmount": json!({
            "currency": "",
            "value": 0
        }),
        "mpiData": json!({
            "authenticationResponse": "",
            "cavv": "",
            "cavvAlgorithm": "",
            "challengeCancel": "",
            "directoryResponse": "",
            "dsTransID": "",
            "eci": "",
            "riskScore": "",
            "threeDSVersion": "",
            "tokenAuthenticationVerificationValue": "",
            "transStatusReason": "",
            "xid": ""
        }),
        "originalMerchantReference": "",
        "originalReference": "",
        "platformChargebackLogic": json!({
            "behavior": "",
            "costAllocationAccount": "",
            "targetAccount": ""
        }),
        "reference": "",
        "splits": (
            json!({
                "account": "",
                "amount": json!({
                    "currency": "",
                    "value": 0
                }),
                "description": "",
                "reference": "",
                "type": ""
            })
        ),
        "tenderReference": "",
        "uniqueTerminalId": ""
    });

    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}}/refund \
  --header 'content-type: application/json' \
  --data '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}'
echo '{
  "additionalData": {},
  "merchantAccount": "",
  "modificationAmount": {
    "currency": "",
    "value": 0
  },
  "mpiData": {
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  },
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": {
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  },
  "reference": "",
  "splits": [
    {
      "account": "",
      "amount": {
        "currency": "",
        "value": 0
      },
      "description": "",
      "reference": "",
      "type": ""
    }
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
}' |  \
  http POST {{baseUrl}}/refund \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalData": {},\n  "merchantAccount": "",\n  "modificationAmount": {\n    "currency": "",\n    "value": 0\n  },\n  "mpiData": {\n    "authenticationResponse": "",\n    "cavv": "",\n    "cavvAlgorithm": "",\n    "challengeCancel": "",\n    "directoryResponse": "",\n    "dsTransID": "",\n    "eci": "",\n    "riskScore": "",\n    "threeDSVersion": "",\n    "tokenAuthenticationVerificationValue": "",\n    "transStatusReason": "",\n    "xid": ""\n  },\n  "originalMerchantReference": "",\n  "originalReference": "",\n  "platformChargebackLogic": {\n    "behavior": "",\n    "costAllocationAccount": "",\n    "targetAccount": ""\n  },\n  "reference": "",\n  "splits": [\n    {\n      "account": "",\n      "amount": {\n        "currency": "",\n        "value": 0\n      },\n      "description": "",\n      "reference": "",\n      "type": ""\n    }\n  ],\n  "tenderReference": "",\n  "uniqueTerminalId": ""\n}' \
  --output-document \
  - {{baseUrl}}/refund
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalData": [],
  "merchantAccount": "",
  "modificationAmount": [
    "currency": "",
    "value": 0
  ],
  "mpiData": [
    "authenticationResponse": "",
    "cavv": "",
    "cavvAlgorithm": "",
    "challengeCancel": "",
    "directoryResponse": "",
    "dsTransID": "",
    "eci": "",
    "riskScore": "",
    "threeDSVersion": "",
    "tokenAuthenticationVerificationValue": "",
    "transStatusReason": "",
    "xid": ""
  ],
  "originalMerchantReference": "",
  "originalReference": "",
  "platformChargebackLogic": [
    "behavior": "",
    "costAllocationAccount": "",
    "targetAccount": ""
  ],
  "reference": "",
  "splits": [
    [
      "account": "",
      "amount": [
        "currency": "",
        "value": 0
      ],
      "description": "",
      "reference": "",
      "type": ""
    ]
  ],
  "tenderReference": "",
  "uniqueTerminalId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/refund")! 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": "861617892360059B",
  "response": "[refund-received]"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "702",
  "errorType": "validation",
  "message": "Unexpected input: \", expected: }",
  "status": 400
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "000",
  "errorType": "security",
  "message": "HTTP Status Response - Unauthorized",
  "status": 401
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "errorCode": "905",
  "errorType": "configuration",
  "message": "Payment details are not supported",
  "pspReference": "8516091485743033",
  "status": 500
}