POST Authorize Transaction
{{baseUrl}}/auth
BODY json

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");

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

(client/post "{{baseUrl}}/auth" {:content-type :json
                                                 :form-params {:amt_convenience_fee ""
                                                               :amt_fbo ""
                                                               :amt_tax ""
                                                               :amt_tran ""
                                                               :amt_tran_fee ""
                                                               :auth_code ""
                                                               :avs_address ""
                                                               :avs_zip ""
                                                               :card_id ""
                                                               :card_number ""
                                                               :card_swipe ""
                                                               :cardholder_name ""
                                                               :cavv_3ds ""
                                                               :client_ip ""
                                                               :customer {:billing_addr1 ""
                                                                          :billing_addr2 ""
                                                                          :billing_city ""
                                                                          :billing_country ""
                                                                          :billing_country_code ""
                                                                          :billing_state ""
                                                                          :billing_zip ""
                                                                          :billing_zip4 ""
                                                                          :customer_email ""
                                                                          :customer_firm_name ""
                                                                          :customer_first_name ""
                                                                          :customer_last_name ""
                                                                          :customer_phone ""
                                                                          :shipping_addresses [{:primary false
                                                                                                :shipping_addr1 ""
                                                                                                :shipping_addr2 ""
                                                                                                :shipping_city ""
                                                                                                :shipping_country ""
                                                                                                :shipping_country_code ""
                                                                                                :shipping_firm_name ""
                                                                                                :shipping_first_name ""
                                                                                                :shipping_last_name ""
                                                                                                :shipping_state ""
                                                                                                :shipping_zip ""
                                                                                                :shipping_zip4 ""}]}
                                                               :customer_code ""
                                                               :customer_email ""
                                                               :customer_id ""
                                                               :cvv2 ""
                                                               :dba_name ""
                                                               :dba_suffix ""
                                                               :dda_number ""
                                                               :developer_id ""
                                                               :duplicate_seconds 0
                                                               :echo_fields ""
                                                               :email_address []
                                                               :email_receipt false
                                                               :emv_tran_id ""
                                                               :exp_date ""
                                                               :fbo_id 0
                                                               :line_items ""
                                                               :loc_id ""
                                                               :mc_ucaf_data ""
                                                               :mc_ucaf_ind ""
                                                               :merch_ref_num ""
                                                               :merchant_id 0
                                                               :moto_ecomm_ind ""
                                                               :partial_auth false
                                                               :payload_apple_pay ""
                                                               :payload_google_pay ""
                                                               :pg_id ""
                                                               :profile_id ""
                                                               :purchase_id ""
                                                               :report_data ""
                                                               :retry_attempt 0
                                                               :retry_id 0
                                                               :session_id ""
                                                               :subscription_id 0
                                                               :tokenize false
                                                               :tr_number ""
                                                               :tran_currency 0
                                                               :type_id ""
                                                               :user_id 0
                                                               :vendor_id 0
                                                               :xid_3ds ""}})
require "http/client"

url = "{{baseUrl}}/auth"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/auth"),
    Content = new StringContent("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/auth");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/auth HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1902

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/auth")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/auth"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/auth")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/auth")
  .header("content-type", "application/json")
  .body("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/auth',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/auth';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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}}/auth',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/auth")
  .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/auth',
  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({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/auth',
  headers: {'content-type': 'application/json'},
  body: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  },
  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}}/auth');

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

req.type('json');
req.send({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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}}/auth',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

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

const url = '{{baseUrl}}/auth';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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 = @{ @"amt_convenience_fee": @"",
                              @"amt_fbo": @"",
                              @"amt_tax": @"",
                              @"amt_tran": @"",
                              @"amt_tran_fee": @"",
                              @"auth_code": @"",
                              @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"cavv_3ds": @"",
                              @"client_ip": @"",
                              @"customer": @{ @"billing_addr1": @"", @"billing_addr2": @"", @"billing_city": @"", @"billing_country": @"", @"billing_country_code": @"", @"billing_state": @"", @"billing_zip": @"", @"billing_zip4": @"", @"customer_email": @"", @"customer_firm_name": @"", @"customer_first_name": @"", @"customer_last_name": @"", @"customer_phone": @"", @"shipping_addresses": @[ @{ @"primary": @NO, @"shipping_addr1": @"", @"shipping_addr2": @"", @"shipping_city": @"", @"shipping_country": @"", @"shipping_country_code": @"", @"shipping_firm_name": @"", @"shipping_first_name": @"", @"shipping_last_name": @"", @"shipping_state": @"", @"shipping_zip": @"", @"shipping_zip4": @"" } ] },
                              @"customer_code": @"",
                              @"customer_email": @"",
                              @"customer_id": @"",
                              @"cvv2": @"",
                              @"dba_name": @"",
                              @"dba_suffix": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"duplicate_seconds": @0,
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"email_receipt": @NO,
                              @"emv_tran_id": @"",
                              @"exp_date": @"",
                              @"fbo_id": @0,
                              @"line_items": @"",
                              @"loc_id": @"",
                              @"mc_ucaf_data": @"",
                              @"mc_ucaf_ind": @"",
                              @"merch_ref_num": @"",
                              @"merchant_id": @0,
                              @"moto_ecomm_ind": @"",
                              @"partial_auth": @NO,
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"pg_id": @"",
                              @"profile_id": @"",
                              @"purchase_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"subscription_id": @0,
                              @"tokenize": @NO,
                              @"tr_number": @"",
                              @"tran_currency": @0,
                              @"type_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0,
                              @"xid_3ds": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/auth"]
                                                       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}}/auth" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/auth",
  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([
    'amt_convenience_fee' => '',
    'amt_fbo' => '',
    'amt_tax' => '',
    'amt_tran' => '',
    'amt_tran_fee' => '',
    'auth_code' => '',
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'cavv_3ds' => '',
    'client_ip' => '',
    'customer' => [
        'billing_addr1' => '',
        'billing_addr2' => '',
        'billing_city' => '',
        'billing_country' => '',
        'billing_country_code' => '',
        'billing_state' => '',
        'billing_zip' => '',
        'billing_zip4' => '',
        'customer_email' => '',
        'customer_firm_name' => '',
        'customer_first_name' => '',
        'customer_last_name' => '',
        'customer_phone' => '',
        'shipping_addresses' => [
                [
                                'primary' => null,
                                'shipping_addr1' => '',
                                'shipping_addr2' => '',
                                'shipping_city' => '',
                                'shipping_country' => '',
                                'shipping_country_code' => '',
                                'shipping_firm_name' => '',
                                'shipping_first_name' => '',
                                'shipping_last_name' => '',
                                'shipping_state' => '',
                                'shipping_zip' => '',
                                'shipping_zip4' => ''
                ]
        ]
    ],
    'customer_code' => '',
    'customer_email' => '',
    'customer_id' => '',
    'cvv2' => '',
    'dba_name' => '',
    'dba_suffix' => '',
    'dda_number' => '',
    'developer_id' => '',
    'duplicate_seconds' => 0,
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'email_receipt' => null,
    'emv_tran_id' => '',
    'exp_date' => '',
    'fbo_id' => 0,
    'line_items' => '',
    'loc_id' => '',
    'mc_ucaf_data' => '',
    'mc_ucaf_ind' => '',
    'merch_ref_num' => '',
    'merchant_id' => 0,
    'moto_ecomm_ind' => '',
    'partial_auth' => null,
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'pg_id' => '',
    'profile_id' => '',
    'purchase_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'subscription_id' => 0,
    'tokenize' => null,
    'tr_number' => '',
    'tran_currency' => 0,
    'type_id' => '',
    'user_id' => 0,
    'vendor_id' => 0,
    'xid_3ds' => ''
  ]),
  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}}/auth', [
  'body' => '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));
$request->setRequestUrl('{{baseUrl}}/auth');
$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}}/auth' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/auth' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
import http.client

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

payload = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/auth"

payload = {
    "amt_convenience_fee": "",
    "amt_fbo": "",
    "amt_tax": "",
    "amt_tran": "",
    "amt_tran_fee": "",
    "auth_code": "",
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "cavv_3ds": "",
    "client_ip": "",
    "customer": {
        "billing_addr1": "",
        "billing_addr2": "",
        "billing_city": "",
        "billing_country": "",
        "billing_country_code": "",
        "billing_state": "",
        "billing_zip": "",
        "billing_zip4": "",
        "customer_email": "",
        "customer_firm_name": "",
        "customer_first_name": "",
        "customer_last_name": "",
        "customer_phone": "",
        "shipping_addresses": [
            {
                "primary": False,
                "shipping_addr1": "",
                "shipping_addr2": "",
                "shipping_city": "",
                "shipping_country": "",
                "shipping_country_code": "",
                "shipping_firm_name": "",
                "shipping_first_name": "",
                "shipping_last_name": "",
                "shipping_state": "",
                "shipping_zip": "",
                "shipping_zip4": ""
            }
        ]
    },
    "customer_code": "",
    "customer_email": "",
    "customer_id": "",
    "cvv2": "",
    "dba_name": "",
    "dba_suffix": "",
    "dda_number": "",
    "developer_id": "",
    "duplicate_seconds": 0,
    "echo_fields": "",
    "email_address": [],
    "email_receipt": False,
    "emv_tran_id": "",
    "exp_date": "",
    "fbo_id": 0,
    "line_items": "",
    "loc_id": "",
    "mc_ucaf_data": "",
    "mc_ucaf_ind": "",
    "merch_ref_num": "",
    "merchant_id": 0,
    "moto_ecomm_ind": "",
    "partial_auth": False,
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "pg_id": "",
    "profile_id": "",
    "purchase_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "subscription_id": 0,
    "tokenize": False,
    "tr_number": "",
    "tran_currency": 0,
    "type_id": "",
    "user_id": 0,
    "vendor_id": 0,
    "xid_3ds": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/auth")

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/auth') do |req|
  req.body = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"
end

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

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

    let payload = json!({
        "amt_convenience_fee": "",
        "amt_fbo": "",
        "amt_tax": "",
        "amt_tran": "",
        "amt_tran_fee": "",
        "auth_code": "",
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "cavv_3ds": "",
        "client_ip": "",
        "customer": json!({
            "billing_addr1": "",
            "billing_addr2": "",
            "billing_city": "",
            "billing_country": "",
            "billing_country_code": "",
            "billing_state": "",
            "billing_zip": "",
            "billing_zip4": "",
            "customer_email": "",
            "customer_firm_name": "",
            "customer_first_name": "",
            "customer_last_name": "",
            "customer_phone": "",
            "shipping_addresses": (
                json!({
                    "primary": false,
                    "shipping_addr1": "",
                    "shipping_addr2": "",
                    "shipping_city": "",
                    "shipping_country": "",
                    "shipping_country_code": "",
                    "shipping_firm_name": "",
                    "shipping_first_name": "",
                    "shipping_last_name": "",
                    "shipping_state": "",
                    "shipping_zip": "",
                    "shipping_zip4": ""
                })
            )
        }),
        "customer_code": "",
        "customer_email": "",
        "customer_id": "",
        "cvv2": "",
        "dba_name": "",
        "dba_suffix": "",
        "dda_number": "",
        "developer_id": "",
        "duplicate_seconds": 0,
        "echo_fields": "",
        "email_address": (),
        "email_receipt": false,
        "emv_tran_id": "",
        "exp_date": "",
        "fbo_id": 0,
        "line_items": "",
        "loc_id": "",
        "mc_ucaf_data": "",
        "mc_ucaf_ind": "",
        "merch_ref_num": "",
        "merchant_id": 0,
        "moto_ecomm_ind": "",
        "partial_auth": false,
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "pg_id": "",
        "profile_id": "",
        "purchase_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "subscription_id": 0,
        "tokenize": false,
        "tr_number": "",
        "tran_currency": 0,
        "type_id": "",
        "user_id": 0,
        "vendor_id": 0,
        "xid_3ds": ""
    });

    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}}/auth \
  --header 'content-type: application/json' \
  --data '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
echo '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}' |  \
  http POST {{baseUrl}}/auth \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}' \
  --output-document \
  - {{baseUrl}}/auth
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": [
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      [
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      ]
    ]
  ],
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
] as [String : Any]

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

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

{
  "amt_tran": 62.87,
  "auth_avs_result": "X",
  "auth_code": "T37500",
  "auth_cvv2_result": "M",
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "merchant_advice_code": "M001",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Capture an Authorized Transaction
{{baseUrl}}/capture/:pgIdOrig
QUERY PARAMS

pgIdOrig
BODY json

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/capture/:pgIdOrig" {:content-type :json
                                                              :form-params {:amt_tran ""
                                                                            :developer_id ""
                                                                            :echo_fields ""
                                                                            :loc_id ""
                                                                            :merchant_id 0
                                                                            :profile_id ""
                                                                            :report_data ""
                                                                            :retry_attempt 0
                                                                            :retry_id 0
                                                                            :session_id ""
                                                                            :user_id 0
                                                                            :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/capture/:pgIdOrig"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/capture/:pgIdOrig"),
    Content = new StringContent("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/capture/:pgIdOrig");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

}
POST /baseUrl/capture/:pgIdOrig HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 233

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/capture/:pgIdOrig")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/capture/:pgIdOrig"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/capture/:pgIdOrig")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/capture/:pgIdOrig")
  .header("content-type", "application/json")
  .body("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/capture/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/capture/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/capture/:pgIdOrig',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/capture/:pgIdOrig")
  .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/:pgIdOrig',
  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({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/capture/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  body: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/capture/:pgIdOrig');

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

req.type('json');
req.send({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/capture/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/capture/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amt_tran": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/capture/:pgIdOrig"]
                                                       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/:pgIdOrig" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/capture/:pgIdOrig",
  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([
    'amt_tran' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'user_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/capture/:pgIdOrig', [
  'body' => '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/capture/:pgIdOrig');
$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/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/capture/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
import http.client

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

payload = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

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

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

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

payload = {
    "amt_tran": "",
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "user_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/capture/:pgIdOrig")

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/capture/:pgIdOrig') do |req|
  req.body = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "amt_tran": "",
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "user_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/capture/:pgIdOrig \
  --header 'content-type: application/json' \
  --data '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
echo '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/capture/:pgIdOrig \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/capture/:pgIdOrig
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Capture request accepted"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Close Batch
{{baseUrl}}/batchClose
BODY json

{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}");

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

(client/post "{{baseUrl}}/batchClose" {:content-type :json
                                                       :form-params {:developer_id ""
                                                                     :echo_fields ""
                                                                     :loc_id ""
                                                                     :merchant_id 0
                                                                     :profile_id ""
                                                                     :report_data ""
                                                                     :retry_attempt 0
                                                                     :retry_id 0
                                                                     :session_id ""
                                                                     :tran_currency 0
                                                                     :user_id 0}})
require "http/client"

url = "{{baseUrl}}/batchClose"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/batchClose"),
    Content = new StringContent("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/batchClose");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}")

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

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

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

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

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

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

{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/batchClose")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/batchClose"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/batchClose")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/batchClose")
  .header("content-type", "application/json")
  .body("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tran_currency: 0,
  user_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/batchClose',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tran_currency: 0,
    user_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/batchClose';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","tran_currency":0,"user_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/batchClose',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "tran_currency": 0,\n  "user_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/batchClose")
  .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/batchClose',
  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({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tran_currency: 0,
  user_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/batchClose',
  headers: {'content-type': 'application/json'},
  body: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tran_currency: 0,
    user_id: 0
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tran_currency: 0,
  user_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/batchClose',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tran_currency: 0,
    user_id: 0
  }
};

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

const url = '{{baseUrl}}/batchClose';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","tran_currency":0,"user_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"tran_currency": @0,
                              @"user_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/batchClose"]
                                                       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}}/batchClose" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/batchClose",
  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([
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'tran_currency' => 0,
    'user_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/batchClose', [
  'body' => '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'tran_currency' => 0,
  'user_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'tran_currency' => 0,
  'user_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/batchClose');
$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}}/batchClose' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/batchClose' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}'
import http.client

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

payload = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/batchClose"

payload = {
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "tran_currency": 0,
    "user_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"

encode <- "json"

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

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

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

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  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"

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

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

response = conn.post('/baseUrl/batchClose') do |req|
  req.body = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tran_currency\": 0,\n  \"user_id\": 0\n}"
end

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

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

    let payload = json!({
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "tran_currency": 0,
        "user_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/batchClose \
  --header 'content-type: application/json' \
  --data '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}'
echo '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
}' |  \
  http POST {{baseUrl}}/batchClose \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "tran_currency": 0,\n  "user_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/batchClose
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tran_currency": 0,
  "user_id": 0
] as [String : Any]

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

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

{
  "batch_info": "[{\"profile_id\":\"97100001000300000978\",\"comment\":\"batch close failure; please try again\"},{\"profile_id\":\"97100001000300000124\",\"batch _number\":11, \"cnt_total\":12,\"amt_total\":- 588.15, \"tran_currency\":\"124\"}]",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Expire Token
{{baseUrl}}/expireToken
BODY json

{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/expireToken" {:content-type :json
                                                        :form-params {:card_id ""
                                                                      :developer_id ""
                                                                      :echo_fields ""
                                                                      :loc_id ""
                                                                      :merchant_id 0
                                                                      :profile_id ""
                                                                      :report_data ""
                                                                      :retry_attempt 0
                                                                      :retry_id 0
                                                                      :session_id ""
                                                                      :user_id 0
                                                                      :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/expireToken"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/expireToken"),
    Content = new StringContent("{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/expireToken");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

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

{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/expireToken")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/expireToken"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/expireToken")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/expireToken")
  .header("content-type", "application/json")
  .body("{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  card_id: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/expireToken',
  headers: {'content-type': 'application/json'},
  data: {
    card_id: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/expireToken';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_id":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/expireToken',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "card_id": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/expireToken")
  .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/expireToken',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  card_id: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/expireToken',
  headers: {'content-type': 'application/json'},
  body: {
    card_id: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  card_id: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/expireToken',
  headers: {'content-type': 'application/json'},
  data: {
    card_id: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/expireToken';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_id":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"card_id": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/expireToken"]
                                                       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}}/expireToken" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/expireToken",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'card_id' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'user_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/expireToken', [
  'body' => '{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'card_id' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'card_id' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/expireToken');
$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}}/expireToken' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/expireToken' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
import http.client

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

payload = "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/expireToken"

payload = {
    "card_id": "",
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "user_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/expireToken') do |req|
  req.body = "{\n  \"card_id\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "card_id": "",
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "user_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/expireToken \
  --header 'content-type: application/json' \
  --data '{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
echo '{
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/expireToken \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "card_id": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/expireToken
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "card_id": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Token removed"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Force Transaction Approval
{{baseUrl}}/force
BODY json

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");

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

(client/post "{{baseUrl}}/force" {:content-type :json
                                                  :form-params {:amt_convenience_fee ""
                                                                :amt_fbo ""
                                                                :amt_tax ""
                                                                :amt_tran ""
                                                                :amt_tran_fee ""
                                                                :auth_code ""
                                                                :avs_address ""
                                                                :avs_zip ""
                                                                :card_id ""
                                                                :card_number ""
                                                                :card_swipe ""
                                                                :cardholder_name ""
                                                                :cavv_3ds ""
                                                                :client_ip ""
                                                                :customer {:billing_addr1 ""
                                                                           :billing_addr2 ""
                                                                           :billing_city ""
                                                                           :billing_country ""
                                                                           :billing_country_code ""
                                                                           :billing_state ""
                                                                           :billing_zip ""
                                                                           :billing_zip4 ""
                                                                           :customer_email ""
                                                                           :customer_firm_name ""
                                                                           :customer_first_name ""
                                                                           :customer_last_name ""
                                                                           :customer_phone ""
                                                                           :shipping_addresses [{:primary false
                                                                                                 :shipping_addr1 ""
                                                                                                 :shipping_addr2 ""
                                                                                                 :shipping_city ""
                                                                                                 :shipping_country ""
                                                                                                 :shipping_country_code ""
                                                                                                 :shipping_firm_name ""
                                                                                                 :shipping_first_name ""
                                                                                                 :shipping_last_name ""
                                                                                                 :shipping_state ""
                                                                                                 :shipping_zip ""
                                                                                                 :shipping_zip4 ""}]}
                                                                :customer_code ""
                                                                :customer_email ""
                                                                :customer_id ""
                                                                :cvv2 ""
                                                                :dba_name ""
                                                                :dba_suffix ""
                                                                :dda_number ""
                                                                :developer_id ""
                                                                :duplicate_seconds 0
                                                                :echo_fields ""
                                                                :email_address []
                                                                :email_receipt false
                                                                :emv_tran_id ""
                                                                :exp_date ""
                                                                :fbo_id 0
                                                                :line_items ""
                                                                :loc_id ""
                                                                :mc_ucaf_data ""
                                                                :mc_ucaf_ind ""
                                                                :merch_ref_num ""
                                                                :merchant_id 0
                                                                :moto_ecomm_ind ""
                                                                :partial_auth false
                                                                :payload_apple_pay ""
                                                                :payload_google_pay ""
                                                                :pg_id ""
                                                                :profile_id ""
                                                                :purchase_id ""
                                                                :report_data ""
                                                                :retry_attempt 0
                                                                :retry_id 0
                                                                :session_id ""
                                                                :subscription_id 0
                                                                :tokenize false
                                                                :tr_number ""
                                                                :tran_currency 0
                                                                :type_id ""
                                                                :user_id 0
                                                                :vendor_id 0
                                                                :xid_3ds ""}})
require "http/client"

url = "{{baseUrl}}/force"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/force"),
    Content = new StringContent("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/force");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/force HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1902

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/force")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/force"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/force")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/force")
  .header("content-type", "application/json")
  .body("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/force',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/force';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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}}/force',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/force")
  .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/force',
  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({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/force',
  headers: {'content-type': 'application/json'},
  body: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  },
  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}}/force');

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

req.type('json');
req.send({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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}}/force',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

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

const url = '{{baseUrl}}/force';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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 = @{ @"amt_convenience_fee": @"",
                              @"amt_fbo": @"",
                              @"amt_tax": @"",
                              @"amt_tran": @"",
                              @"amt_tran_fee": @"",
                              @"auth_code": @"",
                              @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"cavv_3ds": @"",
                              @"client_ip": @"",
                              @"customer": @{ @"billing_addr1": @"", @"billing_addr2": @"", @"billing_city": @"", @"billing_country": @"", @"billing_country_code": @"", @"billing_state": @"", @"billing_zip": @"", @"billing_zip4": @"", @"customer_email": @"", @"customer_firm_name": @"", @"customer_first_name": @"", @"customer_last_name": @"", @"customer_phone": @"", @"shipping_addresses": @[ @{ @"primary": @NO, @"shipping_addr1": @"", @"shipping_addr2": @"", @"shipping_city": @"", @"shipping_country": @"", @"shipping_country_code": @"", @"shipping_firm_name": @"", @"shipping_first_name": @"", @"shipping_last_name": @"", @"shipping_state": @"", @"shipping_zip": @"", @"shipping_zip4": @"" } ] },
                              @"customer_code": @"",
                              @"customer_email": @"",
                              @"customer_id": @"",
                              @"cvv2": @"",
                              @"dba_name": @"",
                              @"dba_suffix": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"duplicate_seconds": @0,
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"email_receipt": @NO,
                              @"emv_tran_id": @"",
                              @"exp_date": @"",
                              @"fbo_id": @0,
                              @"line_items": @"",
                              @"loc_id": @"",
                              @"mc_ucaf_data": @"",
                              @"mc_ucaf_ind": @"",
                              @"merch_ref_num": @"",
                              @"merchant_id": @0,
                              @"moto_ecomm_ind": @"",
                              @"partial_auth": @NO,
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"pg_id": @"",
                              @"profile_id": @"",
                              @"purchase_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"subscription_id": @0,
                              @"tokenize": @NO,
                              @"tr_number": @"",
                              @"tran_currency": @0,
                              @"type_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0,
                              @"xid_3ds": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/force"]
                                                       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}}/force" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/force",
  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([
    'amt_convenience_fee' => '',
    'amt_fbo' => '',
    'amt_tax' => '',
    'amt_tran' => '',
    'amt_tran_fee' => '',
    'auth_code' => '',
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'cavv_3ds' => '',
    'client_ip' => '',
    'customer' => [
        'billing_addr1' => '',
        'billing_addr2' => '',
        'billing_city' => '',
        'billing_country' => '',
        'billing_country_code' => '',
        'billing_state' => '',
        'billing_zip' => '',
        'billing_zip4' => '',
        'customer_email' => '',
        'customer_firm_name' => '',
        'customer_first_name' => '',
        'customer_last_name' => '',
        'customer_phone' => '',
        'shipping_addresses' => [
                [
                                'primary' => null,
                                'shipping_addr1' => '',
                                'shipping_addr2' => '',
                                'shipping_city' => '',
                                'shipping_country' => '',
                                'shipping_country_code' => '',
                                'shipping_firm_name' => '',
                                'shipping_first_name' => '',
                                'shipping_last_name' => '',
                                'shipping_state' => '',
                                'shipping_zip' => '',
                                'shipping_zip4' => ''
                ]
        ]
    ],
    'customer_code' => '',
    'customer_email' => '',
    'customer_id' => '',
    'cvv2' => '',
    'dba_name' => '',
    'dba_suffix' => '',
    'dda_number' => '',
    'developer_id' => '',
    'duplicate_seconds' => 0,
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'email_receipt' => null,
    'emv_tran_id' => '',
    'exp_date' => '',
    'fbo_id' => 0,
    'line_items' => '',
    'loc_id' => '',
    'mc_ucaf_data' => '',
    'mc_ucaf_ind' => '',
    'merch_ref_num' => '',
    'merchant_id' => 0,
    'moto_ecomm_ind' => '',
    'partial_auth' => null,
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'pg_id' => '',
    'profile_id' => '',
    'purchase_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'subscription_id' => 0,
    'tokenize' => null,
    'tr_number' => '',
    'tran_currency' => 0,
    'type_id' => '',
    'user_id' => 0,
    'vendor_id' => 0,
    'xid_3ds' => ''
  ]),
  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}}/force', [
  'body' => '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));
$request->setRequestUrl('{{baseUrl}}/force');
$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}}/force' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/force' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
import http.client

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

payload = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/force"

payload = {
    "amt_convenience_fee": "",
    "amt_fbo": "",
    "amt_tax": "",
    "amt_tran": "",
    "amt_tran_fee": "",
    "auth_code": "",
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "cavv_3ds": "",
    "client_ip": "",
    "customer": {
        "billing_addr1": "",
        "billing_addr2": "",
        "billing_city": "",
        "billing_country": "",
        "billing_country_code": "",
        "billing_state": "",
        "billing_zip": "",
        "billing_zip4": "",
        "customer_email": "",
        "customer_firm_name": "",
        "customer_first_name": "",
        "customer_last_name": "",
        "customer_phone": "",
        "shipping_addresses": [
            {
                "primary": False,
                "shipping_addr1": "",
                "shipping_addr2": "",
                "shipping_city": "",
                "shipping_country": "",
                "shipping_country_code": "",
                "shipping_firm_name": "",
                "shipping_first_name": "",
                "shipping_last_name": "",
                "shipping_state": "",
                "shipping_zip": "",
                "shipping_zip4": ""
            }
        ]
    },
    "customer_code": "",
    "customer_email": "",
    "customer_id": "",
    "cvv2": "",
    "dba_name": "",
    "dba_suffix": "",
    "dda_number": "",
    "developer_id": "",
    "duplicate_seconds": 0,
    "echo_fields": "",
    "email_address": [],
    "email_receipt": False,
    "emv_tran_id": "",
    "exp_date": "",
    "fbo_id": 0,
    "line_items": "",
    "loc_id": "",
    "mc_ucaf_data": "",
    "mc_ucaf_ind": "",
    "merch_ref_num": "",
    "merchant_id": 0,
    "moto_ecomm_ind": "",
    "partial_auth": False,
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "pg_id": "",
    "profile_id": "",
    "purchase_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "subscription_id": 0,
    "tokenize": False,
    "tr_number": "",
    "tran_currency": 0,
    "type_id": "",
    "user_id": 0,
    "vendor_id": 0,
    "xid_3ds": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/force")

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/force') do |req|
  req.body = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"
end

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

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

    let payload = json!({
        "amt_convenience_fee": "",
        "amt_fbo": "",
        "amt_tax": "",
        "amt_tran": "",
        "amt_tran_fee": "",
        "auth_code": "",
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "cavv_3ds": "",
        "client_ip": "",
        "customer": json!({
            "billing_addr1": "",
            "billing_addr2": "",
            "billing_city": "",
            "billing_country": "",
            "billing_country_code": "",
            "billing_state": "",
            "billing_zip": "",
            "billing_zip4": "",
            "customer_email": "",
            "customer_firm_name": "",
            "customer_first_name": "",
            "customer_last_name": "",
            "customer_phone": "",
            "shipping_addresses": (
                json!({
                    "primary": false,
                    "shipping_addr1": "",
                    "shipping_addr2": "",
                    "shipping_city": "",
                    "shipping_country": "",
                    "shipping_country_code": "",
                    "shipping_firm_name": "",
                    "shipping_first_name": "",
                    "shipping_last_name": "",
                    "shipping_state": "",
                    "shipping_zip": "",
                    "shipping_zip4": ""
                })
            )
        }),
        "customer_code": "",
        "customer_email": "",
        "customer_id": "",
        "cvv2": "",
        "dba_name": "",
        "dba_suffix": "",
        "dda_number": "",
        "developer_id": "",
        "duplicate_seconds": 0,
        "echo_fields": "",
        "email_address": (),
        "email_receipt": false,
        "emv_tran_id": "",
        "exp_date": "",
        "fbo_id": 0,
        "line_items": "",
        "loc_id": "",
        "mc_ucaf_data": "",
        "mc_ucaf_ind": "",
        "merch_ref_num": "",
        "merchant_id": 0,
        "moto_ecomm_ind": "",
        "partial_auth": false,
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "pg_id": "",
        "profile_id": "",
        "purchase_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "subscription_id": 0,
        "tokenize": false,
        "tr_number": "",
        "tran_currency": 0,
        "type_id": "",
        "user_id": 0,
        "vendor_id": 0,
        "xid_3ds": ""
    });

    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}}/force \
  --header 'content-type: application/json' \
  --data '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
echo '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}' |  \
  http POST {{baseUrl}}/force \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}' \
  --output-document \
  - {{baseUrl}}/force
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": [
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      [
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      ]
    ]
  ],
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
] as [String : Any]

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

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

{
  "amt_tran": 62.87,
  "auth_avs_result": "X",
  "auth_code": "T37500",
  "auth_cvv2_result": "M",
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "merchant_advice_code": "M001",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Get Card type Information for Visa, Mastercard, and Discover
{{baseUrl}}/ardef
BODY json

{
  "card_number": "",
  "merchant_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}");

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

(client/post "{{baseUrl}}/ardef" {:content-type :json
                                                  :form-params {:card_number ""
                                                                :merchant_id 0}})
require "http/client"

url = "{{baseUrl}}/ardef"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ardef"),
    Content = new StringContent("{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ardef");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}")

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

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

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

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

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

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ardef"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ardef")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ardef',
  headers: {'content-type': 'application/json'},
  data: {card_number: '', merchant_id: 0}
};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ardef',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "card_number": "",\n  "merchant_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ardef")
  .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/ardef',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({card_number: '', merchant_id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ardef',
  headers: {'content-type': 'application/json'},
  body: {card_number: '', merchant_id: 0},
  json: true
};

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

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

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

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

req.type('json');
req.send({
  card_number: '',
  merchant_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ardef',
  headers: {'content-type': 'application/json'},
  data: {card_number: '', merchant_id: 0}
};

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

const url = '{{baseUrl}}/ardef';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"card_number":"","merchant_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"card_number": @"",
                              @"merchant_id": @0 };

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

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

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ardef",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'card_number' => '',
    'merchant_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ardef', [
  'body' => '{
  "card_number": "",
  "merchant_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'card_number' => '',
  'merchant_id' => 0
]));

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

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

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

payload = "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/ardef"

payload = {
    "card_number": "",
    "merchant_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"

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

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

response = conn.post('/baseUrl/ardef') do |req|
  req.body = "{\n  \"card_number\": \"\",\n  \"merchant_id\": 0\n}"
end

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

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

    let payload = json!({
        "card_number": "",
        "merchant_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ardef \
  --header 'content-type: application/json' \
  --data '{
  "card_number": "",
  "merchant_id": 0
}'
echo '{
  "card_number": "",
  "merchant_id": 0
}' |  \
  http POST {{baseUrl}}/ardef \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "card_number": "",\n  "merchant_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/ardef
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "card_number": "",
  "merchant_id": 0
] as [String : Any]

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

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

{
  "funding_source": "C",
  "ind_comm_level2": "Y",
  "ind_comm_level3": "Y",
  "issuer_country": "US",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
POST Issue Credit to Cardholder
{{baseUrl}}/credit
BODY json

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");

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

(client/post "{{baseUrl}}/credit" {:content-type :json
                                                   :form-params {:amt_convenience_fee ""
                                                                 :amt_fbo ""
                                                                 :amt_tax ""
                                                                 :amt_tran ""
                                                                 :amt_tran_fee ""
                                                                 :auth_code ""
                                                                 :avs_address ""
                                                                 :avs_zip ""
                                                                 :card_id ""
                                                                 :card_number ""
                                                                 :card_swipe ""
                                                                 :cardholder_name ""
                                                                 :cavv_3ds ""
                                                                 :client_ip ""
                                                                 :customer {:billing_addr1 ""
                                                                            :billing_addr2 ""
                                                                            :billing_city ""
                                                                            :billing_country ""
                                                                            :billing_country_code ""
                                                                            :billing_state ""
                                                                            :billing_zip ""
                                                                            :billing_zip4 ""
                                                                            :customer_email ""
                                                                            :customer_firm_name ""
                                                                            :customer_first_name ""
                                                                            :customer_last_name ""
                                                                            :customer_phone ""
                                                                            :shipping_addresses [{:primary false
                                                                                                  :shipping_addr1 ""
                                                                                                  :shipping_addr2 ""
                                                                                                  :shipping_city ""
                                                                                                  :shipping_country ""
                                                                                                  :shipping_country_code ""
                                                                                                  :shipping_firm_name ""
                                                                                                  :shipping_first_name ""
                                                                                                  :shipping_last_name ""
                                                                                                  :shipping_state ""
                                                                                                  :shipping_zip ""
                                                                                                  :shipping_zip4 ""}]}
                                                                 :customer_code ""
                                                                 :customer_email ""
                                                                 :customer_id ""
                                                                 :cvv2 ""
                                                                 :dba_name ""
                                                                 :dba_suffix ""
                                                                 :dda_number ""
                                                                 :developer_id ""
                                                                 :duplicate_seconds 0
                                                                 :echo_fields ""
                                                                 :email_address []
                                                                 :email_receipt false
                                                                 :emv_tran_id ""
                                                                 :exp_date ""
                                                                 :fbo_id 0
                                                                 :line_items ""
                                                                 :loc_id ""
                                                                 :mc_ucaf_data ""
                                                                 :mc_ucaf_ind ""
                                                                 :merch_ref_num ""
                                                                 :merchant_id 0
                                                                 :moto_ecomm_ind ""
                                                                 :partial_auth false
                                                                 :payload_apple_pay ""
                                                                 :payload_google_pay ""
                                                                 :pg_id ""
                                                                 :profile_id ""
                                                                 :purchase_id ""
                                                                 :report_data ""
                                                                 :retry_attempt 0
                                                                 :retry_id 0
                                                                 :session_id ""
                                                                 :subscription_id 0
                                                                 :tokenize false
                                                                 :tr_number ""
                                                                 :tran_currency 0
                                                                 :type_id ""
                                                                 :user_id 0
                                                                 :vendor_id 0
                                                                 :xid_3ds ""}})
require "http/client"

url = "{{baseUrl}}/credit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/credit"),
    Content = new StringContent("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/credit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/credit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1902

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/credit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/credit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/credit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/credit")
  .header("content-type", "application/json")
  .body("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/credit',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/credit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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}}/credit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/credit")
  .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/credit',
  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({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/credit',
  headers: {'content-type': 'application/json'},
  body: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  },
  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}}/credit');

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

req.type('json');
req.send({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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}}/credit',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

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

const url = '{{baseUrl}}/credit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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 = @{ @"amt_convenience_fee": @"",
                              @"amt_fbo": @"",
                              @"amt_tax": @"",
                              @"amt_tran": @"",
                              @"amt_tran_fee": @"",
                              @"auth_code": @"",
                              @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"cavv_3ds": @"",
                              @"client_ip": @"",
                              @"customer": @{ @"billing_addr1": @"", @"billing_addr2": @"", @"billing_city": @"", @"billing_country": @"", @"billing_country_code": @"", @"billing_state": @"", @"billing_zip": @"", @"billing_zip4": @"", @"customer_email": @"", @"customer_firm_name": @"", @"customer_first_name": @"", @"customer_last_name": @"", @"customer_phone": @"", @"shipping_addresses": @[ @{ @"primary": @NO, @"shipping_addr1": @"", @"shipping_addr2": @"", @"shipping_city": @"", @"shipping_country": @"", @"shipping_country_code": @"", @"shipping_firm_name": @"", @"shipping_first_name": @"", @"shipping_last_name": @"", @"shipping_state": @"", @"shipping_zip": @"", @"shipping_zip4": @"" } ] },
                              @"customer_code": @"",
                              @"customer_email": @"",
                              @"customer_id": @"",
                              @"cvv2": @"",
                              @"dba_name": @"",
                              @"dba_suffix": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"duplicate_seconds": @0,
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"email_receipt": @NO,
                              @"emv_tran_id": @"",
                              @"exp_date": @"",
                              @"fbo_id": @0,
                              @"line_items": @"",
                              @"loc_id": @"",
                              @"mc_ucaf_data": @"",
                              @"mc_ucaf_ind": @"",
                              @"merch_ref_num": @"",
                              @"merchant_id": @0,
                              @"moto_ecomm_ind": @"",
                              @"partial_auth": @NO,
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"pg_id": @"",
                              @"profile_id": @"",
                              @"purchase_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"subscription_id": @0,
                              @"tokenize": @NO,
                              @"tr_number": @"",
                              @"tran_currency": @0,
                              @"type_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0,
                              @"xid_3ds": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/credit"]
                                                       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}}/credit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/credit",
  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([
    'amt_convenience_fee' => '',
    'amt_fbo' => '',
    'amt_tax' => '',
    'amt_tran' => '',
    'amt_tran_fee' => '',
    'auth_code' => '',
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'cavv_3ds' => '',
    'client_ip' => '',
    'customer' => [
        'billing_addr1' => '',
        'billing_addr2' => '',
        'billing_city' => '',
        'billing_country' => '',
        'billing_country_code' => '',
        'billing_state' => '',
        'billing_zip' => '',
        'billing_zip4' => '',
        'customer_email' => '',
        'customer_firm_name' => '',
        'customer_first_name' => '',
        'customer_last_name' => '',
        'customer_phone' => '',
        'shipping_addresses' => [
                [
                                'primary' => null,
                                'shipping_addr1' => '',
                                'shipping_addr2' => '',
                                'shipping_city' => '',
                                'shipping_country' => '',
                                'shipping_country_code' => '',
                                'shipping_firm_name' => '',
                                'shipping_first_name' => '',
                                'shipping_last_name' => '',
                                'shipping_state' => '',
                                'shipping_zip' => '',
                                'shipping_zip4' => ''
                ]
        ]
    ],
    'customer_code' => '',
    'customer_email' => '',
    'customer_id' => '',
    'cvv2' => '',
    'dba_name' => '',
    'dba_suffix' => '',
    'dda_number' => '',
    'developer_id' => '',
    'duplicate_seconds' => 0,
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'email_receipt' => null,
    'emv_tran_id' => '',
    'exp_date' => '',
    'fbo_id' => 0,
    'line_items' => '',
    'loc_id' => '',
    'mc_ucaf_data' => '',
    'mc_ucaf_ind' => '',
    'merch_ref_num' => '',
    'merchant_id' => 0,
    'moto_ecomm_ind' => '',
    'partial_auth' => null,
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'pg_id' => '',
    'profile_id' => '',
    'purchase_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'subscription_id' => 0,
    'tokenize' => null,
    'tr_number' => '',
    'tran_currency' => 0,
    'type_id' => '',
    'user_id' => 0,
    'vendor_id' => 0,
    'xid_3ds' => ''
  ]),
  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}}/credit', [
  'body' => '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));
$request->setRequestUrl('{{baseUrl}}/credit');
$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}}/credit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/credit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
import http.client

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

payload = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/credit"

payload = {
    "amt_convenience_fee": "",
    "amt_fbo": "",
    "amt_tax": "",
    "amt_tran": "",
    "amt_tran_fee": "",
    "auth_code": "",
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "cavv_3ds": "",
    "client_ip": "",
    "customer": {
        "billing_addr1": "",
        "billing_addr2": "",
        "billing_city": "",
        "billing_country": "",
        "billing_country_code": "",
        "billing_state": "",
        "billing_zip": "",
        "billing_zip4": "",
        "customer_email": "",
        "customer_firm_name": "",
        "customer_first_name": "",
        "customer_last_name": "",
        "customer_phone": "",
        "shipping_addresses": [
            {
                "primary": False,
                "shipping_addr1": "",
                "shipping_addr2": "",
                "shipping_city": "",
                "shipping_country": "",
                "shipping_country_code": "",
                "shipping_firm_name": "",
                "shipping_first_name": "",
                "shipping_last_name": "",
                "shipping_state": "",
                "shipping_zip": "",
                "shipping_zip4": ""
            }
        ]
    },
    "customer_code": "",
    "customer_email": "",
    "customer_id": "",
    "cvv2": "",
    "dba_name": "",
    "dba_suffix": "",
    "dda_number": "",
    "developer_id": "",
    "duplicate_seconds": 0,
    "echo_fields": "",
    "email_address": [],
    "email_receipt": False,
    "emv_tran_id": "",
    "exp_date": "",
    "fbo_id": 0,
    "line_items": "",
    "loc_id": "",
    "mc_ucaf_data": "",
    "mc_ucaf_ind": "",
    "merch_ref_num": "",
    "merchant_id": 0,
    "moto_ecomm_ind": "",
    "partial_auth": False,
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "pg_id": "",
    "profile_id": "",
    "purchase_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "subscription_id": 0,
    "tokenize": False,
    "tr_number": "",
    "tran_currency": 0,
    "type_id": "",
    "user_id": 0,
    "vendor_id": 0,
    "xid_3ds": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/credit")

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/credit') do |req|
  req.body = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"
end

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

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

    let payload = json!({
        "amt_convenience_fee": "",
        "amt_fbo": "",
        "amt_tax": "",
        "amt_tran": "",
        "amt_tran_fee": "",
        "auth_code": "",
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "cavv_3ds": "",
        "client_ip": "",
        "customer": json!({
            "billing_addr1": "",
            "billing_addr2": "",
            "billing_city": "",
            "billing_country": "",
            "billing_country_code": "",
            "billing_state": "",
            "billing_zip": "",
            "billing_zip4": "",
            "customer_email": "",
            "customer_firm_name": "",
            "customer_first_name": "",
            "customer_last_name": "",
            "customer_phone": "",
            "shipping_addresses": (
                json!({
                    "primary": false,
                    "shipping_addr1": "",
                    "shipping_addr2": "",
                    "shipping_city": "",
                    "shipping_country": "",
                    "shipping_country_code": "",
                    "shipping_firm_name": "",
                    "shipping_first_name": "",
                    "shipping_last_name": "",
                    "shipping_state": "",
                    "shipping_zip": "",
                    "shipping_zip4": ""
                })
            )
        }),
        "customer_code": "",
        "customer_email": "",
        "customer_id": "",
        "cvv2": "",
        "dba_name": "",
        "dba_suffix": "",
        "dda_number": "",
        "developer_id": "",
        "duplicate_seconds": 0,
        "echo_fields": "",
        "email_address": (),
        "email_receipt": false,
        "emv_tran_id": "",
        "exp_date": "",
        "fbo_id": 0,
        "line_items": "",
        "loc_id": "",
        "mc_ucaf_data": "",
        "mc_ucaf_ind": "",
        "merch_ref_num": "",
        "merchant_id": 0,
        "moto_ecomm_ind": "",
        "partial_auth": false,
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "pg_id": "",
        "profile_id": "",
        "purchase_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "subscription_id": 0,
        "tokenize": false,
        "tr_number": "",
        "tran_currency": 0,
        "type_id": "",
        "user_id": 0,
        "vendor_id": 0,
        "xid_3ds": ""
    });

    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}}/credit \
  --header 'content-type: application/json' \
  --data '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
echo '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}' |  \
  http POST {{baseUrl}}/credit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}' \
  --output-document \
  - {{baseUrl}}/credit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": [
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      [
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      ]
    ]
  ],
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
] as [String : Any]

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

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

{
  "amt_tran": 62.87,
  "auth_avs_result": "X",
  "auth_code": "T37500",
  "auth_cvv2_result": "M",
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "merchant_advice_code": "M001",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Recharge Previously Settled Transaction
{{baseUrl}}/recharge/:pgIdOrig
QUERY PARAMS

pgIdOrig
BODY json

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recharge/:pgIdOrig");

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}");

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

(client/post "{{baseUrl}}/recharge/:pgIdOrig" {:content-type :json
                                                               :form-params {:amt_tran ""
                                                                             :developer_id ""
                                                                             :echo_fields ""
                                                                             :loc_id ""
                                                                             :merchant_id 0
                                                                             :profile_id ""
                                                                             :report_data ""
                                                                             :retry_attempt 0
                                                                             :retry_id 0
                                                                             :session_id ""
                                                                             :user_id 0}})
require "http/client"

url = "{{baseUrl}}/recharge/:pgIdOrig"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/recharge/:pgIdOrig"),
    Content = new StringContent("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/recharge/:pgIdOrig");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/recharge/:pgIdOrig"

	payload := strings.NewReader("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}")

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

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

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

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

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

}
POST /baseUrl/recharge/:pgIdOrig HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 215

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/recharge/:pgIdOrig")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/recharge/:pgIdOrig"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/recharge/:pgIdOrig")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/recharge/:pgIdOrig")
  .header("content-type", "application/json")
  .body("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/recharge/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/recharge/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/recharge/:pgIdOrig',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/recharge/:pgIdOrig")
  .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/recharge/:pgIdOrig',
  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({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/recharge/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  body: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/recharge/:pgIdOrig');

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

req.type('json');
req.send({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/recharge/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0
  }
};

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

const url = '{{baseUrl}}/recharge/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amt_tran": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"user_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recharge/:pgIdOrig"]
                                                       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}}/recharge/:pgIdOrig" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/recharge/:pgIdOrig",
  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([
    'amt_tran' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'user_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/recharge/:pgIdOrig', [
  'body' => '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/recharge/:pgIdOrig');
$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}}/recharge/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recharge/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}'
import http.client

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

payload = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"

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

conn.request("POST", "/baseUrl/recharge/:pgIdOrig", payload, headers)

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

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

url = "{{baseUrl}}/recharge/:pgIdOrig"

payload = {
    "amt_tran": "",
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "user_id": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/recharge/:pgIdOrig"

payload <- "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/recharge/:pgIdOrig")

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"

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

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

response = conn.post('/baseUrl/recharge/:pgIdOrig') do |req|
  req.body = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0\n}"
end

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

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

    let payload = json!({
        "amt_tran": "",
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "user_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/recharge/:pgIdOrig \
  --header 'content-type: application/json' \
  --data '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}'
echo '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
}' |  \
  http POST {{baseUrl}}/recharge/:pgIdOrig \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/recharge/:pgIdOrig
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0
] as [String : Any]

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

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

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T25388"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Refund Previously Captured Transaction
{{baseUrl}}/refund/:pgIdOrig
QUERY PARAMS

pgIdOrig
BODY json

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/refund/:pgIdOrig" {:content-type :json
                                                             :form-params {:amt_tran ""
                                                                           :developer_id ""
                                                                           :echo_fields ""
                                                                           :loc_id ""
                                                                           :merchant_id 0
                                                                           :profile_id ""
                                                                           :report_data ""
                                                                           :retry_attempt 0
                                                                           :retry_id 0
                                                                           :session_id ""
                                                                           :user_id 0
                                                                           :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/refund/:pgIdOrig"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/refund/:pgIdOrig"),
    Content = new StringContent("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/refund/:pgIdOrig");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

}
POST /baseUrl/refund/:pgIdOrig HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 233

{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/refund/:pgIdOrig")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/refund/:pgIdOrig"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/refund/:pgIdOrig")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/refund/:pgIdOrig")
  .header("content-type", "application/json")
  .body("{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/refund/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/refund/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/refund/:pgIdOrig',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/refund/:pgIdOrig")
  .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/:pgIdOrig',
  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({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/refund/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  body: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/refund/:pgIdOrig');

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

req.type('json');
req.send({
  amt_tran: '',
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/refund/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    amt_tran: '',
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/refund/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_tran":"","developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amt_tran": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/refund/:pgIdOrig"]
                                                       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/:pgIdOrig" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/refund/:pgIdOrig",
  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([
    'amt_tran' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'user_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/refund/:pgIdOrig', [
  'body' => '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_tran' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/refund/:pgIdOrig');
$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/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/refund/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
import http.client

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

payload = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

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

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

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

payload = {
    "amt_tran": "",
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "user_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/refund/:pgIdOrig"

payload <- "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/refund/:pgIdOrig")

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  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/refund/:pgIdOrig') do |req|
  req.body = "{\n  \"amt_tran\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "amt_tran": "",
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "user_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/refund/:pgIdOrig \
  --header 'content-type: application/json' \
  --data '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
echo '{
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/refund/:pgIdOrig \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_tran": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/refund/:pgIdOrig
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_tran": "",
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Refund request accepted"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Sale (Auth + Capture)
{{baseUrl}}/sale
BODY json

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");

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

(client/post "{{baseUrl}}/sale" {:content-type :json
                                                 :form-params {:amt_convenience_fee ""
                                                               :amt_fbo ""
                                                               :amt_tax ""
                                                               :amt_tran ""
                                                               :amt_tran_fee ""
                                                               :auth_code ""
                                                               :avs_address ""
                                                               :avs_zip ""
                                                               :card_id ""
                                                               :card_number ""
                                                               :card_swipe ""
                                                               :cardholder_name ""
                                                               :cavv_3ds ""
                                                               :client_ip ""
                                                               :customer {:billing_addr1 ""
                                                                          :billing_addr2 ""
                                                                          :billing_city ""
                                                                          :billing_country ""
                                                                          :billing_country_code ""
                                                                          :billing_state ""
                                                                          :billing_zip ""
                                                                          :billing_zip4 ""
                                                                          :customer_email ""
                                                                          :customer_firm_name ""
                                                                          :customer_first_name ""
                                                                          :customer_last_name ""
                                                                          :customer_phone ""
                                                                          :shipping_addresses [{:primary false
                                                                                                :shipping_addr1 ""
                                                                                                :shipping_addr2 ""
                                                                                                :shipping_city ""
                                                                                                :shipping_country ""
                                                                                                :shipping_country_code ""
                                                                                                :shipping_firm_name ""
                                                                                                :shipping_first_name ""
                                                                                                :shipping_last_name ""
                                                                                                :shipping_state ""
                                                                                                :shipping_zip ""
                                                                                                :shipping_zip4 ""}]}
                                                               :customer_code ""
                                                               :customer_email ""
                                                               :customer_id ""
                                                               :cvv2 ""
                                                               :dba_name ""
                                                               :dba_suffix ""
                                                               :dda_number ""
                                                               :developer_id ""
                                                               :duplicate_seconds 0
                                                               :echo_fields ""
                                                               :email_address []
                                                               :email_receipt false
                                                               :emv_tran_id ""
                                                               :exp_date ""
                                                               :fbo_id 0
                                                               :line_items ""
                                                               :loc_id ""
                                                               :mc_ucaf_data ""
                                                               :mc_ucaf_ind ""
                                                               :merch_ref_num ""
                                                               :merchant_id 0
                                                               :moto_ecomm_ind ""
                                                               :partial_auth false
                                                               :payload_apple_pay ""
                                                               :payload_google_pay ""
                                                               :pg_id ""
                                                               :profile_id ""
                                                               :purchase_id ""
                                                               :report_data ""
                                                               :retry_attempt 0
                                                               :retry_id 0
                                                               :session_id ""
                                                               :subscription_id 0
                                                               :tokenize false
                                                               :tr_number ""
                                                               :tran_currency 0
                                                               :type_id ""
                                                               :user_id 0
                                                               :vendor_id 0
                                                               :xid_3ds ""}})
require "http/client"

url = "{{baseUrl}}/sale"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/sale"),
    Content = new StringContent("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/sale");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/sale HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1902

{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/sale")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/sale"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/sale")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/sale")
  .header("content-type", "application/json")
  .body("{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/sale',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/sale';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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}}/sale',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/sale")
  .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/sale',
  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({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/sale',
  headers: {'content-type': 'application/json'},
  body: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  },
  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}}/sale');

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

req.type('json');
req.send({
  amt_convenience_fee: '',
  amt_fbo: '',
  amt_tax: '',
  amt_tran: '',
  amt_tran_fee: '',
  auth_code: '',
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  cavv_3ds: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  customer_email: '',
  customer_id: '',
  cvv2: '',
  dba_name: '',
  dba_suffix: '',
  dda_number: '',
  developer_id: '',
  duplicate_seconds: 0,
  echo_fields: '',
  email_address: [],
  email_receipt: false,
  emv_tran_id: '',
  exp_date: '',
  fbo_id: 0,
  line_items: '',
  loc_id: '',
  mc_ucaf_data: '',
  mc_ucaf_ind: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  partial_auth: false,
  payload_apple_pay: '',
  payload_google_pay: '',
  pg_id: '',
  profile_id: '',
  purchase_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  subscription_id: 0,
  tokenize: false,
  tr_number: '',
  tran_currency: 0,
  type_id: '',
  user_id: 0,
  vendor_id: 0,
  xid_3ds: ''
});

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}}/sale',
  headers: {'content-type': 'application/json'},
  data: {
    amt_convenience_fee: '',
    amt_fbo: '',
    amt_tax: '',
    amt_tran: '',
    amt_tran_fee: '',
    auth_code: '',
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    cavv_3ds: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    customer_email: '',
    customer_id: '',
    cvv2: '',
    dba_name: '',
    dba_suffix: '',
    dda_number: '',
    developer_id: '',
    duplicate_seconds: 0,
    echo_fields: '',
    email_address: [],
    email_receipt: false,
    emv_tran_id: '',
    exp_date: '',
    fbo_id: 0,
    line_items: '',
    loc_id: '',
    mc_ucaf_data: '',
    mc_ucaf_ind: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    partial_auth: false,
    payload_apple_pay: '',
    payload_google_pay: '',
    pg_id: '',
    profile_id: '',
    purchase_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    subscription_id: 0,
    tokenize: false,
    tr_number: '',
    tran_currency: 0,
    type_id: '',
    user_id: 0,
    vendor_id: 0,
    xid_3ds: ''
  }
};

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

const url = '{{baseUrl}}/sale';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amt_convenience_fee":"","amt_fbo":"","amt_tax":"","amt_tran":"","amt_tran_fee":"","auth_code":"","avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","cavv_3ds":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","customer_email":"","customer_id":"","cvv2":"","dba_name":"","dba_suffix":"","dda_number":"","developer_id":"","duplicate_seconds":0,"echo_fields":"","email_address":[],"email_receipt":false,"emv_tran_id":"","exp_date":"","fbo_id":0,"line_items":"","loc_id":"","mc_ucaf_data":"","mc_ucaf_ind":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","partial_auth":false,"payload_apple_pay":"","payload_google_pay":"","pg_id":"","profile_id":"","purchase_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","subscription_id":0,"tokenize":false,"tr_number":"","tran_currency":0,"type_id":"","user_id":0,"vendor_id":0,"xid_3ds":""}'
};

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 = @{ @"amt_convenience_fee": @"",
                              @"amt_fbo": @"",
                              @"amt_tax": @"",
                              @"amt_tran": @"",
                              @"amt_tran_fee": @"",
                              @"auth_code": @"",
                              @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"cavv_3ds": @"",
                              @"client_ip": @"",
                              @"customer": @{ @"billing_addr1": @"", @"billing_addr2": @"", @"billing_city": @"", @"billing_country": @"", @"billing_country_code": @"", @"billing_state": @"", @"billing_zip": @"", @"billing_zip4": @"", @"customer_email": @"", @"customer_firm_name": @"", @"customer_first_name": @"", @"customer_last_name": @"", @"customer_phone": @"", @"shipping_addresses": @[ @{ @"primary": @NO, @"shipping_addr1": @"", @"shipping_addr2": @"", @"shipping_city": @"", @"shipping_country": @"", @"shipping_country_code": @"", @"shipping_firm_name": @"", @"shipping_first_name": @"", @"shipping_last_name": @"", @"shipping_state": @"", @"shipping_zip": @"", @"shipping_zip4": @"" } ] },
                              @"customer_code": @"",
                              @"customer_email": @"",
                              @"customer_id": @"",
                              @"cvv2": @"",
                              @"dba_name": @"",
                              @"dba_suffix": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"duplicate_seconds": @0,
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"email_receipt": @NO,
                              @"emv_tran_id": @"",
                              @"exp_date": @"",
                              @"fbo_id": @0,
                              @"line_items": @"",
                              @"loc_id": @"",
                              @"mc_ucaf_data": @"",
                              @"mc_ucaf_ind": @"",
                              @"merch_ref_num": @"",
                              @"merchant_id": @0,
                              @"moto_ecomm_ind": @"",
                              @"partial_auth": @NO,
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"pg_id": @"",
                              @"profile_id": @"",
                              @"purchase_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"subscription_id": @0,
                              @"tokenize": @NO,
                              @"tr_number": @"",
                              @"tran_currency": @0,
                              @"type_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0,
                              @"xid_3ds": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/sale"]
                                                       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}}/sale" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/sale",
  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([
    'amt_convenience_fee' => '',
    'amt_fbo' => '',
    'amt_tax' => '',
    'amt_tran' => '',
    'amt_tran_fee' => '',
    'auth_code' => '',
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'cavv_3ds' => '',
    'client_ip' => '',
    'customer' => [
        'billing_addr1' => '',
        'billing_addr2' => '',
        'billing_city' => '',
        'billing_country' => '',
        'billing_country_code' => '',
        'billing_state' => '',
        'billing_zip' => '',
        'billing_zip4' => '',
        'customer_email' => '',
        'customer_firm_name' => '',
        'customer_first_name' => '',
        'customer_last_name' => '',
        'customer_phone' => '',
        'shipping_addresses' => [
                [
                                'primary' => null,
                                'shipping_addr1' => '',
                                'shipping_addr2' => '',
                                'shipping_city' => '',
                                'shipping_country' => '',
                                'shipping_country_code' => '',
                                'shipping_firm_name' => '',
                                'shipping_first_name' => '',
                                'shipping_last_name' => '',
                                'shipping_state' => '',
                                'shipping_zip' => '',
                                'shipping_zip4' => ''
                ]
        ]
    ],
    'customer_code' => '',
    'customer_email' => '',
    'customer_id' => '',
    'cvv2' => '',
    'dba_name' => '',
    'dba_suffix' => '',
    'dda_number' => '',
    'developer_id' => '',
    'duplicate_seconds' => 0,
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'email_receipt' => null,
    'emv_tran_id' => '',
    'exp_date' => '',
    'fbo_id' => 0,
    'line_items' => '',
    'loc_id' => '',
    'mc_ucaf_data' => '',
    'mc_ucaf_ind' => '',
    'merch_ref_num' => '',
    'merchant_id' => 0,
    'moto_ecomm_ind' => '',
    'partial_auth' => null,
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'pg_id' => '',
    'profile_id' => '',
    'purchase_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'subscription_id' => 0,
    'tokenize' => null,
    'tr_number' => '',
    'tran_currency' => 0,
    'type_id' => '',
    'user_id' => 0,
    'vendor_id' => 0,
    'xid_3ds' => ''
  ]),
  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}}/sale', [
  'body' => '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amt_convenience_fee' => '',
  'amt_fbo' => '',
  'amt_tax' => '',
  'amt_tran' => '',
  'amt_tran_fee' => '',
  'auth_code' => '',
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'cavv_3ds' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'customer_email' => '',
  'customer_id' => '',
  'cvv2' => '',
  'dba_name' => '',
  'dba_suffix' => '',
  'dda_number' => '',
  'developer_id' => '',
  'duplicate_seconds' => 0,
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'email_receipt' => null,
  'emv_tran_id' => '',
  'exp_date' => '',
  'fbo_id' => 0,
  'line_items' => '',
  'loc_id' => '',
  'mc_ucaf_data' => '',
  'mc_ucaf_ind' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'partial_auth' => null,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'pg_id' => '',
  'profile_id' => '',
  'purchase_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'subscription_id' => 0,
  'tokenize' => null,
  'tr_number' => '',
  'tran_currency' => 0,
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0,
  'xid_3ds' => ''
]));
$request->setRequestUrl('{{baseUrl}}/sale');
$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}}/sale' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/sale' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
import http.client

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

payload = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/sale"

payload = {
    "amt_convenience_fee": "",
    "amt_fbo": "",
    "amt_tax": "",
    "amt_tran": "",
    "amt_tran_fee": "",
    "auth_code": "",
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "cavv_3ds": "",
    "client_ip": "",
    "customer": {
        "billing_addr1": "",
        "billing_addr2": "",
        "billing_city": "",
        "billing_country": "",
        "billing_country_code": "",
        "billing_state": "",
        "billing_zip": "",
        "billing_zip4": "",
        "customer_email": "",
        "customer_firm_name": "",
        "customer_first_name": "",
        "customer_last_name": "",
        "customer_phone": "",
        "shipping_addresses": [
            {
                "primary": False,
                "shipping_addr1": "",
                "shipping_addr2": "",
                "shipping_city": "",
                "shipping_country": "",
                "shipping_country_code": "",
                "shipping_firm_name": "",
                "shipping_first_name": "",
                "shipping_last_name": "",
                "shipping_state": "",
                "shipping_zip": "",
                "shipping_zip4": ""
            }
        ]
    },
    "customer_code": "",
    "customer_email": "",
    "customer_id": "",
    "cvv2": "",
    "dba_name": "",
    "dba_suffix": "",
    "dda_number": "",
    "developer_id": "",
    "duplicate_seconds": 0,
    "echo_fields": "",
    "email_address": [],
    "email_receipt": False,
    "emv_tran_id": "",
    "exp_date": "",
    "fbo_id": 0,
    "line_items": "",
    "loc_id": "",
    "mc_ucaf_data": "",
    "mc_ucaf_ind": "",
    "merch_ref_num": "",
    "merchant_id": 0,
    "moto_ecomm_ind": "",
    "partial_auth": False,
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "pg_id": "",
    "profile_id": "",
    "purchase_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "subscription_id": 0,
    "tokenize": False,
    "tr_number": "",
    "tran_currency": 0,
    "type_id": "",
    "user_id": 0,
    "vendor_id": 0,
    "xid_3ds": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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}}/sale")

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  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\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/sale') do |req|
  req.body = "{\n  \"amt_convenience_fee\": \"\",\n  \"amt_fbo\": \"\",\n  \"amt_tax\": \"\",\n  \"amt_tran\": \"\",\n  \"amt_tran_fee\": \"\",\n  \"auth_code\": \"\",\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"cavv_3ds\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"customer_email\": \"\",\n  \"customer_id\": \"\",\n  \"cvv2\": \"\",\n  \"dba_name\": \"\",\n  \"dba_suffix\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"duplicate_seconds\": 0,\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"email_receipt\": false,\n  \"emv_tran_id\": \"\",\n  \"exp_date\": \"\",\n  \"fbo_id\": 0,\n  \"line_items\": \"\",\n  \"loc_id\": \"\",\n  \"mc_ucaf_data\": \"\",\n  \"mc_ucaf_ind\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"partial_auth\": false,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"pg_id\": \"\",\n  \"profile_id\": \"\",\n  \"purchase_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"subscription_id\": 0,\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"tran_currency\": 0,\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0,\n  \"xid_3ds\": \"\"\n}"
end

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

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

    let payload = json!({
        "amt_convenience_fee": "",
        "amt_fbo": "",
        "amt_tax": "",
        "amt_tran": "",
        "amt_tran_fee": "",
        "auth_code": "",
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "cavv_3ds": "",
        "client_ip": "",
        "customer": json!({
            "billing_addr1": "",
            "billing_addr2": "",
            "billing_city": "",
            "billing_country": "",
            "billing_country_code": "",
            "billing_state": "",
            "billing_zip": "",
            "billing_zip4": "",
            "customer_email": "",
            "customer_firm_name": "",
            "customer_first_name": "",
            "customer_last_name": "",
            "customer_phone": "",
            "shipping_addresses": (
                json!({
                    "primary": false,
                    "shipping_addr1": "",
                    "shipping_addr2": "",
                    "shipping_city": "",
                    "shipping_country": "",
                    "shipping_country_code": "",
                    "shipping_firm_name": "",
                    "shipping_first_name": "",
                    "shipping_last_name": "",
                    "shipping_state": "",
                    "shipping_zip": "",
                    "shipping_zip4": ""
                })
            )
        }),
        "customer_code": "",
        "customer_email": "",
        "customer_id": "",
        "cvv2": "",
        "dba_name": "",
        "dba_suffix": "",
        "dda_number": "",
        "developer_id": "",
        "duplicate_seconds": 0,
        "echo_fields": "",
        "email_address": (),
        "email_receipt": false,
        "emv_tran_id": "",
        "exp_date": "",
        "fbo_id": 0,
        "line_items": "",
        "loc_id": "",
        "mc_ucaf_data": "",
        "mc_ucaf_ind": "",
        "merch_ref_num": "",
        "merchant_id": 0,
        "moto_ecomm_ind": "",
        "partial_auth": false,
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "pg_id": "",
        "profile_id": "",
        "purchase_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "subscription_id": 0,
        "tokenize": false,
        "tr_number": "",
        "tran_currency": 0,
        "type_id": "",
        "user_id": 0,
        "vendor_id": 0,
        "xid_3ds": ""
    });

    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}}/sale \
  --header 'content-type: application/json' \
  --data '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}'
echo '{
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
}' |  \
  http POST {{baseUrl}}/sale \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amt_convenience_fee": "",\n  "amt_fbo": "",\n  "amt_tax": "",\n  "amt_tran": "",\n  "amt_tran_fee": "",\n  "auth_code": "",\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "cavv_3ds": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "customer_email": "",\n  "customer_id": "",\n  "cvv2": "",\n  "dba_name": "",\n  "dba_suffix": "",\n  "dda_number": "",\n  "developer_id": "",\n  "duplicate_seconds": 0,\n  "echo_fields": "",\n  "email_address": [],\n  "email_receipt": false,\n  "emv_tran_id": "",\n  "exp_date": "",\n  "fbo_id": 0,\n  "line_items": "",\n  "loc_id": "",\n  "mc_ucaf_data": "",\n  "mc_ucaf_ind": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "partial_auth": false,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "pg_id": "",\n  "profile_id": "",\n  "purchase_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "subscription_id": 0,\n  "tokenize": false,\n  "tr_number": "",\n  "tran_currency": 0,\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0,\n  "xid_3ds": ""\n}' \
  --output-document \
  - {{baseUrl}}/sale
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amt_convenience_fee": "",
  "amt_fbo": "",
  "amt_tax": "",
  "amt_tran": "",
  "amt_tran_fee": "",
  "auth_code": "",
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "cavv_3ds": "",
  "client_ip": "",
  "customer": [
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      [
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      ]
    ]
  ],
  "customer_code": "",
  "customer_email": "",
  "customer_id": "",
  "cvv2": "",
  "dba_name": "",
  "dba_suffix": "",
  "dda_number": "",
  "developer_id": "",
  "duplicate_seconds": 0,
  "echo_fields": "",
  "email_address": [],
  "email_receipt": false,
  "emv_tran_id": "",
  "exp_date": "",
  "fbo_id": 0,
  "line_items": "",
  "loc_id": "",
  "mc_ucaf_data": "",
  "mc_ucaf_ind": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "partial_auth": false,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "pg_id": "",
  "profile_id": "",
  "purchase_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "subscription_id": 0,
  "tokenize": false,
  "tr_number": "",
  "tran_currency": 0,
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0,
  "xid_3ds": ""
] as [String : Any]

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

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

{
  "amt_tran": 62.87,
  "auth_avs_result": "X",
  "auth_code": "T37500",
  "auth_cvv2_result": "M",
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "merchant_advice_code": "M001",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Send Transaction Receipt Email
{{baseUrl}}/emailReceipt/:pgId
QUERY PARAMS

pgId
BODY json

{
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/emailReceipt/:pgId");

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  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/emailReceipt/:pgId" {:content-type :json
                                                               :form-params {:developer_id ""
                                                                             :email_address []
                                                                             :logo_url ""
                                                                             :merchant_id 0
                                                                             :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/emailReceipt/:pgId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/emailReceipt/:pgId"),
    Content = new StringContent("{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/emailReceipt/:pgId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/emailReceipt/:pgId"

	payload := strings.NewReader("{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

}
POST /baseUrl/emailReceipt/:pgId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/emailReceipt/:pgId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/emailReceipt/:pgId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/emailReceipt/:pgId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/emailReceipt/:pgId")
  .header("content-type", "application/json")
  .body("{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  developer_id: '',
  email_address: [],
  logo_url: '',
  merchant_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/emailReceipt/:pgId',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    email_address: [],
    logo_url: '',
    merchant_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/emailReceipt/:pgId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","email_address":[],"logo_url":"","merchant_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/emailReceipt/:pgId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "developer_id": "",\n  "email_address": [],\n  "logo_url": "",\n  "merchant_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/emailReceipt/:pgId")
  .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/emailReceipt/:pgId',
  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({
  developer_id: '',
  email_address: [],
  logo_url: '',
  merchant_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/emailReceipt/:pgId',
  headers: {'content-type': 'application/json'},
  body: {
    developer_id: '',
    email_address: [],
    logo_url: '',
    merchant_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/emailReceipt/:pgId');

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

req.type('json');
req.send({
  developer_id: '',
  email_address: [],
  logo_url: '',
  merchant_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/emailReceipt/:pgId',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    email_address: [],
    logo_url: '',
    merchant_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/emailReceipt/:pgId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","email_address":[],"logo_url":"","merchant_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"developer_id": @"",
                              @"email_address": @[  ],
                              @"logo_url": @"",
                              @"merchant_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/emailReceipt/:pgId"]
                                                       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}}/emailReceipt/:pgId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/emailReceipt/:pgId",
  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([
    'developer_id' => '',
    'email_address' => [
        
    ],
    'logo_url' => '',
    'merchant_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/emailReceipt/:pgId', [
  'body' => '{
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'developer_id' => '',
  'email_address' => [
    
  ],
  'logo_url' => '',
  'merchant_id' => 0,
  'vendor_id' => 0
]));

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

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

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

payload = "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"

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

conn.request("POST", "/baseUrl/emailReceipt/:pgId", payload, headers)

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

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

url = "{{baseUrl}}/emailReceipt/:pgId"

payload = {
    "developer_id": "",
    "email_address": [],
    "logo_url": "",
    "merchant_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/emailReceipt/:pgId"

payload <- "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/emailReceipt/:pgId")

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  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/emailReceipt/:pgId') do |req|
  req.body = "{\n  \"developer_id\": \"\",\n  \"email_address\": [],\n  \"logo_url\": \"\",\n  \"merchant_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "developer_id": "",
        "email_address": (),
        "logo_url": "",
        "merchant_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/emailReceipt/:pgId \
  --header 'content-type: application/json' \
  --data '{
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
}'
echo '{
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/emailReceipt/:pgId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "developer_id": "",\n  "email_address": [],\n  "logo_url": "",\n  "merchant_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/emailReceipt/:pgId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "developer_id": "",
  "email_address": [],
  "logo_url": "",
  "merchant_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

{
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Transaction Receipt sent"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Tokenize Card
{{baseUrl}}/tokenize
BODY json

{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/tokenize" {:content-type :json
                                                     :form-params {:avs_address ""
                                                                   :avs_zip ""
                                                                   :card_id ""
                                                                   :card_number ""
                                                                   :card_swipe ""
                                                                   :cardholder_name ""
                                                                   :client_ip ""
                                                                   :cvv2 ""
                                                                   :dda_number ""
                                                                   :developer_id ""
                                                                   :echo_fields ""
                                                                   :email_address []
                                                                   :exp_date ""
                                                                   :loc_id ""
                                                                   :merchant_id 0
                                                                   :payload_apple_pay ""
                                                                   :payload_google_pay ""
                                                                   :profile_id ""
                                                                   :report_data ""
                                                                   :retry_attempt 0
                                                                   :retry_id 0
                                                                   :session_id ""
                                                                   :single_use false
                                                                   :tr_number ""
                                                                   :type_id ""
                                                                   :user_id 0
                                                                   :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/tokenize"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/tokenize"),
    Content = new StringContent("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tokenize");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

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

{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tokenize")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tokenize"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/tokenize")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tokenize")
  .header("content-type", "application/json")
  .body("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merchant_id: 0,
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  single_use: false,
  tr_number: '',
  type_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tokenize',
  headers: {'content-type': 'application/json'},
  data: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merchant_id: 0,
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    single_use: false,
    tr_number: '',
    type_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tokenize';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","client_ip":"","cvv2":"","dda_number":"","developer_id":"","echo_fields":"","email_address":[],"exp_date":"","loc_id":"","merchant_id":0,"payload_apple_pay":"","payload_google_pay":"","profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","single_use":false,"tr_number":"","type_id":"","user_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/tokenize',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "client_ip": "",\n  "cvv2": "",\n  "dda_number": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "email_address": [],\n  "exp_date": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "single_use": false,\n  "tr_number": "",\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/tokenize")
  .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/tokenize',
  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({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merchant_id: 0,
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  single_use: false,
  tr_number: '',
  type_id: '',
  user_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tokenize',
  headers: {'content-type': 'application/json'},
  body: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merchant_id: 0,
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    single_use: false,
    tr_number: '',
    type_id: '',
    user_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merchant_id: 0,
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  single_use: false,
  tr_number: '',
  type_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tokenize',
  headers: {'content-type': 'application/json'},
  data: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merchant_id: 0,
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    single_use: false,
    tr_number: '',
    type_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/tokenize';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","client_ip":"","cvv2":"","dda_number":"","developer_id":"","echo_fields":"","email_address":[],"exp_date":"","loc_id":"","merchant_id":0,"payload_apple_pay":"","payload_google_pay":"","profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","single_use":false,"tr_number":"","type_id":"","user_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"client_ip": @"",
                              @"cvv2": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"exp_date": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"single_use": @NO,
                              @"tr_number": @"",
                              @"type_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tokenize"]
                                                       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}}/tokenize" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tokenize",
  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([
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'client_ip' => '',
    'cvv2' => '',
    'dda_number' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'exp_date' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'single_use' => null,
    'tr_number' => '',
    'type_id' => '',
    'user_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/tokenize', [
  'body' => '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'client_ip' => '',
  'cvv2' => '',
  'dda_number' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'exp_date' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'single_use' => null,
  'tr_number' => '',
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'client_ip' => '',
  'cvv2' => '',
  'dda_number' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'exp_date' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'single_use' => null,
  'tr_number' => '',
  'type_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/tokenize');
$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}}/tokenize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tokenize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
import http.client

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

payload = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/tokenize"

payload = {
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "client_ip": "",
    "cvv2": "",
    "dda_number": "",
    "developer_id": "",
    "echo_fields": "",
    "email_address": [],
    "exp_date": "",
    "loc_id": "",
    "merchant_id": 0,
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "single_use": False,
    "tr_number": "",
    "type_id": "",
    "user_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

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

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  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/tokenize') do |req|
  req.body = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"single_use\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "client_ip": "",
        "cvv2": "",
        "dda_number": "",
        "developer_id": "",
        "echo_fields": "",
        "email_address": (),
        "exp_date": "",
        "loc_id": "",
        "merchant_id": 0,
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "single_use": false,
        "tr_number": "",
        "type_id": "",
        "user_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/tokenize \
  --header 'content-type: application/json' \
  --data '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
echo '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/tokenize \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "client_ip": "",\n  "cvv2": "",\n  "dda_number": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "email_address": [],\n  "exp_date": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "single_use": false,\n  "tr_number": "",\n  "type_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/tokenize
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merchant_id": 0,
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "single_use": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "card_number": "4111xxxxxx111111",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Token request complete"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Verify Card
{{baseUrl}}/verify
BODY json

{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}");

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

(client/post "{{baseUrl}}/verify" {:content-type :json
                                                   :form-params {:avs_address ""
                                                                 :avs_zip ""
                                                                 :card_id ""
                                                                 :card_number ""
                                                                 :card_swipe ""
                                                                 :cardholder_name ""
                                                                 :client_ip ""
                                                                 :customer {:billing_addr1 ""
                                                                            :billing_addr2 ""
                                                                            :billing_city ""
                                                                            :billing_country ""
                                                                            :billing_country_code ""
                                                                            :billing_state ""
                                                                            :billing_zip ""
                                                                            :billing_zip4 ""
                                                                            :customer_email ""
                                                                            :customer_firm_name ""
                                                                            :customer_first_name ""
                                                                            :customer_last_name ""
                                                                            :customer_phone ""
                                                                            :shipping_addresses [{:primary false
                                                                                                  :shipping_addr1 ""
                                                                                                  :shipping_addr2 ""
                                                                                                  :shipping_city ""
                                                                                                  :shipping_country ""
                                                                                                  :shipping_country_code ""
                                                                                                  :shipping_firm_name ""
                                                                                                  :shipping_first_name ""
                                                                                                  :shipping_last_name ""
                                                                                                  :shipping_state ""
                                                                                                  :shipping_zip ""
                                                                                                  :shipping_zip4 ""}]}
                                                                 :customer_code ""
                                                                 :cvv2 ""
                                                                 :dda_number ""
                                                                 :developer_id ""
                                                                 :echo_fields ""
                                                                 :email_address []
                                                                 :exp_date ""
                                                                 :loc_id ""
                                                                 :merch_ref_num ""
                                                                 :merchant_id 0
                                                                 :moto_ecomm_ind ""
                                                                 :payload_apple_pay ""
                                                                 :payload_google_pay ""
                                                                 :profile_id ""
                                                                 :report_data ""
                                                                 :retry_attempt 0
                                                                 :retry_id 0
                                                                 :session_id ""
                                                                 :tokenize false
                                                                 :tr_number ""
                                                                 :type_id ""
                                                                 :user_id 0}})
require "http/client"

url = "{{baseUrl}}/verify"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/verify"),
    Content = new StringContent("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/verify");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}")

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

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

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

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

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

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

{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/verify")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/verify"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/verify")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/verify")
  .header("content-type", "application/json")
  .body("{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tokenize: false,
  tr_number: '',
  type_id: '',
  user_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/verify',
  headers: {'content-type': 'application/json'},
  data: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tokenize: false,
    tr_number: '',
    type_id: '',
    user_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/verify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","cvv2":"","dda_number":"","developer_id":"","echo_fields":"","email_address":[],"exp_date":"","loc_id":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","payload_apple_pay":"","payload_google_pay":"","profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","tokenize":false,"tr_number":"","type_id":"","user_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/verify',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "cvv2": "",\n  "dda_number": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "email_address": [],\n  "exp_date": "",\n  "loc_id": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "tokenize": false,\n  "tr_number": "",\n  "type_id": "",\n  "user_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/verify")
  .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/verify',
  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({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tokenize: false,
  tr_number: '',
  type_id: '',
  user_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/verify',
  headers: {'content-type': 'application/json'},
  body: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tokenize: false,
    tr_number: '',
    type_id: '',
    user_id: 0
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  avs_address: '',
  avs_zip: '',
  card_id: '',
  card_number: '',
  card_swipe: '',
  cardholder_name: '',
  client_ip: '',
  customer: {
    billing_addr1: '',
    billing_addr2: '',
    billing_city: '',
    billing_country: '',
    billing_country_code: '',
    billing_state: '',
    billing_zip: '',
    billing_zip4: '',
    customer_email: '',
    customer_firm_name: '',
    customer_first_name: '',
    customer_last_name: '',
    customer_phone: '',
    shipping_addresses: [
      {
        primary: false,
        shipping_addr1: '',
        shipping_addr2: '',
        shipping_city: '',
        shipping_country: '',
        shipping_country_code: '',
        shipping_firm_name: '',
        shipping_first_name: '',
        shipping_last_name: '',
        shipping_state: '',
        shipping_zip: '',
        shipping_zip4: ''
      }
    ]
  },
  customer_code: '',
  cvv2: '',
  dda_number: '',
  developer_id: '',
  echo_fields: '',
  email_address: [],
  exp_date: '',
  loc_id: '',
  merch_ref_num: '',
  merchant_id: 0,
  moto_ecomm_ind: '',
  payload_apple_pay: '',
  payload_google_pay: '',
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  tokenize: false,
  tr_number: '',
  type_id: '',
  user_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/verify',
  headers: {'content-type': 'application/json'},
  data: {
    avs_address: '',
    avs_zip: '',
    card_id: '',
    card_number: '',
    card_swipe: '',
    cardholder_name: '',
    client_ip: '',
    customer: {
      billing_addr1: '',
      billing_addr2: '',
      billing_city: '',
      billing_country: '',
      billing_country_code: '',
      billing_state: '',
      billing_zip: '',
      billing_zip4: '',
      customer_email: '',
      customer_firm_name: '',
      customer_first_name: '',
      customer_last_name: '',
      customer_phone: '',
      shipping_addresses: [
        {
          primary: false,
          shipping_addr1: '',
          shipping_addr2: '',
          shipping_city: '',
          shipping_country: '',
          shipping_country_code: '',
          shipping_firm_name: '',
          shipping_first_name: '',
          shipping_last_name: '',
          shipping_state: '',
          shipping_zip: '',
          shipping_zip4: ''
        }
      ]
    },
    customer_code: '',
    cvv2: '',
    dda_number: '',
    developer_id: '',
    echo_fields: '',
    email_address: [],
    exp_date: '',
    loc_id: '',
    merch_ref_num: '',
    merchant_id: 0,
    moto_ecomm_ind: '',
    payload_apple_pay: '',
    payload_google_pay: '',
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    tokenize: false,
    tr_number: '',
    type_id: '',
    user_id: 0
  }
};

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

const url = '{{baseUrl}}/verify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"avs_address":"","avs_zip":"","card_id":"","card_number":"","card_swipe":"","cardholder_name":"","client_ip":"","customer":{"billing_addr1":"","billing_addr2":"","billing_city":"","billing_country":"","billing_country_code":"","billing_state":"","billing_zip":"","billing_zip4":"","customer_email":"","customer_firm_name":"","customer_first_name":"","customer_last_name":"","customer_phone":"","shipping_addresses":[{"primary":false,"shipping_addr1":"","shipping_addr2":"","shipping_city":"","shipping_country":"","shipping_country_code":"","shipping_firm_name":"","shipping_first_name":"","shipping_last_name":"","shipping_state":"","shipping_zip":"","shipping_zip4":""}]},"customer_code":"","cvv2":"","dda_number":"","developer_id":"","echo_fields":"","email_address":[],"exp_date":"","loc_id":"","merch_ref_num":"","merchant_id":0,"moto_ecomm_ind":"","payload_apple_pay":"","payload_google_pay":"","profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","tokenize":false,"tr_number":"","type_id":"","user_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"avs_address": @"",
                              @"avs_zip": @"",
                              @"card_id": @"",
                              @"card_number": @"",
                              @"card_swipe": @"",
                              @"cardholder_name": @"",
                              @"client_ip": @"",
                              @"customer": @{ @"billing_addr1": @"", @"billing_addr2": @"", @"billing_city": @"", @"billing_country": @"", @"billing_country_code": @"", @"billing_state": @"", @"billing_zip": @"", @"billing_zip4": @"", @"customer_email": @"", @"customer_firm_name": @"", @"customer_first_name": @"", @"customer_last_name": @"", @"customer_phone": @"", @"shipping_addresses": @[ @{ @"primary": @NO, @"shipping_addr1": @"", @"shipping_addr2": @"", @"shipping_city": @"", @"shipping_country": @"", @"shipping_country_code": @"", @"shipping_firm_name": @"", @"shipping_first_name": @"", @"shipping_last_name": @"", @"shipping_state": @"", @"shipping_zip": @"", @"shipping_zip4": @"" } ] },
                              @"customer_code": @"",
                              @"cvv2": @"",
                              @"dda_number": @"",
                              @"developer_id": @"",
                              @"echo_fields": @"",
                              @"email_address": @[  ],
                              @"exp_date": @"",
                              @"loc_id": @"",
                              @"merch_ref_num": @"",
                              @"merchant_id": @0,
                              @"moto_ecomm_ind": @"",
                              @"payload_apple_pay": @"",
                              @"payload_google_pay": @"",
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"tokenize": @NO,
                              @"tr_number": @"",
                              @"type_id": @"",
                              @"user_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/verify"]
                                                       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}}/verify" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/verify",
  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([
    'avs_address' => '',
    'avs_zip' => '',
    'card_id' => '',
    'card_number' => '',
    'card_swipe' => '',
    'cardholder_name' => '',
    'client_ip' => '',
    'customer' => [
        'billing_addr1' => '',
        'billing_addr2' => '',
        'billing_city' => '',
        'billing_country' => '',
        'billing_country_code' => '',
        'billing_state' => '',
        'billing_zip' => '',
        'billing_zip4' => '',
        'customer_email' => '',
        'customer_firm_name' => '',
        'customer_first_name' => '',
        'customer_last_name' => '',
        'customer_phone' => '',
        'shipping_addresses' => [
                [
                                'primary' => null,
                                'shipping_addr1' => '',
                                'shipping_addr2' => '',
                                'shipping_city' => '',
                                'shipping_country' => '',
                                'shipping_country_code' => '',
                                'shipping_firm_name' => '',
                                'shipping_first_name' => '',
                                'shipping_last_name' => '',
                                'shipping_state' => '',
                                'shipping_zip' => '',
                                'shipping_zip4' => ''
                ]
        ]
    ],
    'customer_code' => '',
    'cvv2' => '',
    'dda_number' => '',
    'developer_id' => '',
    'echo_fields' => '',
    'email_address' => [
        
    ],
    'exp_date' => '',
    'loc_id' => '',
    'merch_ref_num' => '',
    'merchant_id' => 0,
    'moto_ecomm_ind' => '',
    'payload_apple_pay' => '',
    'payload_google_pay' => '',
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'tokenize' => null,
    'tr_number' => '',
    'type_id' => '',
    'user_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/verify', [
  'body' => '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'cvv2' => '',
  'dda_number' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'exp_date' => '',
  'loc_id' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'tokenize' => null,
  'tr_number' => '',
  'type_id' => '',
  'user_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'avs_address' => '',
  'avs_zip' => '',
  'card_id' => '',
  'card_number' => '',
  'card_swipe' => '',
  'cardholder_name' => '',
  'client_ip' => '',
  'customer' => [
    'billing_addr1' => '',
    'billing_addr2' => '',
    'billing_city' => '',
    'billing_country' => '',
    'billing_country_code' => '',
    'billing_state' => '',
    'billing_zip' => '',
    'billing_zip4' => '',
    'customer_email' => '',
    'customer_firm_name' => '',
    'customer_first_name' => '',
    'customer_last_name' => '',
    'customer_phone' => '',
    'shipping_addresses' => [
        [
                'primary' => null,
                'shipping_addr1' => '',
                'shipping_addr2' => '',
                'shipping_city' => '',
                'shipping_country' => '',
                'shipping_country_code' => '',
                'shipping_firm_name' => '',
                'shipping_first_name' => '',
                'shipping_last_name' => '',
                'shipping_state' => '',
                'shipping_zip' => '',
                'shipping_zip4' => ''
        ]
    ]
  ],
  'customer_code' => '',
  'cvv2' => '',
  'dda_number' => '',
  'developer_id' => '',
  'echo_fields' => '',
  'email_address' => [
    
  ],
  'exp_date' => '',
  'loc_id' => '',
  'merch_ref_num' => '',
  'merchant_id' => 0,
  'moto_ecomm_ind' => '',
  'payload_apple_pay' => '',
  'payload_google_pay' => '',
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'tokenize' => null,
  'tr_number' => '',
  'type_id' => '',
  'user_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/verify');
$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}}/verify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}'
import http.client

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

payload = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/verify"

payload = {
    "avs_address": "",
    "avs_zip": "",
    "card_id": "",
    "card_number": "",
    "card_swipe": "",
    "cardholder_name": "",
    "client_ip": "",
    "customer": {
        "billing_addr1": "",
        "billing_addr2": "",
        "billing_city": "",
        "billing_country": "",
        "billing_country_code": "",
        "billing_state": "",
        "billing_zip": "",
        "billing_zip4": "",
        "customer_email": "",
        "customer_firm_name": "",
        "customer_first_name": "",
        "customer_last_name": "",
        "customer_phone": "",
        "shipping_addresses": [
            {
                "primary": False,
                "shipping_addr1": "",
                "shipping_addr2": "",
                "shipping_city": "",
                "shipping_country": "",
                "shipping_country_code": "",
                "shipping_firm_name": "",
                "shipping_first_name": "",
                "shipping_last_name": "",
                "shipping_state": "",
                "shipping_zip": "",
                "shipping_zip4": ""
            }
        ]
    },
    "customer_code": "",
    "cvv2": "",
    "dda_number": "",
    "developer_id": "",
    "echo_fields": "",
    "email_address": [],
    "exp_date": "",
    "loc_id": "",
    "merch_ref_num": "",
    "merchant_id": 0,
    "moto_ecomm_ind": "",
    "payload_apple_pay": "",
    "payload_google_pay": "",
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "tokenize": False,
    "tr_number": "",
    "type_id": "",
    "user_id": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"

encode <- "json"

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

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

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

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  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"

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

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

response = conn.post('/baseUrl/verify') do |req|
  req.body = "{\n  \"avs_address\": \"\",\n  \"avs_zip\": \"\",\n  \"card_id\": \"\",\n  \"card_number\": \"\",\n  \"card_swipe\": \"\",\n  \"cardholder_name\": \"\",\n  \"client_ip\": \"\",\n  \"customer\": {\n    \"billing_addr1\": \"\",\n    \"billing_addr2\": \"\",\n    \"billing_city\": \"\",\n    \"billing_country\": \"\",\n    \"billing_country_code\": \"\",\n    \"billing_state\": \"\",\n    \"billing_zip\": \"\",\n    \"billing_zip4\": \"\",\n    \"customer_email\": \"\",\n    \"customer_firm_name\": \"\",\n    \"customer_first_name\": \"\",\n    \"customer_last_name\": \"\",\n    \"customer_phone\": \"\",\n    \"shipping_addresses\": [\n      {\n        \"primary\": false,\n        \"shipping_addr1\": \"\",\n        \"shipping_addr2\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_country_code\": \"\",\n        \"shipping_firm_name\": \"\",\n        \"shipping_first_name\": \"\",\n        \"shipping_last_name\": \"\",\n        \"shipping_state\": \"\",\n        \"shipping_zip\": \"\",\n        \"shipping_zip4\": \"\"\n      }\n    ]\n  },\n  \"customer_code\": \"\",\n  \"cvv2\": \"\",\n  \"dda_number\": \"\",\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"email_address\": [],\n  \"exp_date\": \"\",\n  \"loc_id\": \"\",\n  \"merch_ref_num\": \"\",\n  \"merchant_id\": 0,\n  \"moto_ecomm_ind\": \"\",\n  \"payload_apple_pay\": \"\",\n  \"payload_google_pay\": \"\",\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"tokenize\": false,\n  \"tr_number\": \"\",\n  \"type_id\": \"\",\n  \"user_id\": 0\n}"
end

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

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

    let payload = json!({
        "avs_address": "",
        "avs_zip": "",
        "card_id": "",
        "card_number": "",
        "card_swipe": "",
        "cardholder_name": "",
        "client_ip": "",
        "customer": json!({
            "billing_addr1": "",
            "billing_addr2": "",
            "billing_city": "",
            "billing_country": "",
            "billing_country_code": "",
            "billing_state": "",
            "billing_zip": "",
            "billing_zip4": "",
            "customer_email": "",
            "customer_firm_name": "",
            "customer_first_name": "",
            "customer_last_name": "",
            "customer_phone": "",
            "shipping_addresses": (
                json!({
                    "primary": false,
                    "shipping_addr1": "",
                    "shipping_addr2": "",
                    "shipping_city": "",
                    "shipping_country": "",
                    "shipping_country_code": "",
                    "shipping_firm_name": "",
                    "shipping_first_name": "",
                    "shipping_last_name": "",
                    "shipping_state": "",
                    "shipping_zip": "",
                    "shipping_zip4": ""
                })
            )
        }),
        "customer_code": "",
        "cvv2": "",
        "dda_number": "",
        "developer_id": "",
        "echo_fields": "",
        "email_address": (),
        "exp_date": "",
        "loc_id": "",
        "merch_ref_num": "",
        "merchant_id": 0,
        "moto_ecomm_ind": "",
        "payload_apple_pay": "",
        "payload_google_pay": "",
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "tokenize": false,
        "tr_number": "",
        "type_id": "",
        "user_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/verify \
  --header 'content-type: application/json' \
  --data '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}'
echo '{
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": {
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      {
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      }
    ]
  },
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
}' |  \
  http POST {{baseUrl}}/verify \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "avs_address": "",\n  "avs_zip": "",\n  "card_id": "",\n  "card_number": "",\n  "card_swipe": "",\n  "cardholder_name": "",\n  "client_ip": "",\n  "customer": {\n    "billing_addr1": "",\n    "billing_addr2": "",\n    "billing_city": "",\n    "billing_country": "",\n    "billing_country_code": "",\n    "billing_state": "",\n    "billing_zip": "",\n    "billing_zip4": "",\n    "customer_email": "",\n    "customer_firm_name": "",\n    "customer_first_name": "",\n    "customer_last_name": "",\n    "customer_phone": "",\n    "shipping_addresses": [\n      {\n        "primary": false,\n        "shipping_addr1": "",\n        "shipping_addr2": "",\n        "shipping_city": "",\n        "shipping_country": "",\n        "shipping_country_code": "",\n        "shipping_firm_name": "",\n        "shipping_first_name": "",\n        "shipping_last_name": "",\n        "shipping_state": "",\n        "shipping_zip": "",\n        "shipping_zip4": ""\n      }\n    ]\n  },\n  "customer_code": "",\n  "cvv2": "",\n  "dda_number": "",\n  "developer_id": "",\n  "echo_fields": "",\n  "email_address": [],\n  "exp_date": "",\n  "loc_id": "",\n  "merch_ref_num": "",\n  "merchant_id": 0,\n  "moto_ecomm_ind": "",\n  "payload_apple_pay": "",\n  "payload_google_pay": "",\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "tokenize": false,\n  "tr_number": "",\n  "type_id": "",\n  "user_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/verify
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "avs_address": "",
  "avs_zip": "",
  "card_id": "",
  "card_number": "",
  "card_swipe": "",
  "cardholder_name": "",
  "client_ip": "",
  "customer": [
    "billing_addr1": "",
    "billing_addr2": "",
    "billing_city": "",
    "billing_country": "",
    "billing_country_code": "",
    "billing_state": "",
    "billing_zip": "",
    "billing_zip4": "",
    "customer_email": "",
    "customer_firm_name": "",
    "customer_first_name": "",
    "customer_last_name": "",
    "customer_phone": "",
    "shipping_addresses": [
      [
        "primary": false,
        "shipping_addr1": "",
        "shipping_addr2": "",
        "shipping_city": "",
        "shipping_country": "",
        "shipping_country_code": "",
        "shipping_firm_name": "",
        "shipping_first_name": "",
        "shipping_last_name": "",
        "shipping_state": "",
        "shipping_zip": "",
        "shipping_zip4": ""
      ]
    ]
  ],
  "customer_code": "",
  "cvv2": "",
  "dda_number": "",
  "developer_id": "",
  "echo_fields": "",
  "email_address": [],
  "exp_date": "",
  "loc_id": "",
  "merch_ref_num": "",
  "merchant_id": 0,
  "moto_ecomm_ind": "",
  "payload_apple_pay": "",
  "payload_google_pay": "",
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "tokenize": false,
  "tr_number": "",
  "type_id": "",
  "user_id": 0
] as [String : Any]

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

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

{
  "auth_avs_result": "X",
  "auth_code": "T37500",
  "auth_cvv2_result": "M",
  "card_id": "86e1b00d9b0811e68df3069d8f743581",
  "card_number": "4111xxxxxx111111",
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "merchant_advice_code": "M001",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "No reason to decline T86456"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}
POST Void a Previously Authorized Transaction
{{baseUrl}}/void/:pgIdOrig
QUERY PARAMS

pgIdOrig
BODY json

{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/void/:pgIdOrig");

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  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");

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

(client/post "{{baseUrl}}/void/:pgIdOrig" {:content-type :json
                                                           :form-params {:developer_id ""
                                                                         :echo_fields ""
                                                                         :loc_id ""
                                                                         :merchant_id 0
                                                                         :profile_id ""
                                                                         :report_data ""
                                                                         :retry_attempt 0
                                                                         :retry_id 0
                                                                         :session_id ""
                                                                         :user_id 0
                                                                         :vendor_id 0}})
require "http/client"

url = "{{baseUrl}}/void/:pgIdOrig"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/void/:pgIdOrig"),
    Content = new StringContent("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/void/:pgIdOrig");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/void/:pgIdOrig"

	payload := strings.NewReader("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")

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

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

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

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

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

}
POST /baseUrl/void/:pgIdOrig HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 215

{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/void/:pgIdOrig")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/void/:pgIdOrig"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/void/:pgIdOrig")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/void/:pgIdOrig")
  .header("content-type", "application/json")
  .body("{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
  .asString();
const data = JSON.stringify({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/void/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/void/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/void/:pgIdOrig',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/void/:pgIdOrig")
  .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/void/:pgIdOrig',
  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({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/void/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  body: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/void/:pgIdOrig');

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

req.type('json');
req.send({
  developer_id: '',
  echo_fields: '',
  loc_id: '',
  merchant_id: 0,
  profile_id: '',
  report_data: '',
  retry_attempt: 0,
  retry_id: 0,
  session_id: '',
  user_id: 0,
  vendor_id: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/void/:pgIdOrig',
  headers: {'content-type': 'application/json'},
  data: {
    developer_id: '',
    echo_fields: '',
    loc_id: '',
    merchant_id: 0,
    profile_id: '',
    report_data: '',
    retry_attempt: 0,
    retry_id: 0,
    session_id: '',
    user_id: 0,
    vendor_id: 0
  }
};

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

const url = '{{baseUrl}}/void/:pgIdOrig';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"developer_id":"","echo_fields":"","loc_id":"","merchant_id":0,"profile_id":"","report_data":"","retry_attempt":0,"retry_id":0,"session_id":"","user_id":0,"vendor_id":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"developer_id": @"",
                              @"echo_fields": @"",
                              @"loc_id": @"",
                              @"merchant_id": @0,
                              @"profile_id": @"",
                              @"report_data": @"",
                              @"retry_attempt": @0,
                              @"retry_id": @0,
                              @"session_id": @"",
                              @"user_id": @0,
                              @"vendor_id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/void/:pgIdOrig"]
                                                       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}}/void/:pgIdOrig" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/void/:pgIdOrig",
  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([
    'developer_id' => '',
    'echo_fields' => '',
    'loc_id' => '',
    'merchant_id' => 0,
    'profile_id' => '',
    'report_data' => '',
    'retry_attempt' => 0,
    'retry_id' => 0,
    'session_id' => '',
    'user_id' => 0,
    'vendor_id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/void/:pgIdOrig', [
  'body' => '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'developer_id' => '',
  'echo_fields' => '',
  'loc_id' => '',
  'merchant_id' => 0,
  'profile_id' => '',
  'report_data' => '',
  'retry_attempt' => 0,
  'retry_id' => 0,
  'session_id' => '',
  'user_id' => 0,
  'vendor_id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/void/:pgIdOrig');
$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}}/void/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/void/:pgIdOrig' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
import http.client

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

payload = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

conn.request("POST", "/baseUrl/void/:pgIdOrig", payload, headers)

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

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

url = "{{baseUrl}}/void/:pgIdOrig"

payload = {
    "developer_id": "",
    "echo_fields": "",
    "loc_id": "",
    "merchant_id": 0,
    "profile_id": "",
    "report_data": "",
    "retry_attempt": 0,
    "retry_id": 0,
    "session_id": "",
    "user_id": 0,
    "vendor_id": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/void/:pgIdOrig"

payload <- "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/void/:pgIdOrig")

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  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"

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

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

response = conn.post('/baseUrl/void/:pgIdOrig') do |req|
  req.body = "{\n  \"developer_id\": \"\",\n  \"echo_fields\": \"\",\n  \"loc_id\": \"\",\n  \"merchant_id\": 0,\n  \"profile_id\": \"\",\n  \"report_data\": \"\",\n  \"retry_attempt\": 0,\n  \"retry_id\": 0,\n  \"session_id\": \"\",\n  \"user_id\": 0,\n  \"vendor_id\": 0\n}"
end

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

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

    let payload = json!({
        "developer_id": "",
        "echo_fields": "",
        "loc_id": "",
        "merchant_id": 0,
        "profile_id": "",
        "report_data": "",
        "retry_attempt": 0,
        "retry_id": 0,
        "session_id": "",
        "user_id": 0,
        "vendor_id": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/void/:pgIdOrig \
  --header 'content-type: application/json' \
  --data '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}'
echo '{
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
}' |  \
  http POST {{baseUrl}}/void/:pgIdOrig \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "developer_id": "",\n  "echo_fields": "",\n  "loc_id": "",\n  "merchant_id": 0,\n  "profile_id": "",\n  "report_data": "",\n  "retry_attempt": 0,\n  "retry_id": 0,\n  "session_id": "",\n  "user_id": 0,\n  "vendor_id": 0\n}' \
  --output-document \
  - {{baseUrl}}/void/:pgIdOrig
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "developer_id": "",
  "echo_fields": "",
  "loc_id": "",
  "merchant_id": 0,
  "profile_id": "",
  "report_data": "",
  "retry_attempt": 0,
  "retry_id": 0,
  "session_id": "",
  "user_id": 0,
  "vendor_id": 0
] as [String : Any]

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

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

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Transaction Voided"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "102",
  "rmsg": "Invalid PG Identifier"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "101",
  "rmsg": "Invalid id or key"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "005",
  "rmsg": "Decline"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "999",
  "rmsg": "Internal Error"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "998",
  "rmsg": "Timeout"
}